summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-03-06 23:44:12 +0000
committerMike Frysinger <vapier@gentoo.org>2004-03-06 23:44:12 +0000
commit085c7c00620b0b43a5ca7ae2cbbc8ec7fc1977be (patch)
treea88d8d4a16d005144f6523bdc6a7c7961d6a3443 /sys-fs/udev
parentAdded a patch to compile Version 1.7.2. Closes bug #39208. Also corrected (diff)
downloadhistorical-085c7c00620b0b43a5ca7ae2cbbc8ec7fc1977be.tar.gz
historical-085c7c00620b0b43a5ca7ae2cbbc8ec7fc1977be.tar.bz2
historical-085c7c00620b0b43a5ca7ae2cbbc8ec7fc1977be.zip
gcc-2.x patch
Diffstat (limited to 'sys-fs/udev')
-rw-r--r--sys-fs/udev/ChangeLog5
-rw-r--r--sys-fs/udev/files/udev-021-udev_add_c-gcc295-compat.patch16
-rw-r--r--sys-fs/udev/udev-021.ebuild4
3 files changed, 23 insertions, 2 deletions
diff --git a/sys-fs/udev/ChangeLog b/sys-fs/udev/ChangeLog
index 1c310bfc4fa9..c613ebf1aa3e 100644
--- a/sys-fs/udev/ChangeLog
+++ b/sys-fs/udev/ChangeLog
@@ -1,9 +1,12 @@
# ChangeLog for sys-fs/udev
# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.35 2004/03/04 19:13:03 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.36 2004/03/06 23:44:11 vapier Exp $
*udev-021 (04 Mar 2004)
+ 06 Mar 2004; Mike Frysinger <vapier@gentoo.org>
+ Add gcc-2.x compat patch.
+
04 Mar 2004; Martin Schlemmer <azarah@gentoo.org> udev-021.ebuild:
Update version. Add udevstart and manpage to be installed.
diff --git a/sys-fs/udev/files/udev-021-udev_add_c-gcc295-compat.patch b/sys-fs/udev/files/udev-021-udev_add_c-gcc295-compat.patch
new file mode 100644
index 000000000000..9f106e027273
--- /dev/null
+++ b/sys-fs/udev/files/udev-021-udev_add_c-gcc295-compat.patch
@@ -0,0 +1,16 @@
+--- udev-021/udev-add.c.orig 2004-03-06 18:38:37.000000000 -0500
++++ udev-021/udev-add.c 2004-03-06 18:39:05.000000000 -0500
+@@ -226,10 +226,12 @@
+ if (endptr[0] == '\0')
+ uid = (uid_t) id;
+ else {
++ struct passwd *pw;
++
+ if (strncmp(dev->owner, LOCAL_USER, sizeof(LOCAL_USER)) == 0)
+ set_to_local_user(dev->owner);
+
+- struct passwd *pw = getpwnam(dev->owner);
++ pw = getpwnam(dev->owner);
+ if (pw == NULL)
+ dbg("specified user unknown '%s'", dev->owner);
+ else
diff --git a/sys-fs/udev/udev-021.ebuild b/sys-fs/udev/udev-021.ebuild
index 569b4bea03ae..c6d3c69c2ba9 100644
--- a/sys-fs/udev/udev-021.ebuild
+++ b/sys-fs/udev/udev-021.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-021.ebuild,v 1.1 2004/03/04 19:13:03 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-021.ebuild,v 1.2 2004/03/06 23:44:12 vapier Exp $
# Note: Cannot use external libsysfs with klibc ..
USE_KLIBC="no"
@@ -34,6 +34,8 @@ src_unpack() {
unpack ${A}
cd ${S}
+ epatch ${FILESDIR}/${P}-udev_add_c-gcc295-compat.patch
+
# No need to clutter the logs ...
sed -ie '/^DEBUG/ c\DEBUG = false' Makefile
# Do not use optimization flags from the package