diff options
author | Ian Stakenvicius <axs@gentoo.org> | 2013-01-04 21:48:47 +0000 |
---|---|---|
committer | Ian Stakenvicius <axs@gentoo.org> | 2013-01-04 21:48:47 +0000 |
commit | ab9aa767074e656ec8d91589c22392a173fa3d0c (patch) | |
tree | 54203e442598b8506c06db8e1611a1a7a1ea0c8a /sys-fs | |
parent | Remove old. (diff) | |
download | gentoo-2-ab9aa767074e656ec8d91589c22392a173fa3d0c.tar.gz gentoo-2-ab9aa767074e656ec8d91589c22392a173fa3d0c.tar.bz2 gentoo-2-ab9aa767074e656ec8d91589c22392a173fa3d0c.zip |
fixed module loading when USE=-kmod but kmod is installed; put keymap files back in lib/udev
(Portage version: 2.1.11.36/cvs/Linux x86_64, signed Manifest commit with key 2B6559ED)
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/eudev/ChangeLog | 11 | ||||
-rw-r--r-- | sys-fs/eudev/eudev-1_beta1-r2.ebuild (renamed from sys-fs/eudev/eudev-1_beta1-r1.ebuild) | 36 | ||||
-rw-r--r-- | sys-fs/eudev/files/eudev-1_beta1-fix-modprobe-call.patch | 26 |
3 files changed, 56 insertions, 17 deletions
diff --git a/sys-fs/eudev/ChangeLog b/sys-fs/eudev/ChangeLog index 92bc4ede2b0d..5e3b74cdcf55 100644 --- a/sys-fs/eudev/ChangeLog +++ b/sys-fs/eudev/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-fs/eudev -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/eudev/ChangeLog,v 1.11 2012/12/20 00:10:08 ryao Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/eudev/ChangeLog,v 1.12 2013/01/04 21:48:47 axs Exp $ + +*eudev-1_beta1-r2 (04 Jan 2013) + + 04 Jan 2013; Ian Stakenvicius <axs@gentoo.org> -eudev-1_beta1-r1.ebuild, + +eudev-1_beta1-r2.ebuild, +files/eudev-1_beta1-fix-modprobe-call.patch: + fixed module loading when USE=-kmod but kmod is installed; put keymap files + back in lib/udev *eudev-0-r1 (20 Dec 2012) diff --git a/sys-fs/eudev/eudev-1_beta1-r1.ebuild b/sys-fs/eudev/eudev-1_beta1-r2.ebuild index 3ed60cb710d5..378492a026bd 100644 --- a/sys-fs/eudev/eudev-1_beta1-r1.ebuild +++ b/sys-fs/eudev/eudev-1_beta1-r2.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/eudev/eudev-1_beta1-r1.ebuild,v 1.4 2012/12/20 00:09:40 ryao Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/eudev/eudev-1_beta1-r2.ebuild,v 1.1 2013/01/04 21:48:47 axs Exp $ EAPI=4 @@ -27,6 +27,7 @@ IUSE="doc gudev hwdb kmod introspection keymap +modutils +openrc selinux static- RESTRICT="test" COMMON_DEPEND="gudev? ( dev-libs/glib:2 ) + hwdb? ( sys-apps/hwids[udev(+)] ) introspection? ( >=dev-libs/gobject-introspection-1.31.1 ) selinux? ( sys-libs/libselinux ) >=sys-apps/util-linux-2.20 @@ -43,7 +44,6 @@ DEPEND="${COMMON_DEPEND} dev-libs/libxslt" RDEPEND="${COMMON_DEPEND} - hwdb? ( sys-apps/hwids ) openrc? ( >=sys-fs/udev-init-scripts-18 ) !sys-fs/udev !!<=sys-fs/udev-180 @@ -111,6 +111,7 @@ pkg_setup() src_prepare() { epatch "${FILESDIR}"/${P}-include-all-search-paths.patch + epatch "${FILESDIR}"/${P}-fix-modprobe-call.patch # change rules back to group uucp instead of dialout for now sed -e 's/GROUP="dialout"/GROUP="uucp"/' \ @@ -143,11 +144,11 @@ src_configure() DBUS_CFLAGS=' ' DBUS_LIBS=' ' --with-rootprefix="${EROOT}" - --docdir="${EROOT}/usr/share/doc/${PF}" - --libdir="${EROOT}/usr/$(get_libdir)" - --with-firmware-path="${EROOT}/usr/lib/firmware/updates:${EROOT}/usr/lib/firmware:${EROOT}/lib/firmware/updates:${EROOT}/lib/firmware" - --with-html-dir="${EROOT}/usr/share/doc/${PF}/html" - --with-rootlibdir="${EROOT}/$(get_libdir)" + --docdir="${EROOT}usr/share/doc/${PF}" + --libdir="${EROOT}usr/$(get_libdir)" + --with-firmware-path="${EROOT}usr/lib/firmware/updates:${EROOT}usr/lib/firmware:${EROOT}lib/firmware/updates:${EROOT}lib/firmware" + --with-html-dir="${EROOT}usr/share/doc/${PF}/html" + --with-rootlibdir="${EROOT}$(get_libdir)" --exec-prefix="${EROOT}" --enable-split-usr $(use_enable doc gtk-doc) @@ -169,6 +170,11 @@ src_install() prune_libtool_files --all rm -rf "${ED}"/usr/share/doc/${PF}/LICENSE.* + # place the keymaps in /$(libdir)/udev instead of /etc + # (fixed upstream but don't want to have to autoreconf) + use keymap && \ + mv "${ED}"/etc/udev/keymaps "${ED}"/$(get_libdir)/udev/keymaps + # install gentoo-specific rules insinto /usr/lib/udev/rules.d doins "${FILESDIR}"/40-gentoo.rules @@ -178,9 +184,9 @@ pkg_preinst() { local htmldir for htmldir in gudev libudev; do - if [[ -d ${EROOT}/usr/share/gtk-doc/html/${htmldir} ]] + if [[ -d ${EROOT}usr/share/gtk-doc/html/${htmldir} ]] then - rm -rf "${EROOT}"/usr/share/gtk-doc/html/${htmldir} + rm -rf "${EROOT}"usr/share/gtk-doc/html/${htmldir} fi if [[ -d ${ED}/usr/share/doc/${PF}/html/${htmldir} ]] then @@ -192,12 +198,12 @@ pkg_preinst() pkg_postinst() { - mkdir -p "${EROOT}"/run + mkdir -p "${EROOT}"run # "losetup -f" is confused if there is an empty /dev/loop/, Bug #338766 # So try to remove it here (will only work if empty). - rmdir "${EROOT}"/dev/loop 2>/dev/null - if [[ -d ${EROOT}/dev/loop ]] + rmdir "${EROOT}"dev/loop 2>/dev/null + if [[ -d ${EROOT}dev/loop ]] then ewarn "Please make sure you remove /dev/loop," ewarn "else losetup may be confused when looking for unused devices." @@ -205,10 +211,10 @@ pkg_postinst() # 64-device-mapper.rules now gets installed by sys-fs/device-mapper # remove it if user don't has sys-fs/device-mapper installed, 27 Jun 2007 - if [[ -f ${EROOT}/etc/udev/rules.d/64-device-mapper.rules ]] && + if [[ -f ${EROOT}etc/udev/rules.d/64-device-mapper.rules ]] && ! has_version sys-fs/device-mapper then - rm -f "${EROOT}"/etc/udev/rules.d/64-device-mapper.rules + rm -f "${EROOT}"etc/udev/rules.d/64-device-mapper.rules einfo "Removed unneeded file 64-device-mapper.rules" fi diff --git a/sys-fs/eudev/files/eudev-1_beta1-fix-modprobe-call.patch b/sys-fs/eudev/files/eudev-1_beta1-fix-modprobe-call.patch new file mode 100644 index 000000000000..12bb57d242e7 --- /dev/null +++ b/sys-fs/eudev/files/eudev-1_beta1-fix-modprobe-call.patch @@ -0,0 +1,26 @@ +diff --git a/src/libudev/util.c b/src/libudev/util.c +index d8c5bb2..92fd227 100644 +--- a/src/libudev/util.c ++++ b/src/libudev/util.c +@@ -4312,7 +4312,7 @@ int execute_command(const char *command, char *const argv[]) + + if (pid == 0) { + +- execv(command, argv); ++ execvp(command, argv); + + log_error("Failed to execute %s: %m", command); + _exit(EXIT_FAILURE); +diff --git a/src/udev/udev-builtin-kmod.c b/src/udev/udev-builtin-kmod.c +index 89c7ab0..300090a 100644 +--- a/src/udev/udev-builtin-kmod.c ++++ b/src/udev/udev-builtin-kmod.c +@@ -68,7 +68,7 @@ static int load_module(struct udev *udev, char *const alias) + kmod_module_unref_list(list); + return err; + #else +- char * const argv[] = { "-bq", alias, 0 }; ++ char * const argv[] = { MODPROBE, "-bq", alias, 0 }; + return execute_command(MODPROBE, argv); + #endif + }
\ No newline at end of file |