Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=56b3bc82690e124404929313197a974c0bd2e098
commit 56b3bc82690e124404929313197a974c0bd2e098 Author: bouleetbil <bouleet...@frogdev.info> Date: Mon Dec 28 14:36:26 2009 +0000 wireless_tools-29-2-i686 *disable useless redifine iniline (break ppc) diff --git a/source/base/wireless_tools/Disable_redifineinline.diff b/source/base/wireless_tools/Disable_redifineinline.diff new file mode 100644 index 0000000..b521765 --- /dev/null +++ b/source/base/wireless_tools/Disable_redifineinline.diff @@ -0,0 +1,38 @@ +--- wireless_tools.29/iwlib.h~ 2007-06-22 18:01:04.000000000 +0000 ++++ wireless_tools.29/iwlib.h 2009-12-27 22:12:51.000000000 +0000 +@@ -60,35 +60,6 @@ + /* Private copy of Wireless extensions (in this directoty) */ + #include "wireless.h" + +-/* Make gcc understant that when we say inline, we mean it. +- * I really hate when the compiler is trying to be more clever than me, +- * because in this case gcc is not able to figure out functions with a +- * single call site, so not only I have to tag those functions inline +- * by hand, but then it refuse to inline them properly. +- * Total saving for iwevent : 150B = 0.7%. +- * Fortunately, in gcc 3.4, they now automatically inline static functions +- * with a single call site. Hurrah ! +- * Jean II */ +-#undef IW_GCC_HAS_BROKEN_INLINE +-#if __GNUC__ == 3 +-#if __GNUC_MINOR__ >= 1 && __GNUC_MINOR__ < 4 +-#define IW_GCC_HAS_BROKEN_INLINE 1 +-#endif /* __GNUC_MINOR__ */ +-#endif /* __GNUC__ */ +-/* However, gcc 4.0 has introduce a new "feature", when compiling with +- * '-Os', it does not want to inline iw_ether_cmp() and friends. +- * So, we need to fix inline again ! +- * Jean II */ +-#if __GNUC__ == 4 +-#define IW_GCC_HAS_BROKEN_INLINE 1 +-#endif /* __GNUC__ */ +-/* Now, really fix the inline */ +-#ifdef IW_GCC_HAS_BROKEN_INLINE +-#ifdef inline +-#undef inline +-#endif /* inline */ +-#define inline inline __attribute__((always_inline)) +-#endif /* IW_GCC_HAS_BROKEN_INLINE */ + + #ifdef __cplusplus + extern "C" { diff --git a/source/base/wireless_tools/FrugalBuild b/source/base/wireless_tools/FrugalBuild index a18f393..f696f72 100644 --- a/source/base/wireless_tools/FrugalBuild +++ b/source/base/wireless_tools/FrugalBuild @@ -4,19 +4,22 @@ pkgname=wireless_tools pkgver=29 -pkgrel=1 +pkgrel=2 pkgdesc="Wireless tools, including iwconfig" url="http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html" depends=('glibc') groups=('base') archs=('i686' 'x86_64' 'ppc') up2date="lynx -dump http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html|grep -om1 'wireless_tools.\(.*\).tar.gz'|sed 's/.*ls.\(.*\).t.*/\1/'" -source=(http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/$pkgname.$pkgver.tar.gz) -sha1sums=('22040ac1497f4c5f8ddeca365591b01ae3475710') +source=(http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/$pkgname.$pkgver.tar.gz \ + Disable_redifineinline.diff) +sha1sums=('22040ac1497f4c5f8ddeca365591b01ae3475710' \ + '7fa36cd48b1c455ea95d28aa4a8ba64b156b133a') build() { Fcd $pkgname.$pkgver + Fpatchall make PREFIX=/usr CFLAGS="$CFLAGS -I." || return 1 make PREFIX=$Fdestdir/usr install } _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git