* [Buildroot] [PATCH 1/1] package/libseccomp: needs headers >= 3.12
@ 2015-03-31 16:33 Bernd Kuhls
2015-03-31 16:57 ` Baruch Siach
2015-03-31 21:46 ` Thomas Petazzoni
0 siblings, 2 replies; 6+ messages in thread
From: Bernd Kuhls @ 2015-03-31 16:33 UTC (permalink / raw)
To: buildroot
EM_AARCH64 was added to linux kernel with version 3.12:
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/log/include/uapi/linux/elf-em.h?h=linux-3.12.y
Fixes
http://autobuild.buildroot.net/results/4cd/4cd6aaccde9fb0f80e49133b477f330b601f4a63/
http://autobuild.buildroot.net/results/bd1/bd105e821de583e582199aae31fab13ef17e67a0/
http://autobuild.buildroot.net/results/092/092143df2b91d50850067274da531c713f2ccb72/
http://autobuild.buildroot.net/results/814/8149cf0c3ef3ef8d91b5891591a71691dc3d7427/
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
package/libseccomp/Config.in | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/package/libseccomp/Config.in b/package/libseccomp/Config.in
index 4e893c8..153e14a 100644
--- a/package/libseccomp/Config.in
+++ b/package/libseccomp/Config.in
@@ -2,6 +2,7 @@ config BR2_PACKAGE_LIBSECCOMP
bool "libseccomp"
depends on BR2_aarch64 || BR2_mips || BR2_mipsel || BR2_mips64 || \
BR2_mips64el || BR2_i386 || BR2_x86_64
+ depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
help
High level interface to the Linux Kernel's seccomp filter
@@ -13,3 +14,8 @@ config BR2_PACKAGE_LIBSECCOMP
and easily adopted by application developers.
https://github.com/seccomp/libseccomp
+
+comment "libseccomp needs headers >= 3.12"
+ depends on BR2_aarch64 || BR2_mips || BR2_mipsel || BR2_mips64 || \
+ BR2_mips64el || BR2_i386 || BR2_x86_64
+ depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
--
1.7.10.4
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 1/1] package/libseccomp: needs headers >= 3.12
2015-03-31 16:33 [Buildroot] [PATCH 1/1] package/libseccomp: needs headers >= 3.12 Bernd Kuhls
@ 2015-03-31 16:57 ` Baruch Siach
2015-03-31 16:59 ` Bernd Kuhls
2015-03-31 21:46 ` Thomas Petazzoni
1 sibling, 1 reply; 6+ messages in thread
From: Baruch Siach @ 2015-03-31 16:57 UTC (permalink / raw)
To: buildroot
Hi Bernd,
On Tue, Mar 31, 2015 at 06:33:57PM +0200, Bernd Kuhls wrote:
> EM_AARCH64 was added to linux kernel with version 3.12:
> https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/log/include/uapi/linux/elf-em.h?h=linux-3.12.y
>
> Fixes
> http://autobuild.buildroot.net/results/4cd/4cd6aaccde9fb0f80e49133b477f330b601f4a63/
> http://autobuild.buildroot.net/results/bd1/bd105e821de583e582199aae31fab13ef17e67a0/
> http://autobuild.buildroot.net/results/092/092143df2b91d50850067274da531c713f2ccb72/
> http://autobuild.buildroot.net/results/814/8149cf0c3ef3ef8d91b5891591a71691dc3d7427/
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> package/libseccomp/Config.in | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/package/libseccomp/Config.in b/package/libseccomp/Config.in
> index 4e893c8..153e14a 100644
> --- a/package/libseccomp/Config.in
> +++ b/package/libseccomp/Config.in
> @@ -2,6 +2,7 @@ config BR2_PACKAGE_LIBSECCOMP
> bool "libseccomp"
> depends on BR2_aarch64 || BR2_mips || BR2_mipsel || BR2_mips64 || \
> BR2_mips64el || BR2_i386 || BR2_x86_64
> + depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
Can't we limit the 3.12 headers dependency to BR2_aarch64?
Something like (untested):
depends on BR2_mips || BR2_mipsel || BR2_mips64 || \
BR2_mips64el || BR2_i386 || BR2_x86_64 \
|| (BR2_aarch64 && BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12)
> help
> High level interface to the Linux Kernel's seccomp filter
>
> @@ -13,3 +14,8 @@ config BR2_PACKAGE_LIBSECCOMP
> and easily adopted by application developers.
>
> https://github.com/seccomp/libseccomp
> +
> +comment "libseccomp needs headers >= 3.12"
> + depends on BR2_aarch64 || BR2_mips || BR2_mipsel || BR2_mips64 || \
> + BR2_mips64el || BR2_i386 || BR2_x86_64
> + depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 1/1] package/libseccomp: needs headers >= 3.12
2015-03-31 16:57 ` Baruch Siach
@ 2015-03-31 16:59 ` Bernd Kuhls
2015-03-31 17:11 ` Baruch Siach
0 siblings, 1 reply; 6+ messages in thread
From: Bernd Kuhls @ 2015-03-31 16:59 UTC (permalink / raw)
To: buildroot
Baruch Siach <baruch@tkos.co.il> wrote in
news:20150331165723.GP12479 at tarshish:
> Can't we limit the 3.12 headers dependency to BR2_aarch64?
Hi Baruch,
no, the build errors are not limited to aarch64:
http://autobuild.buildroot.net/?reason=libseccomp-v2.2.0
Regards, Bernd
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 1/1] package/libseccomp: needs headers >= 3.12
2015-03-31 16:59 ` Bernd Kuhls
@ 2015-03-31 17:11 ` Baruch Siach
2015-03-31 21:33 ` Thomas Petazzoni
0 siblings, 1 reply; 6+ messages in thread
From: Baruch Siach @ 2015-03-31 17:11 UTC (permalink / raw)
To: buildroot
Hi Bernd,
On Tue, Mar 31, 2015 at 06:59:53PM +0200, Bernd Kuhls wrote:
> Baruch Siach <baruch@tkos.co.il> wrote in
> news:20150331165723.GP12479 at tarshish:
>
> > Can't we limit the 3.12 headers dependency to BR2_aarch64?
>
> no, the build errors are not limited to aarch64:
> http://autobuild.buildroot.net/?reason=libseccomp-v2.2.0
Now I see. It is kernel commit 909e3ee41 that adds both EM_ARM and EM_AARCH64
to a generic header. In this case maybe patching the code is preferable.
Something like:
#ifndef EM_ARM
#define EM_ARM 40
#endif
#ifndef EM_AARCH64
#define EM_AARCH64 183
#endif
Something like that should be acceptable upstream.
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 1/1] package/libseccomp: needs headers >= 3.12
2015-03-31 17:11 ` Baruch Siach
@ 2015-03-31 21:33 ` Thomas Petazzoni
0 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2015-03-31 21:33 UTC (permalink / raw)
To: buildroot
Dear Baruch Siach,
On Tue, 31 Mar 2015 20:11:43 +0300, Baruch Siach wrote:
> Now I see. It is kernel commit 909e3ee41 that adds both EM_ARM and EM_AARCH64
> to a generic header. In this case maybe patching the code is preferable.
> Something like:
>
> #ifndef EM_ARM
> #define EM_ARM 40
> #endif
>
> #ifndef EM_AARCH64
> #define EM_AARCH64 183
> #endif
>
> Something like that should be acceptable upstream.
Agreed, this would allow to remove the dependency of libseccomp on >=
3.12. Though I personally don't mind that much, since libseccomp does
not have any reverse dependencies, except systemd (for which it is an
optional dependency), and systemd itself already depends on having a
fairly recent set of kernel headers.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 1/1] package/libseccomp: needs headers >= 3.12
2015-03-31 16:33 [Buildroot] [PATCH 1/1] package/libseccomp: needs headers >= 3.12 Bernd Kuhls
2015-03-31 16:57 ` Baruch Siach
@ 2015-03-31 21:46 ` Thomas Petazzoni
1 sibling, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2015-03-31 21:46 UTC (permalink / raw)
To: buildroot
Dear Bernd Kuhls,
On Tue, 31 Mar 2015 18:33:57 +0200, Bernd Kuhls wrote:
> +comment "libseccomp needs headers >= 3.12"
This should have been "libseccomp needs a tpolchain w/ headers >= 3.12"
I've committed your patch. Baruch, if you really want to have
libseccomp on kernel olders than 3.12, do not hesitate to send a
followup patch. Since the issue was affecting the autobuilders, I
wanted to get rid of it as soon as possible.
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-03-31 21:46 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-31 16:33 [Buildroot] [PATCH 1/1] package/libseccomp: needs headers >= 3.12 Bernd Kuhls
2015-03-31 16:57 ` Baruch Siach
2015-03-31 16:59 ` Bernd Kuhls
2015-03-31 17:11 ` Baruch Siach
2015-03-31 21:33 ` Thomas Petazzoni
2015-03-31 21:46 ` Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.