[gentoo-commits] repo/gentoo:master commit in: sys-fs/eudev/files/, sys-fs/eudev/

2021-12-24 Thread Mike Gilbert
commit: dd7725ce945b2368ea4dcab1ac8dc655cd13565c
Author: Mike Gilbert  gentoo  org>
AuthorDate: Fri Dec 24 19:12:36 2021 +
Commit: Mike Gilbert  gentoo  org>
CommitDate: Fri Dec 24 19:14:19 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd7725ce

sys-fs/eudev: sync 40-gentoo.rules with sys-fs/udev

Signed-off-by: Mike Gilbert  gentoo.org>

 .../eudev/{eudev-3.2.11.ebuild => eudev-3.2.11-r1.ebuild}   |  0
 sys-fs/eudev/files/40-gentoo.rules  | 13 +++--
 2 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/sys-fs/eudev/eudev-3.2.11.ebuild 
b/sys-fs/eudev/eudev-3.2.11-r1.ebuild
similarity index 100%
rename from sys-fs/eudev/eudev-3.2.11.ebuild
rename to sys-fs/eudev/eudev-3.2.11-r1.ebuild

diff --git a/sys-fs/eudev/files/40-gentoo.rules 
b/sys-fs/eudev/files/40-gentoo.rules
index 365c6ea0d441..6b96bd07051e 100644
--- a/sys-fs/eudev/files/40-gentoo.rules
+++ b/sys-fs/eudev/files/40-gentoo.rules
@@ -1,10 +1,3 @@
-# do not edit this file, it will be overwritten on update
-
-# Propably unrequired, check how it is with OSS/OSS4, then remove
-SUBSYSTEM=="snd", GROUP="audio"
-
-# Gentoo specific usb group
-SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="usb"
-
-# Keep this for Linux 2.6.32 support wrt #457868
-SUBSYSTEM=="mem", KERNEL=="null|zero|full|random|urandom", MODE="0666"
+# Gentoo specific groups
+ACTION=="add", SUBSYSTEM=="block", KERNEL=="fd[0-9]", GROUP="floppy"
+ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="usb"



[gentoo-commits] repo/gentoo:master commit in: sys-fs/eudev/files/, sys-fs/eudev/

2017-05-01 Thread Anthony G. Basile
commit: 5e5a23d25855ad4b022e60e62430577784e712a5
Author: Anthony G. Basile  gentoo  org>
AuthorDate: Mon May  1 14:36:56 2017 +
Commit: Anthony G. Basile  gentoo  org>
CommitDate: Mon May  1 14:36:56 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e5a23d2

sys-fs/eudev: fix bug #616628

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 sys-fs/eudev/eudev-3.2.2-r1.ebuild| 244 ++
 sys-fs/eudev/files/eudev-fix-disk-by-id.patch |  43 +
 2 files changed, 287 insertions(+)

diff --git a/sys-fs/eudev/eudev-3.2.2-r1.ebuild 
b/sys-fs/eudev/eudev-3.2.2-r1.ebuild
new file mode 100644
index 000..a2612d6b967
--- /dev/null
+++ b/sys-fs/eudev/eudev-3.2.2-r1.ebuild
@@ -0,0 +1,244 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+KV_min=2.6.39
+
+inherit autotools eutils linux-info multilib multilib-minimal user
+
+if [[ ${PV} = * ]]; then
+   EGIT_REPO_URI="git://github.com/gentoo/eudev.git"
+   inherit git-2
+else
+   SRC_URI="https://dev.gentoo.org/~blueness/${PN}/${P}.tar.gz;
+   KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 
~sparc ~x86"
+fi
+
+DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace 
devfs)"
+HOMEPAGE="https://github.com/gentoo/eudev;
+
+LICENSE="LGPL-2.1 MIT GPL-2"
+SLOT="0"
+IUSE="+hwdb +kmod introspection rule-generator selinux static-libs test"
+
+COMMON_DEPEND=">=sys-apps/util-linux-2.20
+   introspection? ( >=dev-libs/gobject-introspection-1.38 )
+   kmod? ( >=sys-apps/kmod-16 )
+   selinux? ( >=sys-libs/libselinux-2.1.9 )
+   !https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames;
+   ewarn
+   ewarn "This functionality is enabled BY DEFAULT because eudev has no 
means of synchronizing"
+   ewarn "between the default or user-modified choice of sys-fs/udev.  If 
you wish to disable"
+   ewarn "this new iface naming, please be sure that 
/etc/udev/rules.d/80-net-name-slot.rules"
+   ewarn "exists: touch /etc/udev/rules.d/80-net-name-slot.rules"
+   ewarn
+}
+
+pkg_setup() {
+   CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~!IDE ~INOTIFY_USER 
~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2 ~SIGNALFD ~EPOLL ~FHANDLE ~NET ~UNIX"
+   linux-info_pkg_setup
+   get_running_version
+
+   # These are required kernel options, but we don't error out on them
+   # because you can build under one kernel and run under another.
+   if kernel_is lt ${KV_min//./ }; then
+   ewarn
+   ewarn "Your current running kernel version ${KV_FULL} is too 
old to run ${P}."
+   ewarn "Make sure to run udev under kernel version ${KV_min} or 
above."
+   ewarn
+   fi
+}
+
+src_prepare() {
+   # change rules back to group uucp instead of dialout for now
+   sed -e 's/GROUP="dialout"/GROUP="uucp"/' -i rules/*.rules \
+   || die "failed to change group dialout to uucp"
+
+   eapply "${FILESDIR}"/${PN}-fix-disk-by-id.patch
+
+   eapply_user
+   eautoreconf
+}
+
+multilib_src_configure() {
+   tc-export CC #463846
+   export cc_cv_CFLAGS__flto=no #502950
+
+   # Keep sorted by ./configure --help and only pass --disable flags
+   # when *required* to avoid external deps or unnecessary compile
+   local econf_args
+   econf_args=(
+   ac_cv_search_cap_init=
+   ac_cv_header_sys_capability_h=yes
+   DBUS_CFLAGS=' '
+   DBUS_LIBS=' '
+   --with-rootprefix=
+   --with-rootrundir=/run
+   --libdir="${EPREFIX}"/usr/$(get_libdir)
+   --with-rootlibexecdir="${EPREFIX}"/lib/udev
+   --enable-split-usr
+   --enable-manpages
+   --disable-hwdb
+   --exec-prefix="${EPREFIX}"
+   )
+
+   # Only build libudev for non-native_abi, and only install it to libdir,
+   # that means all options only apply to native_abi
+   if multilib_is_native_abi; then
+   econf_args+=(
+   --with-rootlibdir="${EPREFIX}"/$(get_libdir)
+   $(use_enable introspection)
+   $(use_enable kmod)
+   $(use_enable static-libs static)
+   $(use_enable selinux)
+   $(use_enable rule-generator)
+   )
+   else
+   econf_args+=(
+   --disable-static
+   --disable-introspection
+   --disable-kmod
+   --disable-selinux
+   --disable-rule-generator
+   )
+   fi
+   ECONF_SOURCE="${S}" econf "${econf_args[@]}"
+}
+
+multilib_src_compile() {
+   if multilib_is_native_abi; then
+   emake
+   else
+   emake -C src/shared
+ 

[gentoo-commits] repo/gentoo:master commit in: sys-fs/eudev/files/, sys-fs/eudev/

2017-04-19 Thread Anthony G. Basile
commit: ca879f958148cb768f0735c3d6c957b3646fa8e7
Author: Anthony G. Basile  gentoo  org>
AuthorDate: Wed Apr 19 21:25:10 2017 +
Commit: Anthony G. Basile  gentoo  org>
CommitDate: Wed Apr 19 21:25:26 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca879f95

sys-fs/eudev: remove older unstable version

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 sys-fs/eudev/eudev-3.2.1-r1.ebuild   | 244 ---
 sys-fs/eudev/files/eudev-fix-new-gperf.patch |  22 ---
 2 files changed, 266 deletions(-)

diff --git a/sys-fs/eudev/eudev-3.2.1-r1.ebuild 
b/sys-fs/eudev/eudev-3.2.1-r1.ebuild
deleted file mode 100644
index d873ba895bc..000
--- a/sys-fs/eudev/eudev-3.2.1-r1.ebuild
+++ /dev/null
@@ -1,244 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-KV_min=2.6.39
-
-inherit autotools eutils linux-info multilib multilib-minimal user
-
-if [[ ${PV} = * ]]; then
-   EGIT_REPO_URI="git://github.com/gentoo/eudev.git"
-   inherit git-2
-else
-   SRC_URI="https://dev.gentoo.org/~blueness/${PN}/${P}.tar.gz;
-   KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 
~sparc ~x86"
-fi
-
-DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace 
devfs)"
-HOMEPAGE="https://github.com/gentoo/eudev;
-
-LICENSE="LGPL-2.1 MIT GPL-2"
-SLOT="0"
-IUSE="+hwdb +kmod introspection rule-generator selinux static-libs test"
-
-COMMON_DEPEND=">=sys-apps/util-linux-2.20
-   introspection? ( >=dev-libs/gobject-introspection-1.38 )
-   kmod? ( >=sys-apps/kmod-16 )
-   selinux? ( >=sys-libs/libselinux-2.1.9 )
-   !https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames;
-   ewarn
-   ewarn "This functionality is enabled BY DEFAULT because eudev has no 
means of synchronizing"
-   ewarn "between the default or user-modified choice of sys-fs/udev.  If 
you wish to disable"
-   ewarn "this new iface naming, please be sure that 
/etc/udev/rules.d/80-net-name-slot.rules"
-   ewarn "exists: touch /etc/udev/rules.d/80-net-name-slot.rules"
-   ewarn
-}
-
-pkg_setup() {
-   CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~!IDE ~INOTIFY_USER 
~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2 ~SIGNALFD ~EPOLL ~FHANDLE ~NET ~UNIX"
-   linux-info_pkg_setup
-   get_running_version
-
-   # These are required kernel options, but we don't error out on them
-   # because you can build under one kernel and run under another.
-   if kernel_is lt ${KV_min//./ }; then
-   ewarn
-   ewarn "Your current running kernel version ${KV_FULL} is too 
old to run ${P}."
-   ewarn "Make sure to run udev under kernel version ${KV_min} or 
above."
-   ewarn
-   fi
-}
-
-src_prepare() {
-   # upstream fix for new gperf versions
-   epatch  "${FILESDIR}/${PN}-fix-new-gperf.patch"
-   # change rules back to group uucp instead of dialout for now
-   sed -e 's/GROUP="dialout"/GROUP="uucp"/' -i rules/*.rules \
-   || die "failed to change group dialout to uucp"
-
-   epatch_user
-   eautoreconf
-}
-
-multilib_src_configure() {
-   tc-export CC #463846
-   export cc_cv_CFLAGS__flto=no #502950
-
-   # Keep sorted by ./configure --help and only pass --disable flags
-   # when *required* to avoid external deps or unnecessary compile
-   local econf_args
-   econf_args=(
-   ac_cv_search_cap_init=
-   ac_cv_header_sys_capability_h=yes
-   DBUS_CFLAGS=' '
-   DBUS_LIBS=' '
-   --with-rootprefix=
-   --with-rootrundir=/run
-   --libdir="${EPREFIX}"/usr/$(get_libdir)
-   --with-rootlibexecdir="${EPREFIX}"/lib/udev
-   --enable-split-usr
-   --enable-manpages
-   --disable-hwdb
-   --exec-prefix="${EPREFIX}"
-   )
-
-   # Only build libudev for non-native_abi, and only install it to libdir,
-   # that means all options only apply to native_abi
-   if multilib_is_native_abi; then
-   econf_args+=(
-   --with-rootlibdir="${EPREFIX}"/$(get_libdir)
-   $(use_enable introspection)
-   $(use_enable kmod)
-   $(use_enable static-libs static)
-   $(use_enable selinux)
-   $(use_enable rule-generator)
-   )
-   else
-   econf_args+=(
-   --disable-static
-   --disable-introspection
-   --disable-kmod
-   --disable-selinux
-   --disable-rule-generator
-   )
-   fi
-   ECONF_SOURCE="${S}" econf "${econf_args[@]}"
-}
-
-multilib_src_compile() {
-   if multilib_is_native_abi; then
-