pkgsrc/lang/gcc45/patches/patch-ag
wiz 03cedf79c2 Initial import of gcc45-4.5.2 from pkgsrc-wip.
Packaged by Marko Schütz, improved by Kai-Uwe Eckhardt.

This is the gcc 4.5 compiler suite.

This package has a test target. For testing (only), this
package requires devel/dejagnu and devel/autogen.
2011-05-14 20:19:46 +00:00

29 lines
978 B
Text

$NetBSD: patch-ag,v 1.1.1.1 2011/05/14 20:19:47 wiz Exp $
No need to use bash for this small script.
Also -print0 is not portable to solaris and perhaps others.
--- libjava/contrib/rebuild-gcj-db.in.orig 2008-07-02 09:17:54.000000000 -0400
+++ libjava/contrib/rebuild-gcj-db.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# rebuild-gcj-db
## Copyright (C) 2000, 2002, 2003, 2008 Free Software Foundation
@@ -16,12 +16,12 @@ for i in `@prefix@/bin/gcc --print-multi
base=@prefix@/lib/$dirname
dbLocation=`@prefix@/bin/gcj-dbtool -p $base`
libdir=$base/gcj
- if ! test -d $libdir; then
+ if test ! -d $libdir; then
# No shared libraries here.
continue
fi
dirname $dbLocation | xargs mkdir -p
@prefix@/bin/gcj-dbtool -n $dbLocation 64
- find $libdir -follow -name '*.db' -print0 | \
+ find $libdir -follow -name '*.db' -print | @AWK@ '{printf("%s%c", $1, 0);}' | \
@prefix@/bin/gcj-dbtool -0 -m $dbLocation $dbLocation
done