[Buildroot] [PATCH] libselinux: add patch to make the build process more standard

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Jan 16 22:44:26 UTC 2018


Hello,

On Tue, 16 Jan 2018 09:21:53 +0100, Marcus Folkesson wrote:
> Patch the Makefiles to make PREFIX and DESTDIR follow standard
> semantics to get rid of DESTDIR during compile time in
> libselinux.mk and generate proper pkg-config files.
> 
> Fixes:
>  http://autobuild.buildroot.net/results/74d27370c7623e89e401203a485193340e992e7c/
> 
> Signed-off-by: Marcus Folkesson <marcus.folkesson at gmail.com>
> ---
>  ...build-follow-standard-semantics-for-DESTD.patch | 137 +++++++++++++++++++++
>  package/libselinux/0003-revert-ln-relative.patch   |  24 ----
>  package/libselinux/0004-revert-ln-relative.patch   |  24 ++++
>  package/libselinux/libselinux.mk                   |   8 +-
>  4 files changed, 163 insertions(+), 30 deletions(-)
>  create mode 100644 package/libselinux/0003-libselinux-build-follow-standard-semantics-for-DESTD.patch
>  delete mode 100644 package/libselinux/0003-revert-ln-relative.patch
>  create mode 100644 package/libselinux/0004-revert-ln-relative.patch

Applied to master, thanks. Thanks a lot for working on this!

Besides the 3 packages you already fixed, there is also selinux-python
that still uses DESTDIR during the build process.

Also, could you submit your 3 patches (libselinux, libsepol and
libsemanage) to the upstream SELinux project? We really would like to
see these being adopted by the upstream project.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list