diff options
author | Henrik Brix Andersen <brix@gentoo.org> | 2005-05-20 12:53:28 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@gentoo.org> | 2005-05-20 12:53:28 +0000 |
commit | f90b8e5ea306e2f8134ee5b062d15d258e42de97 (patch) | |
tree | 07c74c8127e7e7794136537043be9c833263d39d /sys-fs/sysfsutils | |
parent | Revision bump; added patch to fix underquoted m4 degs. Also, only install API... (diff) | |
download | historical-f90b8e5ea306e2f8134ee5b062d15d258e42de97.tar.gz historical-f90b8e5ea306e2f8134ee5b062d15d258e42de97.tar.bz2 historical-f90b8e5ea306e2f8134ee5b062d15d258e42de97.zip |
Added write_attribute() patch fixing bug #84228.
Package-Manager: portage-2.0.51.22-r1
Diffstat (limited to 'sys-fs/sysfsutils')
-rw-r--r-- | sys-fs/sysfsutils/ChangeLog | 9 | ||||
-rw-r--r-- | sys-fs/sysfsutils/Manifest | 11 | ||||
-rw-r--r-- | sys-fs/sysfsutils/files/digest-sysfsutils-1.2.0-r1 | 1 | ||||
-rw-r--r-- | sys-fs/sysfsutils/files/sysfsutils-1.2.0-write-attribute.patch | 29 | ||||
-rw-r--r-- | sys-fs/sysfsutils/sysfsutils-1.2.0-r1.ebuild | 30 |
5 files changed, 75 insertions, 5 deletions
diff --git a/sys-fs/sysfsutils/ChangeLog b/sys-fs/sysfsutils/ChangeLog index 0e4d15e55bb6..27261ce6ae1b 100644 --- a/sys-fs/sysfsutils/ChangeLog +++ b/sys-fs/sysfsutils/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-fs/sysfsutils # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/sysfsutils/ChangeLog,v 1.16 2005/04/01 17:23:45 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/sysfsutils/ChangeLog,v 1.17 2005/05/20 12:53:28 brix Exp $ + +*sysfsutils-1.2.0-r1 (20 May 2005) + + 20 May 2005; <brix@gentoo.org> + +files/sysfsutils-1.2.0-write-attribute.patch, + +sysfsutils-1.2.0-r1.ebuild: + Added write_attribute() patch fixing bug #84228. 01 Apr 2005; Aron Griffis <agriffis@gentoo.org> sysfsutils-1.2.0.ebuild: stable on ia64 diff --git a/sys-fs/sysfsutils/Manifest b/sys-fs/sysfsutils/Manifest index 12994389e8cc..15224a4ba709 100644 --- a/sys-fs/sysfsutils/Manifest +++ b/sys-fs/sysfsutils/Manifest @@ -1,13 +1,16 @@ -MD5 e189c5eedccea00f5148939d307d2954 ChangeLog 2341 -MD5 075d5a933d6175160a02ddf15bd4f454 metadata.xml 260 -MD5 3090a149b97070cb953800ed13e16f89 sysfsutils-0.2.0.ebuild 968 MD5 91867476ef02cbfbbe71fe37f8518a83 sysfsutils-0.3.0.ebuild 987 MD5 ea883f19a1a1c2dd7768d2fc272b9c97 sysfsutils-0.4.0.ebuild 1009 MD5 a828cb4b6a8eafcb5d09183b4c19324f sysfsutils-1.0.0.ebuild 1163 +MD5 3090a149b97070cb953800ed13e16f89 sysfsutils-0.2.0.ebuild 968 +MD5 7e7075f23dac634652d9ba42796bba14 sysfsutils-1.2.0-r1.ebuild 801 MD5 5bad6609c165bea1fa4f294f84195d08 sysfsutils-1.2.0.ebuild 707 +MD5 b02cba7d2abbe33e5f31b5ad7bbed877 ChangeLog 2538 +MD5 075d5a933d6175160a02ddf15bd4f454 metadata.xml 260 +MD5 7816e44cfd51440f0f295ccdd7103856 files/sysfsutils-1.2.0-write-attribute.patch 998 +MD5 f258b9fe54d64e883cd7cb0e8bcf7a27 files/digest-sysfsutils-1.2.0-r1 68 MD5 3aeda907194d0ce63ad841586ea3187f files/digest-sysfsutils-0.2.0 67 MD5 0384b6e5908a20cdcd66447733b28194 files/digest-sysfsutils-0.3.0 68 MD5 ae9dcbf820cd304b04eb37505fbc3831 files/digest-sysfsutils-0.4.0 68 MD5 e3fe8d4ec06f785ffc6cf54df2ca4599 files/digest-sysfsutils-1.0.0 68 -MD5 5a161d5fa015560dcecb0f489399350d files/sysfsutils-1.0.0-dont-check-for-libsysfs.patch 386 MD5 f258b9fe54d64e883cd7cb0e8bcf7a27 files/digest-sysfsutils-1.2.0 68 +MD5 5a161d5fa015560dcecb0f489399350d files/sysfsutils-1.0.0-dont-check-for-libsysfs.patch 386 diff --git a/sys-fs/sysfsutils/files/digest-sysfsutils-1.2.0-r1 b/sys-fs/sysfsutils/files/digest-sysfsutils-1.2.0-r1 new file mode 100644 index 000000000000..a159531192f3 --- /dev/null +++ b/sys-fs/sysfsutils/files/digest-sysfsutils-1.2.0-r1 @@ -0,0 +1 @@ +MD5 a690216709d1e129c04057a93970996b sysfsutils-1.2.0.tar.gz 284227 diff --git a/sys-fs/sysfsutils/files/sysfsutils-1.2.0-write-attribute.patch b/sys-fs/sysfsutils/files/sysfsutils-1.2.0-write-attribute.patch new file mode 100644 index 000000000000..447d90f5885e --- /dev/null +++ b/sys-fs/sysfsutils/files/sysfsutils-1.2.0-write-attribute.patch @@ -0,0 +1,29 @@ +Hi, + +int sysfs_write_attribute(struct sysfs_attribute *sysattr, + const char *new_value, size_t len) + +has a problematic "feature": if the file is empty but readable, nothing gets +written into it. The attached patch (untested) should fix it. + + Dominik + + +The check which tests whether the value to be written into a sysfs attribute +is already there should only trigger if the length of both strings is the +same. + +Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net> + +--- sysfsutils-1.2.0/lib/sysfs_dir.c.original 2005-02-21 08:10:33.000000000 +0100 ++++ sysfsutils-1.2.0/lib/sysfs_dir.c 2005-02-21 08:14:01.000000000 +0100 +@@ -194,7 +194,8 @@ + dprintf("Error reading attribute\n"); + return -1; + } +- if ((strncmp(sysattr->value, new_value, sysattr->len)) == 0) { ++ if (((strncmp(sysattr->value, new_value, sysattr->len)) == 0)&& ++ (len == sysattr->len)) { + dprintf("Attr %s already has the requested value %s\n", + sysattr->name, new_value); + return 0; diff --git a/sys-fs/sysfsutils/sysfsutils-1.2.0-r1.ebuild b/sys-fs/sysfsutils/sysfsutils-1.2.0-r1.ebuild new file mode 100644 index 000000000000..896a8c8f12bb --- /dev/null +++ b/sys-fs/sysfsutils/sysfsutils-1.2.0-r1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/sysfsutils/sysfsutils-1.2.0-r1.ebuild,v 1.1 2005/05/20 12:53:28 brix Exp $ + +inherit eutils libtool + +DESCRIPTION="System Utilities Based on Sysfs" +HOMEPAGE="http://linux-diag.sourceforge.net/Sysfsutils.html" +SRC_URI="mirror://sourceforge/linux-diag/${P}.tar.gz" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="" + +DEPEND="" + +src_unpack() { + unpack ${A} + + cd ${S} + epatch ${FILESDIR}/${P}-write-attribute.patch +} + +src_install() { + make DESTDIR="${D}" install || die + # We do not distribute this + rm -f "${D}"/usr/bin/dlist_test + dodoc AUTHORS ChangeLog NEWS README TODO docs/libsysfs.txt +} |