diff options
author | maho <maho@FreeBSD.org> | 2006-07-21 21:05:41 +0000 |
---|---|---|
committer | maho <maho@FreeBSD.org> | 2006-07-21 21:05:41 +0000 |
commit | 6c0e6fa4355530a3c163d2d604339c7fb29b71ea (patch) | |
tree | 3b138cc1ce07765366770ff03aa78cdb079e1203 | |
parent | dfb7c98cc76206a3805e0c3e7646d8bfcd7e12cf (diff) | |
download | FreeBSD-ports-6c0e6fa4355530a3c163d2d604339c7fb29b71ea.zip FreeBSD-ports-6c0e6fa4355530a3c163d2d604339c7fb29b71ea.tar.gz |
Dirty workaround for libtool
Hint by: Bartosz Fabianowski <freebsd@chillt.de>
-rw-r--r-- | lang/gcc41-withgcjawt/Makefile | 8 | ||||
-rw-r--r-- | lang/gcc41-withgcjawt/files/patch-configure | 65 | ||||
-rw-r--r-- | lang/gcc42-withgcjawt/Makefile | 8 | ||||
-rw-r--r-- | lang/gcc42-withgcjawt/files/patch-configure | 65 |
4 files changed, 146 insertions, 0 deletions
diff --git a/lang/gcc41-withgcjawt/Makefile b/lang/gcc41-withgcjawt/Makefile index 35d8822..b158c61 100644 --- a/lang/gcc41-withgcjawt/Makefile +++ b/lang/gcc41-withgcjawt/Makefile @@ -16,4 +16,12 @@ DESCR= ${.CURDIR}/pkg-descr WITH_JAVA_AWT= yes +#weird libtool issue http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28442 +EXTRA_PATCHES+= ${.CURDIR}/files/patch-configure +USE_AUTOTOOLS= libtool:15 + +pre-build: + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${SRCDIR}/libjava/configure + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${SRCDIR}/libjava/classpath/configure + .include "${MASTERDIR}/Makefile" diff --git a/lang/gcc41-withgcjawt/files/patch-configure b/lang/gcc41-withgcjawt/files/patch-configure new file mode 100644 index 0000000..74b10d9 --- /dev/null +++ b/lang/gcc41-withgcjawt/files/patch-configure @@ -0,0 +1,65 @@ +Real tweaks for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28442 +never be upstreamed. correct solution might be upgrading libtool(?) + +--- libjava/configure.orig Sat Jul 15 07:34:33 2006 ++++ libjava/configure Fri Jul 21 16:37:48 2006 +@@ -5867,6 +5867,7 @@ + + # This can be used to rebuild libtool when needed + LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" ++cp %%LOCALBASE%%/bin/libtool . + + # Always use our own libtool. + LIBTOOL='$(SHELL) $(top_builddir)/libtool' +--- libjava/classpath/configure~ Wed Jun 14 22:46:33 2006 ++++ libjava/classpath/configure Fri Jul 21 16:38:43 2006 +@@ -5449,6 +5449,7 @@ + + # This can be used to rebuild libtool when needed + LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" ++cp %%LOCALBASE%%/bin/libtool . + + # Always use our own libtool. + LIBTOOL='$(SHELL) $(top_builddir)/libtool' + +--- ltconfig~ Wed Jul 5 05:30:34 2006 ++++ ltconfig Fri Jul 21 19:59:52 2006 +@@ -2236,7 +2236,7 @@ + EOF + else + echo "appending configuration tag \"$tagname\" to $ofile" +- echo "### BEGIN LIBTOOL TAG CONFIG: $tagname" >> "$ofile" ++ echo "# ### BEGIN LIBTOOL TAG CONFIG: $tagname" >> "$ofile" + fi + cfgfile="$ofile" + ;; +@@ -2266,7 +2266,7 @@ + EOF + else + echo "appending to $cfgfile" +- echo "### BEGIN LIBTOOL TAG CONFIG: $tagname" >> "$ofile" ++ echo "# ### BEGIN LIBTOOL TAG CONFIG: $tagname" >> "$ofile" + fi + ;; + esac +--- libjava/classpath/ltconfig~ Wed Jul 5 05:30:34 2006 ++++ libjava/classpath/ltconfig Fri Jul 21 20:00:44 2006 +@@ -2236,7 +2236,7 @@ + EOF + else + echo "appending configuration tag \"$tagname\" to $ofile" +- echo "### BEGIN LIBTOOL TAG CONFIG: $tagname" >> "$ofile" ++ echo "# ### BEGIN LIBTOOL TAG CONFIG: $tagname" >> "$ofile" + fi + cfgfile="$ofile" + ;; +@@ -2266,7 +2266,7 @@ + EOF + else + echo "appending to $cfgfile" +- echo "### BEGIN LIBTOOL TAG CONFIG: $tagname" >> "$ofile" ++ echo "# ### BEGIN LIBTOOL TAG CONFIG: $tagname" >> "$ofile" + fi + ;; + esac + diff --git a/lang/gcc42-withgcjawt/Makefile b/lang/gcc42-withgcjawt/Makefile index 35d8822..b158c61 100644 --- a/lang/gcc42-withgcjawt/Makefile +++ b/lang/gcc42-withgcjawt/Makefile @@ -16,4 +16,12 @@ DESCR= ${.CURDIR}/pkg-descr WITH_JAVA_AWT= yes +#weird libtool issue http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28442 +EXTRA_PATCHES+= ${.CURDIR}/files/patch-configure +USE_AUTOTOOLS= libtool:15 + +pre-build: + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${SRCDIR}/libjava/configure + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${SRCDIR}/libjava/classpath/configure + .include "${MASTERDIR}/Makefile" diff --git a/lang/gcc42-withgcjawt/files/patch-configure b/lang/gcc42-withgcjawt/files/patch-configure new file mode 100644 index 0000000..74b10d9 --- /dev/null +++ b/lang/gcc42-withgcjawt/files/patch-configure @@ -0,0 +1,65 @@ +Real tweaks for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28442 +never be upstreamed. correct solution might be upgrading libtool(?) + +--- libjava/configure.orig Sat Jul 15 07:34:33 2006 ++++ libjava/configure Fri Jul 21 16:37:48 2006 +@@ -5867,6 +5867,7 @@ + + # This can be used to rebuild libtool when needed + LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" ++cp %%LOCALBASE%%/bin/libtool . + + # Always use our own libtool. + LIBTOOL='$(SHELL) $(top_builddir)/libtool' +--- libjava/classpath/configure~ Wed Jun 14 22:46:33 2006 ++++ libjava/classpath/configure Fri Jul 21 16:38:43 2006 +@@ -5449,6 +5449,7 @@ + + # This can be used to rebuild libtool when needed + LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" ++cp %%LOCALBASE%%/bin/libtool . + + # Always use our own libtool. + LIBTOOL='$(SHELL) $(top_builddir)/libtool' + +--- ltconfig~ Wed Jul 5 05:30:34 2006 ++++ ltconfig Fri Jul 21 19:59:52 2006 +@@ -2236,7 +2236,7 @@ + EOF + else + echo "appending configuration tag \"$tagname\" to $ofile" +- echo "### BEGIN LIBTOOL TAG CONFIG: $tagname" >> "$ofile" ++ echo "# ### BEGIN LIBTOOL TAG CONFIG: $tagname" >> "$ofile" + fi + cfgfile="$ofile" + ;; +@@ -2266,7 +2266,7 @@ + EOF + else + echo "appending to $cfgfile" +- echo "### BEGIN LIBTOOL TAG CONFIG: $tagname" >> "$ofile" ++ echo "# ### BEGIN LIBTOOL TAG CONFIG: $tagname" >> "$ofile" + fi + ;; + esac +--- libjava/classpath/ltconfig~ Wed Jul 5 05:30:34 2006 ++++ libjava/classpath/ltconfig Fri Jul 21 20:00:44 2006 +@@ -2236,7 +2236,7 @@ + EOF + else + echo "appending configuration tag \"$tagname\" to $ofile" +- echo "### BEGIN LIBTOOL TAG CONFIG: $tagname" >> "$ofile" ++ echo "# ### BEGIN LIBTOOL TAG CONFIG: $tagname" >> "$ofile" + fi + cfgfile="$ofile" + ;; +@@ -2266,7 +2266,7 @@ + EOF + else + echo "appending to $cfgfile" +- echo "### BEGIN LIBTOOL TAG CONFIG: $tagname" >> "$ofile" ++ echo "# ### BEGIN LIBTOOL TAG CONFIG: $tagname" >> "$ofile" + fi + ;; + esac + |