diff options
author | 2005-08-17 03:12:49 +0000 | |
---|---|---|
committer | 2005-08-17 03:12:49 +0000 | |
commit | 3babb254b2ad4f292d4d3a67d3814ef139fd20d6 (patch) | |
tree | afa6b9251f4afd2672d5d6f4b8ea89d49210cc32 | |
parent | keyworded sparc, bug 89510 (diff) | |
download | historical-3babb254b2ad4f292d4d3a67d3814ef139fd20d6.tar.gz historical-3babb254b2ad4f292d4d3a67d3814ef139fd20d6.tar.bz2 historical-3babb254b2ad4f292d4d3a67d3814ef139fd20d6.zip |
Fix 64bit issue with utmp structure #102667 by Bruno Lustosa.
Package-Manager: portage-2.0.51.22-r2
-rw-r--r-- | games-misc/bsd-games/ChangeLog | 7 | ||||
-rw-r--r-- | games-misc/bsd-games/Manifest | 12 | ||||
-rw-r--r-- | games-misc/bsd-games/bsd-games-2.17.ebuild | 4 | ||||
-rw-r--r-- | games-misc/bsd-games/files/2.17-64bit.patch | 21 | ||||
-rw-r--r-- | games-misc/bsd-games/files/bsd-games-2.17-64bit.patch | 43 |
5 files changed, 57 insertions, 30 deletions
diff --git a/games-misc/bsd-games/ChangeLog b/games-misc/bsd-games/ChangeLog index b7235c24cb8c..5f07e17919c3 100644 --- a/games-misc/bsd-games/ChangeLog +++ b/games-misc/bsd-games/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-misc/bsd-games # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-misc/bsd-games/ChangeLog,v 1.15 2005/08/17 02:58:01 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-misc/bsd-games/ChangeLog,v 1.16 2005/08/17 03:12:49 vapier Exp $ + + 17 Aug 2005; Mike Frysinger <vapier@gentoo.org> + +files/bsd-games-2.17-64bit.patch, -files/2.17-64bit.patch, + bsd-games-2.17.ebuild: + Fix 64bit issue with utmp structure #102667 by Bruno Lustosa. 17 Aug 2005; Mike Frysinger <vapier@gentoo.org> bsd-games-2.17.ebuild: Remove fortune from the default build list since we already have a fortune diff --git a/games-misc/bsd-games/Manifest b/games-misc/bsd-games/Manifest index 7513fef5a922..9e6d78de5984 100644 --- a/games-misc/bsd-games/Manifest +++ b/games-misc/bsd-games/Manifest @@ -3,21 +3,21 @@ Hash: SHA1 MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158 MD5 2f9735e488afcef504f656aebd330569 bsd-games-2.13-r1.ebuild 3823 -MD5 0c89363053201a102bce175a2d081ebb bsd-games-2.17.ebuild 3836 -MD5 b9465ae16ca8fa61cd805a7901a9f042 ChangeLog 2221 -MD5 d7db0213c9e81e091c2c9ec0b4d0c763 files/2.17-64bit.patch 701 +MD5 f5d78be48f9b76b642ad209e66d111ef bsd-games-2.17.ebuild 3835 +MD5 27ce0a3c0af2a4874097804f84d4c9c5 ChangeLog 2423 MD5 1eb5517d165adf9425cb382abc6c6528 files/digest-bsd-games-2.13-r1 67 MD5 ecbae8c67d0898a9e4d428b940de45a2 files/bsd-games-2.17-gcc4.patch 893 MD5 7b405328dec7855e30134bf6164ce565 files/2.13-gentoo.patch 254 MD5 d7db0213c9e81e091c2c9ec0b4d0c763 files/2.13-64bit.patch 701 MD5 cb372290d9037a0b968c5dede115709e files/digest-bsd-games-2.17 209 +MD5 257813b76a41c8b2c02701571c804227 files/bsd-games-2.17-64bit.patch 1322 MD5 fa8fffba1c31764862eacba7536a0bbf files/2.13-debian-11.patch 9384 MD5 a11b834c3e9102314333db5acf29c876 files/bsd-games-2.13-gcc4.patch 840 MD5 cd4e0a199968b029d1d043c45b36b0c8 files/config.params-gentoo 1244 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) -iD8DBQFDAqfMgIKl8Uu19MoRAq3+AJ9jQ9QFDxIOxisJvoEVIDheSsn+AQCZAXeB -lpVKAf8vYeJfSl94EsRxsXc= -=SxOf +iD8DBQFDAqtEgIKl8Uu19MoRAuERAJoCcgYZ93hOotbqTIQ8ExNxFUwccgCfWOLh +CK0SSi9XT0YFtqXxoDz02zc= +=WPC0 -----END PGP SIGNATURE----- diff --git a/games-misc/bsd-games/bsd-games-2.17.ebuild b/games-misc/bsd-games/bsd-games-2.17.ebuild index 193d2c124d17..ecc5e6a85f16 100644 --- a/games-misc/bsd-games/bsd-games-2.17.ebuild +++ b/games-misc/bsd-games/bsd-games-2.17.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-misc/bsd-games/bsd-games-2.17.ebuild,v 1.3 2005/08/17 02:58:01 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-misc/bsd-games/bsd-games-2.17.ebuild,v 1.4 2005/08/17 03:12:49 vapier Exp $ inherit eutils games @@ -35,7 +35,7 @@ src_unpack() { cd "${S}" epatch \ "${DISTDIR}/bsdgames_${PV}-2.diff.gz" \ - "${FILESDIR}"/${PV}-64bit.patch \ + "${FILESDIR}"/${P}-64bit.patch \ "${FILESDIR}"/${P}-gcc4.patch sed -i \ diff --git a/games-misc/bsd-games/files/2.17-64bit.patch b/games-misc/bsd-games/files/2.17-64bit.patch deleted file mode 100644 index 1457c7ef5413..000000000000 --- a/games-misc/bsd-games/files/2.17-64bit.patch +++ /dev/null @@ -1,21 +0,0 @@ -David Leverton writes: - -The 'adventure' game from the games-misc/bsd-games-2.13 package crashes -when saving the game on AMD64 (and probably other 64-bit systems, but I -haven't checked). Find attached to fix this. - -http://bugs.gentoo.org/show_bug.cgi?id=77032 - ---- bsd-games-2.13/adventure/crc.c~ 1999-04-04 12:49:03.000000000 +0100 -+++ bsd-games-2.13/adventure/crc.c 2005-01-07 02:42:07.027698064 +0000 -@@ -134,7 +134,8 @@ - if (step >= sizeof(crctab) / sizeof(crctab[0])) - step = 0; - } -- crcval = (crcval << 8) ^ crctab[i]; -+ /* Mask to 32 bits. */ -+ crcval = ((crcval << 8) ^ crctab[i]) & 0xffffffff; - } -- return crcval & 0xffffffff; /* Mask to 32 bits. */ -+ return crcval; - } diff --git a/games-misc/bsd-games/files/bsd-games-2.17-64bit.patch b/games-misc/bsd-games/files/bsd-games-2.17-64bit.patch new file mode 100644 index 000000000000..a56ea8454bc4 --- /dev/null +++ b/games-misc/bsd-games/files/bsd-games-2.17-64bit.patch @@ -0,0 +1,43 @@ +David Leverton writes about adventure/crc.c: + +The 'adventure' game from the games-misc/bsd-games-2.13 package crashes +when saving the game on AMD64 (and probably other 64-bit systems, but I +haven't checked). Find attached to fix this. + +http://bugs.gentoo.org/show_bug.cgi?id=77032 + + +About utmpentry.c: + +the utmpx structure defines the ut_tv member a little differently on +64bit hosts so that a 32bit and 64bit structure can be shared. So the +ut_tv is a custom 32bit structure rather than the native 64bit timeval +structure. Work around is to assign the submembers instead. + +http://bugs.gentoo.org/show_bug.cgi?id=102667 + +--- bsd-games/adventure/crc.c ++++ bsd-games/adventure/crc.c +@@ -134,7 +134,8 @@ + if (step >= sizeof(crctab) / sizeof(crctab[0])) + step = 0; + } +- crcval = (crcval << 8) ^ crctab[i]; ++ /* Mask to 32 bits. */ ++ crcval = ((crcval << 8) ^ crctab[i]) & 0xffffffff; + } +- return crcval & 0xffffffff; /* Mask to 32 bits. */ ++ return crcval; + } +--- bsd-games/dm/utmpentry.c ++++ bsd-games/dm/utmpentry.c +@@ -291,7 +291,8 @@ + e->line[sizeof(e->line) - 1] = '\0'; + (void)strncpy(e->host, up->ut_host, sizeof(up->ut_host)); + e->name[sizeof(e->host) - 1] = '\0'; +- e->tv = up->ut_tv; ++ e->tv.tv_sec = up->ut_tv.tv_sec; ++ e->tv.tv_usec = up->ut_tv.tv_usec; + adjust_size(e); + } + #endif |