diff mbox

[2/5] libselinux: bump version to 2.6

Message ID 20170109161523.6855-2-aduskett@codeblue.com
State Accepted, archived
Headers show

Commit Message

Adam Duskett Jan. 9, 2017, 4:15 p.m. UTC
Signed-off-by: Adam Duskett <aduskett@codeblue.com>
---
 package/libselinux/libselinux.hash | 2 +-
 package/libselinux/libselinux.mk   | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

Comments

Thomas Petazzoni Jan. 24, 2017, 10:30 a.m. UTC | #1
Hello,

On Mon,  9 Jan 2017 11:15:20 -0500, Adam Duskett wrote:
> Signed-off-by: Adam Duskett <aduskett@codeblue.com>
> ---
>  package/libselinux/libselinux.hash | 2 +-
>  package/libselinux/libselinux.mk   | 4 ++--
>  2 files changed, 3 insertions(+), 3 deletions(-)

I've tried a build with this entire series of patches applied, and I'm
getting:

/usr/bin/gcc -O2 -I/home/test/buildroot/output/host/usr/include -I../include -I/home/test/buildroot/output/host/usr/include -D_GNU_SOURCE  -DNO_ANDROID_BACKEND   -c -o regex.o regex.c
regex.c:16:2: error: #error __BYTE_ORDER__ not defined. Unable to determine endianness.
make[2]: *** [regex.o] Error 1
make[2]: Leaving directory `/home/test/buildroot/output/build/host-libselinux-2.6/src'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/test/buildroot/output/build/host-libselinux-2.6'
make: *** [/home/test/buildroot/output/build/host-libselinux-2.6/.stamp_built] Error 2

The configuration to reproduce is:

BR2_arm=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_INIT_NONE=y
BR2_SYSTEM_BIN_SH_NONE=y
# BR2_PACKAGE_BUSYBOX is not set
BR2_PACKAGE_POLICYCOREUTILS=y
# BR2_TARGET_ROOTFS_TAR is not set
BR2_PACKAGE_HOST_CHECKPOLICY=y

Could you have a look?

Thanks,

Thomas
Adam Duskett Jan. 24, 2017, 7:33 p.m. UTC | #2
Hello;

On Tue, Jan 24, 2017 at 8:08 AM, Adam Duskett <aduskett@codeblue.com> wrote:
> Sure can!
>
> What C library are you using?  I am using glibc and it compiles without
> any issue.
>
> Adam
>
> On Tue, 2017-01-24 at 23:30 +1300, Thomas Petazzoni wrote:
>> Hello,
>>
>> On Mon,  9 Jan 2017 11:15:20 -0500, Adam Duskett wrote:
>> > Signed-off-by: Adam Duskett <aduskett@codeblue.com>
>> > ---
>> >  package/libselinux/libselinux.hash | 2 +-
>> >  package/libselinux/libselinux.mk   | 4 ++--
>> >  2 files changed, 3 insertions(+), 3 deletions(-)
>>
>> I've tried a build with this entire series of patches applied, and
>> I'm
>> getting:
>>
>> /usr/bin/gcc -O2 -I/home/test/buildroot/output/host/usr/include
>> -I../include -I/home/test/buildroot/output/host/usr/include
>> -D_GNU_SOURCE  -DNO_ANDROID_BACKEND   -c -o regex.o regex.c
>> regex.c:16:2: error: #error __BYTE_ORDER__ not defined. Unable to
>> determine endianness.
>> make[2]: *** [regex.o] Error 1
>> make[2]: Leaving directory `/home/test/buildroot/output/build/host-
>> libselinux-2.6/src'
>> make[1]: *** [all] Error 1
>> make[1]: Leaving directory `/home/test/buildroot/output/build/host-
>> libselinux-2.6'
>> make: *** [/home/test/buildroot/output/build/host-libselinux-
>> 2.6/.stamp_built] Error 2
>>
>> The configuration to reproduce is:
>>
>> BR2_arm=y
>> BR2_TOOLCHAIN_EXTERNAL=y
>> BR2_INIT_NONE=y
>> BR2_SYSTEM_BIN_SH_NONE=y
>> # BR2_PACKAGE_BUSYBOX is not set
>> BR2_PACKAGE_POLICYCOREUTILS=y
>> # BR2_TARGET_ROOTFS_TAR is not set
>> BR2_PACKAGE_HOST_CHECKPOLICY=y

I have built the packages without error with your configuration.

>>
>> Could you have a look?
>>
>> Thanks,
>>
>> Thomas
Thanks!

Adam
Thomas Petazzoni Jan. 24, 2017, 8:12 p.m. UTC | #3
Hello,

On Tue, 24 Jan 2017 13:08:59 +0000, Adam Duskett wrote:

> What C library are you using?  I am using glibc and it compiles without
> any issue.  

The C library of the target system doesn't matter: what fails to build
is host-libselinux, i.e a host package.

So it seems like to be that there is an issue with the old Debian
system I'm using on my autobuilder instance (which is where I did the
test build).

I'll try to have a closer look and see if I can understand what's going
on, since you apparently can't reproduce it on a different host system.

Thanks!

Thomas
diff mbox

Patch

diff --git a/package/libselinux/libselinux.hash b/package/libselinux/libselinux.hash
index a4c3440..76130b2 100644
--- a/package/libselinux/libselinux.hash
+++ b/package/libselinux/libselinux.hash
@@ -1,2 +1,2 @@ 
 # Locally computed
-sha256 94c9e97706280bedcc288f784f67f2b9d3d6136c192b2c9f812115edba58514f libselinux-2.5.tar.gz
+sha256 4ea2dde50665c202253ba5caac7738370ea0337c47b251ba981c60d24e1a118a libselinux-2.6.tar.gz
diff --git a/package/libselinux/libselinux.mk b/package/libselinux/libselinux.mk
index 165ac4c..44120c4 100644
--- a/package/libselinux/libselinux.mk
+++ b/package/libselinux/libselinux.mk
@@ -4,8 +4,8 @@ 
 #
 ################################################################################
 
-LIBSELINUX_VERSION = 2.5
-LIBSELINUX_SITE = https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20160223
+LIBSELINUX_VERSION = 2.6
+LIBSELINUX_SITE = https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20161014
 LIBSELINUX_LICENSE = Public Domain
 LIBSELINUX_LICENSE_FILES = LICENSE