summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2005-01-20 12:23:51 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2005-01-20 12:23:51 +0000
commitdc1f0bd44c64ee35398343721e66c959e48fa0de (patch)
treee228c433d38579c8418798f66bbf5a519255bc20 /app-laptop
parentmask fluxbox 0.9.12, bug #78794 (diff)
downloadgentoo-2-dc1f0bd44c64ee35398343721e66c959e48fa0de.tar.gz
gentoo-2-dc1f0bd44c64ee35398343721e66c959e48fa0de.tar.bz2
gentoo-2-dc1f0bd44c64ee35398343721e66c959e48fa0de.zip
Fixed mmap() return value check. Thanks to Vincenzo Romano in bug #76181.
(Portage version: 2.0.51-r14)
Diffstat (limited to 'app-laptop')
-rw-r--r--app-laptop/radeontool/ChangeLog8
-rw-r--r--app-laptop/radeontool/Manifest9
-rw-r--r--app-laptop/radeontool/files/digest-radeontool-1.5-r11
-rw-r--r--app-laptop/radeontool/files/radeontool-1.5-mmap.patch12
-rw-r--r--app-laptop/radeontool/metadata.xml1
-rw-r--r--app-laptop/radeontool/radeontool-1.5-r1.ebuild40
6 files changed, 67 insertions, 4 deletions
diff --git a/app-laptop/radeontool/ChangeLog b/app-laptop/radeontool/ChangeLog
index f7315052f5bb..91c40659162a 100644
--- a/app-laptop/radeontool/ChangeLog
+++ b/app-laptop/radeontool/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-laptop/radeontool
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-laptop/radeontool/ChangeLog,v 1.7 2005/01/01 14:48:29 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/radeontool/ChangeLog,v 1.8 2005/01/20 12:23:51 brix Exp $
+
+*radeontool-1.5-r1 (20 Jan 2005)
+
+ 20 Jan 2005; Henrik Brix Andersen <brix@gentoo.org> metadata.xml,
+ +radeontool-1.5-r1.ebuild:
+ Fixed mmap() return value check. Thanks to Vincenzo Romano in bug #76181.
28 Oct 2004; Simon Stelling <blubb@gentoo.org> radeontool-1.5.ebuild:
added ~amd64
diff --git a/app-laptop/radeontool/Manifest b/app-laptop/radeontool/Manifest
index e573b9f73a49..126ee68a9952 100644
--- a/app-laptop/radeontool/Manifest
+++ b/app-laptop/radeontool/Manifest
@@ -1,8 +1,11 @@
-MD5 06768b917f308b548dccfc3addab29fc ChangeLog 1105
-MD5 dc1773fc29727c205a632b4a780a5d21 metadata.xml 219
+MD5 17a9e32dd0beb3168993fba8fdf1ebb6 radeontool-1.5-r1.ebuild 722
+MD5 b0bbc94a13a1f075999819532d682414 radeontool-1.5.ebuild 633
MD5 81f9003a62515aa695a51ed04dcc0353 radeontool-1.0.ebuild 624
+MD5 06768b917f308b548dccfc3addab29fc ChangeLog 1105
+MD5 b280eebc74d70d85e664debf1adce2c3 metadata.xml 255
MD5 d725e11028a4fcbbf952e2441514a756 radeontool-1.2.ebuild 627
-MD5 b0bbc94a13a1f075999819532d682414 radeontool-1.5.ebuild 633
MD5 2bce9fe520969350548ae12cba76d6b2 files/digest-radeontool-1.0 65
MD5 b27a421c6b32989fdf46a9ed36e2aea6 files/digest-radeontool-1.2 65
MD5 354913651b0e6e37c53069e84329bde4 files/digest-radeontool-1.5 65
+MD5 354913651b0e6e37c53069e84329bde4 files/digest-radeontool-1.5-r1 65
+MD5 322e4f9536fffd2172a01583f65d46ca files/radeontool-1.5-mmap.patch 502
diff --git a/app-laptop/radeontool/files/digest-radeontool-1.5-r1 b/app-laptop/radeontool/files/digest-radeontool-1.5-r1
new file mode 100644
index 000000000000..bb8d2632d1b7
--- /dev/null
+++ b/app-laptop/radeontool/files/digest-radeontool-1.5-r1
@@ -0,0 +1 @@
+MD5 8065eebe5a2b163e43b40461bfe49a56 radeontool-1.5.tar.gz 20869
diff --git a/app-laptop/radeontool/files/radeontool-1.5-mmap.patch b/app-laptop/radeontool/files/radeontool-1.5-mmap.patch
new file mode 100644
index 000000000000..b05eb54bf412
--- /dev/null
+++ b/app-laptop/radeontool/files/radeontool-1.5-mmap.patch
@@ -0,0 +1,12 @@
+diff -urp radeontool-1.5/radeontool.c radeontool-1.5-mmap/radeontool.c
+--- radeontool-1.5/radeontool.c 2004-02-11 04:50:27.000000000 +0100
++++ radeontool-1.5-mmap/radeontool.c 2005-01-20 13:12:50.000000000 +0100
+@@ -107,7 +107,7 @@ static unsigned char * map_devince_memor
+ mem_fd,
+ base
+ );
+- if ((long)device_mem < 0) {
++ if (device_mem == MAP_FAILED) {
+ if(debug)
+ fprintf(stderr,"mmap returned %d\n",(int)device_mem);
+ fatal("mmap error \n");
diff --git a/app-laptop/radeontool/metadata.xml b/app-laptop/radeontool/metadata.xml
index 042b87179f01..cfbdff13bd61 100644
--- a/app-laptop/radeontool/metadata.xml
+++ b/app-laptop/radeontool/metadata.xml
@@ -4,5 +4,6 @@
<herd>mobile</herd>
<maintainer>
<email>brix@gentoo.org</email>
+ <name>Henrik Brix Andersen</name>
</maintainer>
</pkgmetadata>
diff --git a/app-laptop/radeontool/radeontool-1.5-r1.ebuild b/app-laptop/radeontool/radeontool-1.5-r1.ebuild
new file mode 100644
index 000000000000..a8018a5c3cf6
--- /dev/null
+++ b/app-laptop/radeontool/radeontool-1.5-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/radeontool/radeontool-1.5-r1.ebuild,v 1.1 2005/01/20 12:23:51 brix Exp $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Control the backlight and external video output of ATI Radeon Mobility graphics cards"
+
+HOMEPAGE="http://fdd.com/software/radeon/"
+SRC_URI="http://fdd.com/software/radeon/${P}.tar.gz"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+
+IUSE=""
+
+DEPEND="sys-apps/sed"
+RDEPEND="sys-apps/pciutils"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/${P}-mmap.patch
+
+ sed -i \
+ -e "s:-Wall -O2:${CFLAGS}:" \
+ -e "s:gcc:$(tc-getCC):" \
+ ${S}/Makefile
+}
+
+src_compile() {
+ emake || die "emake failed"
+}
+
+src_install() {
+ dobin radeontool
+ dodoc CHANGES
+}