diff options
author | William Hubbs <williamh@gentoo.org> | 2012-01-06 04:25:47 +0000 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2012-01-06 04:25:47 +0000 |
commit | f9039be98da747d19621d173b4553c5c1b7d22e9 (patch) | |
tree | 450c4ad5b7b48e709a6e115b10f44d459ec9d89b /sys-fs | |
parent | Version bump for stable channel release. (diff) | |
download | historical-f9039be98da747d19621d173b4553c5c1b7d22e9.tar.gz historical-f9039be98da747d19621d173b4553c5c1b7d22e9.tar.bz2 historical-f9039be98da747d19621d173b4553c5c1b7d22e9.zip |
add back the zlib patch for bug #360849 after speaking with ssuominon.
Package-Manager: portage-2.2.0_alpha84/cvs/Linux i686
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/udev/Manifest | 9 | ||||
-rw-r--r-- | sys-fs/udev/files/udev-175-zlib.patch | 89 | ||||
-rw-r--r-- | sys-fs/udev/udev-175-r1.ebuild | 12 |
3 files changed, 103 insertions, 7 deletions
diff --git a/sys-fs/udev/Manifest b/sys-fs/udev/Manifest index ab91ba1d499a..514b9a0cca9f 100644 --- a/sys-fs/udev/Manifest +++ b/sys-fs/udev/Manifest @@ -84,6 +84,7 @@ AUX udev-150-fix-missing-firmware-timeout.diff 1065 RMD160 79a9fa2321d9d9fc6cf03 AUX udev-151-readd-hd-rules.diff 2759 RMD160 5a3e52ce6442ef14f5f89faa36f98ddeb06fda00 SHA1 d954725615e963ba2854c0e4c0a424450e89280e SHA256 47eb3b3dd8c8c3199148aa083a47b2cbd29953b647b6ed06391424a353e6d39c AUX udev-164-remove-v4l1.patch 1263 RMD160 6fac54e8ef9810c57065f730e3fcacb0a47f9143 SHA1 491bdba9b141acff68b9cd18b65055d9f7f41b54 SHA256 df8a13ea471f40383438aa5133465f580841e5cd7a95aedc090d85f7389a6403 AUX udev-167-revert-disable-all-extras.patch 1281 RMD160 fd62b74bc534aad58690615edc5cbeafcacf3b3e SHA1 3a822ef8b94d5d08cb80546de1b6b5a56b958fea SHA256 fb695c5032f30a2091554db4dcb2713025ffc7e01036e39910421776a54c95d0 +AUX udev-175-zlib.patch 2538 RMD160 fdbacc949ab91e0a1e25a3166e8c7429ab6c06cc SHA1 9997b3c15d6ff80498fae4b1b639e969e80b0fa0 SHA256 c45723fe523746f17baea14a68a2b9e4f3c301ea87c7c3636a7b23f393634c76 AUX udev-postmount-initd-111-r2 508 RMD160 e1f42197fe3003ec4691b768a921029ce085becb SHA1 7ceb08150d429bd6b5cef88d76847575c6e89f22 SHA256 607deb133ab4be0d2fcb16346e86b3d8ae00bd62d2cbc1329458f278a1b1ff5c AUX udev-start-113-r2.sh 6515 RMD160 2ecaa37fd9e498e60f8cd5978cb4f7930594cf99 SHA1 670bb1845ed70442fe598a5580101be75e2402c9 SHA256 438bc31605c8d2e50bebedd7fbff1410845738372ab3bc03d6f5ed1427ddd046 AUX udev-start-114-r1.sh 6218 RMD160 a7348ac44768096b3da712a9be0ef4bf9af6ec17 SHA1 6dfcb9aed5e066d21bebee03d29137722db19b56 SHA256 a639a6f1093f05da197c3fc548c31f7078b2f0023f66f3caade0721c60819268 @@ -130,7 +131,7 @@ EBUILD udev-149.ebuild 16617 RMD160 2f1b1341baff38ce6381cb72acaef25586633972 SHA EBUILD udev-151-r4.ebuild 16856 RMD160 863ca3cea76cec9eb9d76ebeec9bdcaa8285d862 SHA1 4e9dc5c524eda050dd0a9e78e4c243e1aa3817b7 SHA256 4fa0c4ccb24a81595f3899f8a16be65529368d8a3f0c4e14689093689602ab3c EBUILD udev-164-r2.ebuild 15295 RMD160 75fec2865a95ab50d08782acd69dded82b37de5a SHA1 fbd00a1d32e46fbebf00c01706e1584e747fa01a SHA256 53414efdbfab07c01774fee2f93a5653604d44bb6b2d6526526d3c1856656045 EBUILD udev-171-r5.ebuild 15561 RMD160 bc5f202faa0744571fd1ecb9f47ca92b47f5dc94 SHA1 f0d1b4e6d00795b5a8bc06df16687a94f2708502 SHA256 e2475435b4b20a2400585dca9845cf9244cd4ac914d463a1fc4910b099f3336c -EBUILD udev-175-r1.ebuild 12553 RMD160 58bc0f05000aed5c18cc4c7735a60a604612aeb6 SHA1 3739d8eef96da0209b5b2e6df634780d495a5f72 SHA256 d0aecee2494a56b8fab4bd8e8571f907abe84b4a4988b4f9de24fb1a18ff1030 +EBUILD udev-175-r1.ebuild 12652 RMD160 12df1ef9e4a3bdf7b77e54e9a9bcbbefa473d97b SHA1 955f3175a290f52cb4e3621da1054acdfc686ab5 SHA256 3896f79f3025c1669712bc8902d09438829e11a9c132fc8f1524776b96a5802c EBUILD udev-9999.ebuild 12396 RMD160 d4a0d680d94d316cde14158a702eaf47c51522b1 SHA1 77ee95bb85d56d8df66e70f47fb898c016c073c2 SHA256 e4624b5bc0643ad2cdbeeddbbbb2441c8d3ee30b9cffd9e45498f2c144eee9e0 MISC ChangeLog 22931 RMD160 8044901a5d58c6b70b1eddc8629f351ce9223f4a SHA1 338fd0d377ccd3b6a360d46966a02fb8ba343c8d SHA256 3908e03b8d1a608220bc4820a92eccc6105b08b01f2871d7d3487f5fc2066150 MISC ChangeLog-2009 105929 RMD160 0c1dd5616962702fb0e85e4f9572fa27b0ee9d0f SHA1 d5635636ae54db968b8405a66be7d20c8d3f99ae SHA256 7a8d7123b7395dc5bbde09a8c0cee1c5110d24faf87a68a8210b0c6bdf862c1c @@ -138,7 +139,7 @@ MISC metadata.xml 1235 RMD160 36ff4665ed99aa392ff8003e9351bd620cc79424 SHA1 3fd0 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) -iEYEARECAAYFAk8DnhoACgkQblQW9DDEZTg91QCgjUIf9pc0wdhtwAREuWy6w5ZT -ErUAn3S9/XVgQDhYeHCaSERL3/jNYxYh -=8hs4 +iEYEARECAAYFAk8GdqYACgkQblQW9DDEZTh6MwCdH4zKn4/iGesrrXGVEZ4UNtQF +UcEAnRkwWCBBejoFRrPp8HjpZVLvLs31 +=IBkt -----END PGP SIGNATURE----- diff --git a/sys-fs/udev/files/udev-175-zlib.patch b/sys-fs/udev/files/udev-175-zlib.patch new file mode 100644 index 000000000000..fb93bbbfdcbd --- /dev/null +++ b/sys-fs/udev/files/udev-175-zlib.patch @@ -0,0 +1,89 @@ +--- a/extras/usb-db/usb-db.c ++++ b/extras/usb-db/usb-db.c +@@ -90,19 +90,60 @@ + #define HEXCHARS "0123456789abcdefABCDEF" + #define WHITESPACE " \t\n\r" + ++#ifdef USE_ZLIB ++ ++#include <zlib.h> ++ ++static ssize_t gz_getline(char **lineptr, size_t *n, void *stream) ++{ ++ if (!*lineptr) ++ *lineptr = malloc(*n = 4096); ++ if (!*lineptr) ++ return -1; ++ if (gzgets(stream, *lineptr, *n - 1)) { ++ (*lineptr)[*n - 1] = '\0'; ++ /* should return strlen(*lineptr), but caller doesn't care */ ++ return 0; ++ } ++ return -1; ++} ++static int gz_fclose(void *stream) ++{ ++ return gzclose(stream); ++} ++ ++static ssize_t stdio_getline(char **lineptr, size_t *n, void *stream) ++{ ++ return getline(lineptr, n, stream); ++} ++static int stdio_fclose(void *stream) ++{ ++ return fclose(stream); ++} ++ ++#endif ++ + static int lookup_vid_pid( + uint16_t vid, + uint16_t pid, + char **vendor, + char **product) { + +- FILE *f; ++ void *f; + int ret = -1; + int found_vendor = 0; + char *line = NULL; + + *vendor = *product = NULL; + ++#ifdef USE_ZLIB ++ ssize_t (*getline)(char **lineptr, size_t *n, void *stream) = stdio_getline; ++ int (*fclose)(void *stream) = stdio_fclose; ++ if ((f = gzopen(DATABASE ".gz", "r"))) { ++ getline = gz_getline; ++ fclose = gz_fclose; ++ } else ++#endif + if (!(f = fopen(DATABASE, "r"))) { + fprintf(stderr, "Failed to open database file "DATABASE": %s\n", strerror(errno)); + return -1; +@@ -111,11 +152,6 @@ + for (;;) { + size_t n; + +- if (line) { +- free(line); +- line = NULL; +- } +- + if (getline(&line, &n, f) < 0) + break; + +--- a/Makefile.in ++++ b/Makefile.in +@@ -987,7 +987,7 @@ + # ------------------------------------------------------------------------------ + @ENABLE_HWDB_TRUE@extras_usb_db_usb_db_SOURCES = extras/usb-db/usb-db.c +-@ENABLE_HWDB_TRUE@extras_usb_db_usb_db_CPPFLAGS = $(AM_CPPFLAGS) -DUSB_DATABASE=\"$(USB_DATABASE)\" -DBUILD_FOR_USB ++@ENABLE_HWDB_TRUE@extras_usb_db_usb_db_CPPFLAGS = $(AM_CPPFLAGS) -DUSB_DATABASE=\"$(USB_DATABASE)\" -DBUILD_FOR_USB -DUSE_ZLIB +-@ENABLE_HWDB_TRUE@extras_usb_db_usb_db_LDADD = libudev/libudev-private.la ++@ENABLE_HWDB_TRUE@extras_usb_db_usb_db_LDADD = libudev/libudev-private.la -lz + @ENABLE_HWDB_TRUE@extras_usb_db_pci_db_SOURCES = extras/usb-db/usb-db.c +-@ENABLE_HWDB_TRUE@extras_usb_db_pci_db_CPPFLAGS = $(AM_CPPFLAGS) -DPCI_DATABASE=\"$(PCI_DATABASE)\" -DBUILD_FOR_PCI ++@ENABLE_HWDB_TRUE@extras_usb_db_pci_db_CPPFLAGS = $(AM_CPPFLAGS) -DPCI_DATABASE=\"$(PCI_DATABASE)\" -DBUILD_FOR_PCI -DUSE_ZLIB + @ENABLE_HWDB_TRUE@extras_usb_db_pci_db_LDADD = libudev/libudev-private.la diff --git a/sys-fs/udev/udev-175-r1.ebuild b/sys-fs/udev/udev-175-r1.ebuild index b2ffc591143e..0780599cb32d 100644 --- a/sys-fs/udev/udev-175-r1.ebuild +++ b/sys-fs/udev/udev-175-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-175-r1.ebuild,v 1.5 2012/01/04 00:36:37 williamh Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-175-r1.ebuild,v 1.6 2012/01/06 04:25:47 williamh Exp $ EAPI=4 @@ -34,7 +34,7 @@ HOMEPAGE="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html" LICENSE="GPL-2" SLOT="0" IUSE="build selinux debug +rule_generator hwdb acl gudev introspection - keymap floppy edd doc" + keymap floppy edd doc zlib" COMMON_DEPEND="selinux? ( sys-libs/libselinux ) acl? ( sys-apps/acl dev-libs/glib:2 ) @@ -62,7 +62,11 @@ else fi RDEPEND="${COMMON_DEPEND} - hwdb? ( >=sys-apps/usbutils-0.82 sys-apps/pciutils[-zlib] ) + hwdb? ( + >=sys-apps/usbutils-0.82 + sys-apps/pciutils[zlib=] + zlib? ( sys-libs/zlib ) + ) acl? ( sys-apps/coreutils[acl] ) !sys-apps/coldplug !<sys-fs/lvm2-2.02.45 @@ -132,6 +136,8 @@ src_prepare() EPATCH_FORCE="yes" epatch fi + use hwdb && use zlib && epatch "${FILESDIR}"/${P}-zlib.patch + # change rules back to group uucp instead of dialout for now sed -e 's/GROUP="dialout"/GROUP="uucp"/' \ -i rules/{rules.d,arch}/*.rules \ |