summaryrefslogtreecommitdiff
path: root/staging/gcc/gcc-4.7.1-libgo-mksysinfo.patch
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-07-04 15:31:41 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-07-04 15:31:41 -0300
commit4e3e2f9e625584fee1cdb96fcec3a49f0cacdc8b (patch)
tree671e3e120a47e02d837e20d9759de78b9a7b4f07 /staging/gcc/gcc-4.7.1-libgo-mksysinfo.patch
parent1f31420f313381bbb03fdc934348f5606134191c (diff)
parent298f654d4656dcc1e8d78c37dd77ae2ebfc1bf5f (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community/freevo/PKGBUILD core/openldap/PKGBUILD extra/xf86-video-fbdev/PKGBUILD staging/glibc/PKGBUILD staging/glibc/glibc-2.15-revert-c5a0802a.patch
Diffstat (limited to 'staging/gcc/gcc-4.7.1-libgo-mksysinfo.patch')
-rw-r--r--staging/gcc/gcc-4.7.1-libgo-mksysinfo.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/staging/gcc/gcc-4.7.1-libgo-mksysinfo.patch b/staging/gcc/gcc-4.7.1-libgo-mksysinfo.patch
new file mode 100644
index 000000000..427efe8a6
--- /dev/null
+++ b/staging/gcc/gcc-4.7.1-libgo-mksysinfo.patch
@@ -0,0 +1,15 @@
+--- libgo/mksysinfo.sh 2012-06-29 14:23:30.684708901 +0200
++++ libgo/mksysinfo.sh 2012-06-29 14:23:20.782761973 +0200
+@@ -522,10 +522,10 @@ grep '^const _DT_' gen-sysinfo.go |
+ # The rusage struct.
+ rusage=`grep '^type _rusage struct' gen-sysinfo.go`
+ if test "$rusage" != ""; then
+- rusage=`echo $rusage | sed -e 's/type _rusage struct //' -e 's/[{}]//g'`
+- rusage=`echo $rusage | sed -e 's/^ *//'`
+ # Remove anonymous unions from GNU/Linux <bits/resource.h>.
+ rusage=`echo $rusage | sed -e 's/Godump_[0-9]* struct {\([^}]*\)};/\1/g'`
++ rusage=`echo $rusage | sed -e 's/type _rusage struct //' -e 's/[{}]//g'`
++ rusage=`echo $rusage | sed -e 's/^ *//'`
+ nrusage=
+ while test -n "$rusage"; do
+ field=`echo $rusage | sed -e 's/^\([^;]*\);.*$/\1/'`