From: Nathaniel Roach <nroach44@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/3] [v3] libgudev: New package
Date: Mon, 24 Aug 2015 23:44:14 +0800 [thread overview]
Message-ID: <1440431056-25983-1-git-send-email-nroach44@gmail.com> (raw)
As libgudev recently was split from the main systemd/udev source,
this library is now required to build certain packages.
This library is only relevant to systemd, as the code it contains
is still contained in eudev.
Add the package and tweak systemd's Config.in message accordingly.
---
Changes v2 -> v3
(Changes as suggested by Yann E. MORIN)
- Separate libgudev and network-manager portions into
discrete patches, and a new patch for libmbim
Changes v1 -> v2
(Changes as suggested by Peter Korsgaard)
- Added the toolchain dependencies
- Dropped NM references in package
- Added _LICENSE_FILEs
- Conditionally depend on libgudev in NM if using systemd
Signed-off-by: Nathaniel Roach <nroach44@gmail.com>
---
package/Config.in | 1 +
package/libgudev/Config.in | 19 +++++++++++++++++++
package/libgudev/libgudev.mk | 17 +++++++++++++++++
package/systemd/Config.in | 1 -
4 files changed, 37 insertions(+), 1 deletion(-)
create mode 100644 package/libgudev/Config.in
create mode 100644 package/libgudev/libgudev.mk
diff --git a/package/Config.in b/package/Config.in
index 47d14d7..6494322 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -852,6 +852,7 @@ menu "Hardware handling"
source "package/libfreefare/Config.in"
source "package/libftdi/Config.in"
source "package/libftdi1/Config.in"
+ source "package/libgudev/Config.in"
source "package/libhid/Config.in"
source "package/libiio/Config.in"
source "package/libinput/Config.in"
diff --git a/package/libgudev/Config.in b/package/libgudev/Config.in
new file mode 100644
index 0000000..8cdd9f6
--- /dev/null
+++ b/package/libgudev/Config.in
@@ -0,0 +1,19 @@
+config BR2_PACKAGE_LIBGUDEV
+ bool "libgudev"
+ depends on BR2_INIT_SYSTEMD
+ depends on BR2_USE_WCHAR # gettext
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ depends on BR2_USE_MMU # fork()
+ select BR2_PACKAGE_LIBGLIB2
+ help
+ This library provides GObject bindings for libudev.
+ It was originally part of udev-extras, then udev, then systemd.
+ It's now a project on its own.
+ Required for building some programs that use udev, when using
+ systemd.
+
+ https://wiki.gnome.org/Projects/libgudev
+
+comment "libgudev needs a toolchain w/ wchar, threads, and systemd"
+ depends on BR2_USE_MMU
+ depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INIT_SYSTEMD
diff --git a/package/libgudev/libgudev.mk b/package/libgudev/libgudev.mk
new file mode 100644
index 0000000..fa15b56
--- /dev/null
+++ b/package/libgudev/libgudev.mk
@@ -0,0 +1,17 @@
+################################################################################
+#
+# libgudev
+#
+################################################################################
+
+LIBGUDEV_VERSION = 230
+LIBGUDEV_SOURCE = libgudev-$(LIBGUDEV_VERSION).tar.xz
+LIBGUDEV_SITE = http://ftp.gnome.org/pub/GNOME/sources/libgudev/$(LIBGUDEV_VERSION)
+LIBGUDEV_INSTALL_STAGING = YES
+
+LIBGUDEV_DEPENDENCIES = host-pkgconf udev libglib2
+
+LIBGUDEV_LICENSE = GPLv2+
+LIBGUDEV_LICENSE_FILES = COPYING
+
+$(eval $(autotools-package))
diff --git a/package/systemd/Config.in b/package/systemd/Config.in
index 510badd..f7fc3bb 100644
--- a/package/systemd/Config.in
+++ b/package/systemd/Config.in
@@ -55,7 +55,6 @@ config BR2_PACKAGE_SYSTEMD
The selection of other packages will enable some features:
- - libglib2 package will add support for gudev.
- acl package will add support for multi-seat.
http://freedesktop.org/wiki/Software/systemd
--
2.5.0
next reply other threads:[~2015-08-24 15:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-24 15:44 Nathaniel Roach [this message]
2015-08-24 15:44 ` [Buildroot] [PATCH 2/3] package/network-manager: Now needs libgudev under systemd Nathaniel Roach
2015-08-25 18:49 ` Thomas Petazzoni
2015-08-24 15:44 ` [Buildroot] [PATCH 3/3] package/libmbim: " Nathaniel Roach
2015-08-25 5:56 ` Yegor Yefremov
2015-08-25 18:49 ` Thomas Petazzoni
2015-08-25 5:56 ` [Buildroot] [PATCH 1/3] [v3] libgudev: New package Yegor Yefremov
2015-08-25 18:48 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1440431056-25983-1-git-send-email-nroach44@gmail.com \
--to=nroach44@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox