diff options
author | Tony Vroon <chainsaw@gentoo.org> | 2005-02-18 20:03:14 +0000 |
---|---|---|
committer | Tony Vroon <chainsaw@gentoo.org> | 2005-02-18 20:03:14 +0000 |
commit | 6bd7d33f69acb2278ca1a8c6a9b8c0d3d81f1bbe (patch) | |
tree | c0bcc651a8f178e87a2a3ea5e61953394901f10f /sys-apps | |
parent | new package (diff) | |
download | historical-6bd7d33f69acb2278ca1a8c6a9b8c0d3d81f1bbe.tar.gz historical-6bd7d33f69acb2278ca1a8c6a9b8c0d3d81f1bbe.tar.bz2 historical-6bd7d33f69acb2278ca1a8c6a9b8c0d3d81f1bbe.zip |
GCC 4 compatability update; closes bug #80588
Package-Manager: portage-2.0.51-r15
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/module-init-tools/ChangeLog | 6 | ||||
-rw-r--r-- | sys-apps/module-init-tools/Manifest | 29 | ||||
-rw-r--r-- | sys-apps/module-init-tools/files/modutils-2.4.27-gcc4.patch | 162 | ||||
-rw-r--r-- | sys-apps/module-init-tools/module-init-tools-3.1.ebuild | 3 |
4 files changed, 183 insertions, 17 deletions
diff --git a/sys-apps/module-init-tools/ChangeLog b/sys-apps/module-init-tools/ChangeLog index eb41ec82b103..dfd8456ceced 100644 --- a/sys-apps/module-init-tools/ChangeLog +++ b/sys-apps/module-init-tools/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-apps/module-init-tools # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/module-init-tools/ChangeLog,v 1.76 2005/02/17 02:27:53 solar Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/module-init-tools/ChangeLog,v 1.77 2005/02/18 20:03:14 chainsaw Exp $ + + 18 Feb 2005; Tony Vroon <chainsaw@gentoo.org> + +files/modutils-2.4.27-gcc4.patch, module-init-tools-3.1.ebuild: + GCC 4 compatability update; closes bug #80588 16 Feb 2005; <solar@gentoo.org> module-init-tools-3.1.ebuild: - filtering pic is no longer needed diff --git a/sys-apps/module-init-tools/Manifest b/sys-apps/module-init-tools/Manifest index d0a594a953e9..c9921cffc7ea 100644 --- a/sys-apps/module-init-tools/Manifest +++ b/sys-apps/module-init-tools/Manifest @@ -1,25 +1,24 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -MD5 4fb20d2777bb43182cb7ffaf7de7d54a module-init-tools-3.1.ebuild 5660 -MD5 ef7accc0a9f69fdb2a673cddab0f2732 ChangeLog 14838 -MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164 MD5 9aa2d9dc0c5d86a58788e346acca57d9 module-init-tools-3.0-r2.ebuild 5489 -MD5 d179298a960a2576683689fe19818c8b files/generate-modprobe-assume-kernel.patch 3767 -MD5 060ce311606657915548168939e965b4 files/modutils-2.4.22-no-above-below.patch 382 +MD5 187b1843b513986bf51359562552db9f module-init-tools-3.1.ebuild 5711 +MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164 +MD5 e527e3debd30abf012b019aa7e8a1a56 ChangeLog 15005 +MD5 d5504b6d6ed1ef697275b3a48a1e49e7 files/modutils-2.4.27-gcc34.patch 231 +MD5 97fd0899fb54b236e35bdd1bd5fae336 files/modutils-2.4.27-PATH_MAX.patch 309 MD5 813f2779e10e8f29d9e1d58dda93a5e3 files/digest-module-init-tools-3.1 142 +MD5 060ce311606657915548168939e965b4 files/modutils-2.4.22-no-above-below.patch 382 +MD5 d179298a960a2576683689fe19818c8b files/generate-modprobe-assume-kernel.patch 3767 +MD5 2da5de5fa7c26cdef6a84788452653e6 files/modutils-2.4.27-gcc4.patch 6052 +MD5 07aa415fd57ac42cd0c11527edc9782d files/module-init-tools-0.9.15-legacy-modext-support.patch 481 +MD5 469d7fc1f915c60585afc8d895b1668a files/digest-module-init-tools-3.0-r2 142 MD5 0562a7a338175d0b6100ef7958b0ef5e files/module-init-tools-3.1_generate-modprobe-assume-kernel.patch 3766 MD5 34f20e2837caff74cef9cca766e1e0c4 files/3.1-modprobe.d.5.bz2 2288 -MD5 469d7fc1f915c60585afc8d895b1668a files/digest-module-init-tools-3.0-r2 142 -MD5 97fd0899fb54b236e35bdd1bd5fae336 files/modutils-2.4.27-PATH_MAX.patch 309 -MD5 d5504b6d6ed1ef697275b3a48a1e49e7 files/modutils-2.4.27-gcc34.patch 231 -MD5 07aa415fd57ac42cd0c11527edc9782d files/module-init-tools-0.9.15-legacy-modext-support.patch 481 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v1.2.4 (GNU/Linux) +Version: GnuPG v1.4.0-ecc0.1.6 (GNU/Linux) -iQCVAwUBQhQGDZ4WFLgrx1GWAQKi5wP/aHCEFDUYTAQvjBZpz08nZF7lzbEdN8BL -c6SpdldBOdOfG0kDpCPqmIQp+AfjvesXxJCZ/+eAzb4mDUbsaN5lsYkIv28ZdkbN -HhJGnKNO+woMHOZGMBLgDvHhXaYGVwyrIO9Wrg0kjNTJoqOijJtRT2VJaNRp1dyb -zajv1xc3940= -=uqTY +iD8DBQFCFkqBp5vW4rUFj5oRApQaAJ90wJrvdmJNORz8kr3wuTM/RcqxGgCcCnOn +j5+0FhubkkPP68QPaV5Yefw= +=QrMy -----END PGP SIGNATURE----- diff --git a/sys-apps/module-init-tools/files/modutils-2.4.27-gcc4.patch b/sys-apps/module-init-tools/files/modutils-2.4.27-gcc4.patch new file mode 100644 index 000000000000..4e2145e49fbf --- /dev/null +++ b/sys-apps/module-init-tools/files/modutils-2.4.27-gcc4.patch @@ -0,0 +1,162 @@ +diff -urN ../tmp-orig/modutils-2.4.26/depmod/depmod.c ./depmod/depmod.c +--- ../tmp-orig/modutils-2.4.26/depmod/depmod.c 2003-03-23 02:34:28.000000000 +0000 ++++ ./depmod/depmod.c 2004-11-30 09:58:15.000000000 +0000 +@@ -1133,7 +1133,7 @@ + + for (ksym = ksyms; so_far < nksyms; ++so_far, ksym++) { + if (strncmp((char *)ksym->name, "GPLONLY_", 8) == 0) +- ((char *)ksym->name) += 8; ++ ksym->name = ((char *)ksym->name) + 8; + assert(n_syms < MAX_MAP_SYM); + symtab[n_syms++] = addsym((char *)ksym->name, mod, SYM_DEFINED, 0); + } +diff -urN ../tmp-orig/modutils-2.4.26/genksyms/genksyms.c ./genksyms/genksyms.c +--- ../tmp-orig/modutils-2.4.26/genksyms/genksyms.c 2002-03-01 00:39:06.000000000 +0000 ++++ ./genksyms/genksyms.c 2004-11-30 09:58:15.000000000 +0000 +@@ -45,7 +45,7 @@ + int flag_debug, flag_dump_defs, flag_warnings; + int checksum_version = 1, kernel_version = version(2,0,0); + +-static int errors; ++static int _errors; + static int nsyms; + + static struct symbol *expansion_trail; +@@ -458,7 +458,7 @@ + va_end(args); + putc('\n', stderr); + +- errors++; ++ _errors++; + } + } + +@@ -476,7 +476,7 @@ + va_end(args); + putc('\n', stderr); + +- errors++; ++ _errors++; + } + } + +@@ -597,5 +597,5 @@ + nsyms, HASH_BUCKETS, (double)nsyms / (double)HASH_BUCKETS); + } + +- return errors != 0; ++ return _errors != 0; + } +diff -urN ../tmp-orig/modutils-2.4.26/insmod/insmod.c ./insmod/insmod.c +--- ../tmp-orig/modutils-2.4.26/insmod/insmod.c 2003-10-27 02:34:46.000000000 +0000 ++++ ./insmod/insmod.c 2004-11-30 09:57:07.000000000 +0000 +@@ -275,7 +275,7 @@ + if (strncmp((char *)s->name, "GPLONLY_", 8) == 0) { + gplonly_seen = 1; + if (gpl) +- ((char *)s->name) += 8; ++ s->name = ((char *)s->name) + 8; + else + continue; + } +diff -urN ../tmp-orig/modutils-2.4.26/insmod/insmod.c.rej ./insmod/insmod.c.rej +--- ../tmp-orig/modutils-2.4.26/insmod/insmod.c.rej 1970-01-01 00:00:00.000000000 +0000 ++++ ./insmod/insmod.c.rej 2004-11-30 09:58:17.000000000 +0000 +@@ -0,0 +1,17 @@ ++*************** ++*** 275,281 **** ++ if (strncmp((char *)s->name, "GPLONLY_", 8) == 0) { ++ gplonly_seen = 1; ++ if (gpl) ++- ((char *)s->name) += 8; ++ else ++ continue; ++ } ++--- 275,281 ---- ++ if (strncmp((char *)s->name, "GPLONLY_", 8) == 0) { ++ gplonly_seen = 1; ++ if (gpl) +++ s->name = ((char *)s->name) + 8; ++ else ++ continue; ++ } +diff -urN ../tmp-orig/modutils-2.4.26/obj/obj_kallsyms.c ./obj/obj_kallsyms.c +--- ../tmp-orig/modutils-2.4.26/obj/obj_kallsyms.c 2002-03-01 00:39:06.000000000 +0000 ++++ ./obj/obj_kallsyms.c 2004-11-30 09:54:52.000000000 +0000 +@@ -200,8 +200,8 @@ + + /* Initial contents, header + one entry per input section. No strings. */ + osec->header.sh_size = sizeof(*a_hdr) + loaded*sizeof(*a_sec); +- a_hdr = (struct kallsyms_header *) osec->contents = +- xmalloc(osec->header.sh_size); ++ osec->contents = xmalloc(osec->header.sh_size); ++ a_hdr = (struct kallsyms_header *) osec->contents; + memset(osec->contents, 0, osec->header.sh_size); + a_hdr->size = sizeof(*a_hdr); + a_hdr->sections = loaded; +@@ -275,8 +275,8 @@ + a_hdr->symbol_off + + a_hdr->symbols*a_hdr->symbol_size + + strings_size - strings_left; +- a_hdr = (struct kallsyms_header *) osec->contents = +- xrealloc(a_hdr, a_hdr->total_size); ++ osec->contents = xrealloc(a_hdr, a_hdr->total_size); ++ a_hdr = (struct kallsyms_header *) osec->contents; + p = (char *)a_hdr + a_hdr->symbol_off; + memcpy(p, symbols, a_hdr->symbols*a_hdr->symbol_size); + free(symbols); +diff -urN ../tmp-orig/modutils-2.4.26/obj/obj_kallsyms.c.rej ./obj/obj_kallsyms.c.rej +--- ../tmp-orig/modutils-2.4.26/obj/obj_kallsyms.c.rej 1970-01-01 00:00:00.000000000 +0000 ++++ ./obj/obj_kallsyms.c.rej 2004-11-30 09:58:18.000000000 +0000 +@@ -0,0 +1,38 @@ ++*************** ++*** 200,207 **** ++ ++ /* Initial contents, header + one entry per input section. No strings. */ ++ osec->header.sh_size = sizeof(*a_hdr) + loaded*sizeof(*a_sec); ++- a_hdr = (struct kallsyms_header *) osec->contents = ++- xmalloc(osec->header.sh_size); ++ memset(osec->contents, 0, osec->header.sh_size); ++ a_hdr->size = sizeof(*a_hdr); ++ a_hdr->sections = loaded; ++--- 200,207 ---- ++ ++ /* Initial contents, header + one entry per input section. No strings. */ ++ osec->header.sh_size = sizeof(*a_hdr) + loaded*sizeof(*a_sec); +++ osec->contents = xmalloc(osec->header.sh_size); +++ a_hdr = (struct kallsyms_header *) osec->contents; ++ memset(osec->contents, 0, osec->header.sh_size); ++ a_hdr->size = sizeof(*a_hdr); ++ a_hdr->sections = loaded; ++*************** ++*** 275,282 **** ++ a_hdr->symbol_off + ++ a_hdr->symbols*a_hdr->symbol_size + ++ strings_size - strings_left; ++- a_hdr = (struct kallsyms_header *) osec->contents = ++- xrealloc(a_hdr, a_hdr->total_size); ++ p = (char *)a_hdr + a_hdr->symbol_off; ++ memcpy(p, symbols, a_hdr->symbols*a_hdr->symbol_size); ++ free(symbols); ++--- 275,282 ---- ++ a_hdr->symbol_off + ++ a_hdr->symbols*a_hdr->symbol_size + ++ strings_size - strings_left; +++ osec->contents = xrealloc(a_hdr, a_hdr->total_size); +++ a_hdr = (struct kallsyms_header *) osec->contents; ++ p = (char *)a_hdr + a_hdr->symbol_off; ++ memcpy(p, symbols, a_hdr->symbols*a_hdr->symbol_size); ++ free(symbols); +diff -urN ../tmp-orig/modutils-2.4.26/obj/obj_ppc.c ./obj/obj_ppc.c +--- ../tmp-orig/modutils-2.4.26/obj/obj_ppc.c 2002-03-01 00:39:06.000000000 +0000 ++++ ./obj/obj_ppc.c 2004-11-30 09:55:50.000000000 +0000 +@@ -255,7 +255,8 @@ + archdata_sec->header.sh_size = 0; + sec = obj_find_section(f, "__ftr_fixup"); + if (sec) { +- ad = (struct archdata *) (archdata_sec->contents) = xmalloc(sizeof(*ad)); ++ archdata_sec->contents = xmalloc(sizeof(*ad)); ++ ad = (struct archdata *) (archdata_sec->contents); + memset(ad, 0, sizeof(*ad)); + archdata_sec->header.sh_size = sizeof(*ad); + ad->__start___ftr_fixup = sec->header.sh_addr; diff --git a/sys-apps/module-init-tools/module-init-tools-3.1.ebuild b/sys-apps/module-init-tools/module-init-tools-3.1.ebuild index 0acfdc538e4a..6dcfa555651f 100644 --- a/sys-apps/module-init-tools/module-init-tools-3.1.ebuild +++ b/sys-apps/module-init-tools/module-init-tools-3.1.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/sys-apps/module-init-tools/module-init-tools-3.1.ebuild,v 1.7 2005/02/17 02:27:53 solar Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/module-init-tools/module-init-tools-3.1.ebuild,v 1.8 2005/02/18 20:03:14 chainsaw Exp $ inherit flag-o-matic eutils gnuconfig toolchain-funcs @@ -41,6 +41,7 @@ src_unpack() { epatch ${FILESDIR}/modutils-2.4.22-no-above-below.patch epatch ${FILESDIR}/modutils-2.4.27-PATH_MAX.patch epatch ${FILESDIR}/modutils-2.4.27-gcc34.patch + epatch ${FILESDIR}/modutils-2.4.27-gcc4.patch # fi # Support legacy .o modules |