diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2005-07-24 10:53:28 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2005-07-24 10:53:28 +0000 |
commit | dca0627a53566ec782af12a10e642fa7321c08df (patch) | |
tree | 2df17ebc04d9a817a6aa7fa1868e10902ec52278 /net-misc/dhcpcd | |
parent | added media-libs/openexr:fltk (diff) | |
download | historical-dca0627a53566ec782af12a10e642fa7321c08df.tar.gz historical-dca0627a53566ec782af12a10e642fa7321c08df.tar.bz2 historical-dca0627a53566ec782af12a10e642fa7321c08df.zip |
Fix building with gcc2.
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'net-misc/dhcpcd')
-rw-r--r-- | net-misc/dhcpcd/ChangeLog | 6 | ||||
-rw-r--r-- | net-misc/dhcpcd/Manifest | 25 | ||||
-rw-r--r-- | net-misc/dhcpcd/dhcpcd-1.3.22_p4-r12.ebuild | 5 | ||||
-rw-r--r-- | net-misc/dhcpcd/files/dhcpcd-1.3.22_p4-gcc2.patch | 84 |
4 files changed, 106 insertions, 14 deletions
diff --git a/net-misc/dhcpcd/ChangeLog b/net-misc/dhcpcd/ChangeLog index 80dbbab031b1..0e8d8269ca2c 100644 --- a/net-misc/dhcpcd/ChangeLog +++ b/net-misc/dhcpcd/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-misc/dhcpcd # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/ChangeLog,v 1.52 2005/07/12 12:19:38 spb Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/ChangeLog,v 1.53 2005/07/24 10:53:28 azarah Exp $ + + 24 Jul 2005; Martin Schlemmer <azarah@gentoo.org> + +files/dhcpcd-1.3.22_p4-gcc2.patch, dhcpcd-1.3.22_p4-r12.ebuild: + Fix building with gcc2. 12 Jul 2005; Stephen Bennett <spb@gentoo.org> dhcpcd-1.3.22_p4-r11.ebuild: mips stable for #98394 diff --git a/net-misc/dhcpcd/Manifest b/net-misc/dhcpcd/Manifest index 3a43c35b9ba8..037467dd4277 100644 --- a/net-misc/dhcpcd/Manifest +++ b/net-misc/dhcpcd/Manifest @@ -2,23 +2,24 @@ Hash: SHA1 MD5 6fbbdb8a3dfb1d323229fdd21cbbcb23 dhcpcd-1.3.22_p4-r5.ebuild 1944 -MD5 6fe58567b648100d4ff11902921b6889 metadata.xml 165 -MD5 1e416fa7f47ae134ef45e0c4eee4b425 dhcpcd-1.3.22_p4-r12.ebuild 2846 +MD5 fdd16eb07a7e7971f0340ac3c9a81269 dhcpcd-1.3.22_p4-r12.ebuild 2908 MD5 b1103dd25a7cfdc577b6722ddcd0e7da dhcpcd-1.3.22_p4-r11.ebuild 2031 -MD5 9f8099855bac0c8a9496926aeb89b168 ChangeLog 8836 -MD5 f62309143521db696e2229fd34a43fed files/dhcpcd-1.3.22_p4-man.patch 243 -MD5 e0bb9c921a368634a1e4f77c975c4726 files/dhcpcd-1.3.22_p4-security.patch 340 -MD5 34b2bd2c58141701c8ba5279c6669e0c files/dhcpcd-1.3.22_p4-optionFQDN.patch 17381 +MD5 14b8ca8226759c7441671b35489ee9d1 ChangeLog 8985 +MD5 6fe58567b648100d4ff11902921b6889 metadata.xml 165 MD5 daaf0c8fa44a481c8943f585ff870714 files/digest-dhcpcd-1.3.22_p4-r5 224 -MD5 ad580fb02fc1fa72a24fb3c952491bce files/dhcpcd-1.3.22_p4-routemetric.patch 4652 -MD5 daaf0c8fa44a481c8943f585ff870714 files/digest-dhcpcd-1.3.22_p4-r12 224 -MD5 e5580d4472c718a772f6e1c700757968 files/dhcpcd-1.3.22_p4-no-iface-down.diff 2606 MD5 daaf0c8fa44a481c8943f585ff870714 files/digest-dhcpcd-1.3.22_p4-r11 224 MD5 be85439617940623ae04f72797bbf3e4 files/dhcpcd-1.3.22_p4-gentoo-config.patch 11908 +MD5 daaf0c8fa44a481c8943f585ff870714 files/digest-dhcpcd-1.3.22_p4-r12 224 +MD5 e0bb9c921a368634a1e4f77c975c4726 files/dhcpcd-1.3.22_p4-security.patch 340 +MD5 ad580fb02fc1fa72a24fb3c952491bce files/dhcpcd-1.3.22_p4-routemetric.patch 4652 +MD5 34b2bd2c58141701c8ba5279c6669e0c files/dhcpcd-1.3.22_p4-optionFQDN.patch 17381 +MD5 f62309143521db696e2229fd34a43fed files/dhcpcd-1.3.22_p4-man.patch 243 +MD5 99fde5f8cec79a35c728c798f6352e4f files/dhcpcd-1.3.22_p4-gcc2.patch 2929 +MD5 e5580d4472c718a772f6e1c700757968 files/dhcpcd-1.3.22_p4-no-iface-down.diff 2606 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) -iD8DBQFC2fxbgIKl8Uu19MoRAnSBAKCCFvH9TVvIZDVEVq8rF1yX3OZ2+QCeNLtk -tyZz/9xrNusthrXWmUkvXLM= -=7D5e +iD8DBQFC43PZ1ZcsMnZjRyIRAllhAJwIuLP9WoAzGqlxwRaS2QkgUPFo3QCfTZjZ +6/TiJ7tAlLGRBHu5GNt1oHc= +=jcpE -----END PGP SIGNATURE----- diff --git a/net-misc/dhcpcd/dhcpcd-1.3.22_p4-r12.ebuild b/net-misc/dhcpcd/dhcpcd-1.3.22_p4-r12.ebuild index 6fc1baabff59..ef13eed0abcb 100644 --- a/net-misc/dhcpcd/dhcpcd-1.3.22_p4-r12.ebuild +++ b/net-misc/dhcpcd/dhcpcd-1.3.22_p4-r12.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/net-misc/dhcpcd/dhcpcd-1.3.22_p4-r12.ebuild,v 1.1 2005/07/10 10:02:13 uberlord Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/dhcpcd-1.3.22_p4-r12.ebuild,v 1.2 2005/07/24 10:53:28 azarah Exp $ inherit flag-o-matic eutils @@ -57,6 +57,9 @@ src_unpack() { # Stop a possible DoS issue - fixes #98394 epatch "${FILESDIR}"/${P}-security.patch + # Fix compiling on gcc2 + epatch "${FILESDIR}"/${P}-gcc2.patch + # Make sure we use paths from configure rather than hardcoded crap sed -i \ -e '/^mandir/s:=.*:=@mandir@:' \ diff --git a/net-misc/dhcpcd/files/dhcpcd-1.3.22_p4-gcc2.patch b/net-misc/dhcpcd/files/dhcpcd-1.3.22_p4-gcc2.patch new file mode 100644 index 000000000000..e62013fea3e0 --- /dev/null +++ b/net-misc/dhcpcd/files/dhcpcd-1.3.22_p4-gcc2.patch @@ -0,0 +1,84 @@ +--- dhcpcd-1.3.22-pl4/dhcpconfig.c 2005-07-24 12:51:33 +0200 ++++ dhcpcd-1.3.22-pl4.az/dhcpconfig.c 2005-07-24 12:53:34 +0200 +@@ -382,8 +382,8 @@ + f=fopen(resolv_file, "w"); + if ( f ) + { +- fprintf(f, "# Generated by dhcpcd for interface %s\n", IfName); + int i; ++ fprintf(f, "# Generated by dhcpcd for interface %s\n", IfName); + if ( DhcpOptions.len[domainName] ) + fprintf(f,"domain %s\n",(char *)DhcpOptions.val[domainName]); + +@@ -413,9 +413,9 @@ + f=fopen(nis_file, "w"); + if ( f ) + { +- fprintf(f, "# Generated by dhcpcd for interface %s\n", IfName); + int i; + char *prefix=NULL; ++ fprintf(f, "# Generated by dhcpcd for interface %s\n", IfName); + if ( DhcpOptions.len[nisDomainName] ) { + if ( DhcpOptions.len[nisServers] ) { + prefix=(char *)malloc(DhcpOptions.len[nisDomainName] + 15); +@@ -447,8 +447,10 @@ + f=fopen(ntp_file, "w"); + if ( f ) + { +- fprintf(f, "# Generated by dhcpcd for interface %s\n", IfName); + int net, mask; ++ int i; ++ char addr[4*3+3*1+1]; ++ fprintf(f, "# Generated by dhcpcd for interface %s\n", IfName); + memcpy(&mask,DhcpOptions.val[subnetMask],4); + net = DhcpIface.ciaddr & mask; + +@@ -456,17 +458,15 @@ + fprintf(f,"restrict default noquery notrust nomodify\n"); + fprintf(f,"restrict 127.0.0.1\n"); + +- int i; +- char addr[4*3+3*1+1]; +- for (i=0;i<DhcpOptions.len[ntpServers];i+=4) +- { +- snprintf(addr,sizeof(addr),"%u.%u.%u.%u", +- ((unsigned char *)DhcpOptions.val[ntpServers])[i], +- ((unsigned char *)DhcpOptions.val[ntpServers])[i+1], +- ((unsigned char *)DhcpOptions.val[ntpServers])[i+2], +- ((unsigned char *)DhcpOptions.val[ntpServers])[i+3]); +- fprintf(f,"restrict %s nomodify notrap noquery\nserver %s\n",addr,addr); +- } ++ for (i=0;i<DhcpOptions.len[ntpServers];i+=4) ++ { ++ snprintf(addr,sizeof(addr),"%u.%u.%u.%u", ++ ((unsigned char *)DhcpOptions.val[ntpServers])[i], ++ ((unsigned char *)DhcpOptions.val[ntpServers])[i+1], ++ ((unsigned char *)DhcpOptions.val[ntpServers])[i+2], ++ ((unsigned char *)DhcpOptions.val[ntpServers])[i+3]); ++ fprintf(f,"restrict %s nomodify notrap noquery\nserver %s\n",addr,addr); ++ } + + fprintf(f, "driftfile /var/lib/ntp/ntp.drift\n"); + fprintf(f, "logfile /var/log/ntp.log\n"); +--- dhcpcd-1.3.22-pl4/dhcpcd.c 2005-07-24 12:53:57 +0200 ++++ dhcpcd-1.3.22-pl4.az/dhcpcd.c 2005-07-24 12:55:42 +0200 +@@ -146,6 +146,8 @@ + if ( argc[i][0]=='-' ) + prgs: switch ( argc[i][s] ) + { ++ char *tmp; ++ long m; + case 0: + i++; + s=1; +@@ -158,9 +160,8 @@ + if ( argc[i][s+1] ) goto usage; + i++; + if ( ! argc[i] ) goto usage; +- char *tmp; + errno = 0; +- long m=strtol(argc[i], &tmp, 0); ++ m=strtol(argc[i], &tmp, 0); + if (argc[i][0] == '\0' || *tmp != '\0' ) goto usage; + if ((errno == ERANGE && + (m == LONG_MAX || m == LONG_MIN )) || |