* [Buildroot] [PATCH 1/1 v3] eudev: fix dependency on kernel headers version
@ 2015-03-09 11:37 Alexey Mednyy
2015-03-09 11:45 ` Baruch Siach
2015-03-09 13:06 ` Thomas Petazzoni
0 siblings, 2 replies; 3+ messages in thread
From: Alexey Mednyy @ 2015-03-09 11:37 UTC (permalink / raw)
To: buildroot
Signed-off-by: Alexey Mednyy <swexru@gmail.com>
---
...c-don-t-die-on-missing-linux-btrfs.h-fixe.patch | 37 ++++++++++++++++++++++
package/eudev/eudev.mk | 2 ++
system/Config.in | 6 ++--
3 files changed, 41 insertions(+), 4 deletions(-)
create mode 100644 package/eudev/0001-configure.ac-don-t-die-on-missing-linux-btrfs.h-fixe.patch
diff --git a/package/eudev/0001-configure.ac-don-t-die-on-missing-linux-btrfs.h-fixe.patch b/package/eudev/0001-configure.ac-don-t-die-on-missing-linux-btrfs.h-fixe.patch
new file mode 100644
index 0000000..a749b08
--- /dev/null
+++ b/package/eudev/0001-configure.ac-don-t-die-on-missing-linux-btrfs.h-fixe.patch
@@ -0,0 +1,37 @@
+From 6740579367ddd2ce0b315863cdb92d34d1d693c7 Mon Sep 17 00:00:00 2001
+From: "Anthony G. Basile" <blueness@gentoo.org>
+Date: Sun, 16 Nov 2014 13:40:43 -0500
+Subject: [PATCH] configure.ac: don't die on missing linux/btrfs.h, fixes issue
+ #100
+
+Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
+---
+ configure.ac | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index a3747f9..dbca833 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -49,11 +49,17 @@ AC_CHECK_HEADERS(
+ )
+
+ AC_CHECK_HEADERS(
+- [linux/btrfs.h mtd/mtd-user.h],
++ [mtd/mtd-user.h],
+ [],
+ [AC_MSG_ERROR([*** KERNEL header not found])]
+ )
+
++AC_CHECK_HEADERS(
++ [linux/btrfs.h],
++ [],
++ [AC_MSG_WARN([*** KERNEL header not found])]
++)
++
+ # Checks for typedefs, structures, and compiler characteristics.
+ AC_TYPE_UID_T
+ AC_C_INLINE
+--
+1.9.1
+
diff --git a/package/eudev/eudev.mk b/package/eudev/eudev.mk
index 2221966..f5159a2 100644
--- a/package/eudev/eudev.mk
+++ b/package/eudev/eudev.mk
@@ -10,6 +10,8 @@ EUDEV_SITE = http://dev.gentoo.org/~blueness/eudev
EUDEV_LICENSE = GPLv2+ (programs), LGPLv2.1+ (libraries)
EUDEV_LICENSE_FILES = COPYING
EUDEV_INSTALL_STAGING = YES
+# We're patching configure.ac
+EUDEV_AUTORECONF = YES
# mq_getattr is in librt
EUDEV_CONF_ENV += LIBS=-lrt
diff --git a/system/Config.in b/system/Config.in
index 4d1c3d2..9973cc2 100644
--- a/system/Config.in
+++ b/system/Config.in
@@ -128,13 +128,11 @@ config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV
depends on BR2_USE_WCHAR
depends on !BR2_STATIC_LIBS
depends on BR2_USE_MMU # eudev
- depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9
select BR2_PACKAGE_EUDEV
-comment "eudev needs a toolchain w/ largefile, wchar, dynamic library, headers >= 3.9"
+comment "eudev needs a toolchain w/ largefile, wchar, dynamic library"
depends on BR2_USE_MMU
- depends on !BR2_LARGEFILE || !BR2_USE_WCHAR || BR2_STATIC_LIBS \
- || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9
+ depends on !BR2_LARGEFILE || !BR2_USE_WCHAR || BR2_STATIC_LIBS
endchoice
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1 v3] eudev: fix dependency on kernel headers version
2015-03-09 11:37 [Buildroot] [PATCH 1/1 v3] eudev: fix dependency on kernel headers version Alexey Mednyy
@ 2015-03-09 11:45 ` Baruch Siach
2015-03-09 13:06 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Baruch Siach @ 2015-03-09 11:45 UTC (permalink / raw)
To: buildroot
Hi Alexey,
On Mon, Mar 09, 2015 at 02:37:47PM +0300, Alexey Mednyy wrote:
> a/package/eudev/0001-configure.ac-don-t-die-on-missing-linux-btrfs.h-fixe.patch
> b/package/eudev/0001-configure.ac-don-t-die-on-missing-linux-btrfs.h-fixe.patch
> new file mode 100644
> index 0000000..a749b08
> --- /dev/null
> +++ b/package/eudev/0001-configure.ac-don-t-die-on-missing-linux-btrfs.h-fixe.patch
> @@ -0,0 +1,37 @@
> +From 6740579367ddd2ce0b315863cdb92d34d1d693c7 Mon Sep 17 00:00:00 2001
> +From: "Anthony G. Basile" <blueness@gentoo.org>
> +Date: Sun, 16 Nov 2014 13:40:43 -0500
> +Subject: [PATCH] configure.ac: don't die on missing linux/btrfs.h, fixes issue
> + #100
> +
> +Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Since this patch seems to be backported from upstream, its description should
contain a reference to upstream. In this case saying something like "upstream
commit 6740579367d" should be enough.
Sorry for not mentioning it previously.
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] 3+ messages in thread* [Buildroot] [PATCH 1/1 v3] eudev: fix dependency on kernel headers version
2015-03-09 11:37 [Buildroot] [PATCH 1/1 v3] eudev: fix dependency on kernel headers version Alexey Mednyy
2015-03-09 11:45 ` Baruch Siach
@ 2015-03-09 13:06 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2015-03-09 13:06 UTC (permalink / raw)
To: buildroot
Dear Alexey Mednyy,
On Mon, 9 Mar 2015 14:37:47 +0300, Alexey Mednyy wrote:
> Signed-off-by: Alexey Mednyy <swexru@gmail.com>
> ---
> ...c-don-t-die-on-missing-linux-btrfs.h-fixe.patch | 37 ++++++++++++++++++++++
> package/eudev/eudev.mk | 2 ++
> system/Config.in | 6 ++--
> 3 files changed, 41 insertions(+), 4 deletions(-)
> create mode 100644 package/eudev/0001-configure.ac-don-t-die-on-missing-linux-btrfs.h-fixe.patch
Thanks, applied after doing a few changes:
[Thomas:
- indicate upstream commit id, as suggested by Baruch.
- add SoB of Alexey inside the patch itself.
- adjust sequence number to 0003.]
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-03-09 13:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-09 11:37 [Buildroot] [PATCH 1/1 v3] eudev: fix dependency on kernel headers version Alexey Mednyy
2015-03-09 11:45 ` Baruch Siach
2015-03-09 13:06 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox