1) i have the wrong text in the ant-code at line 201:
else
# not using rpm_mode; use launcher to determine classpaths
if [ -z "$LOCALCLASSPATH" ] ; then
>>>> LOCALCLASSPATH=$ANT_LIB/ant-launcher.ja
else
LOCALCLASSPATH=$ANT_LIB/ant-launcher.jar:$LOCALCLASSPATH
fi
fi2) /apache-ant-1.6.2/bin/ant from the apache-ant-162.tar.bz2 in src.rpm contains the "r" in line 201.
3) i'm working on debian linux 3.0
4) the build-process is just: openpkg rpm -Uvh ~/ant-1.6.2-20040716.src.rpm openpkg rpm -bb ant/ant.spec openpkg rpm -Uvh ../PKG/ant-1.6.2-20040716.ix86-debian3.0-oop.rpm
5) output of rpm -bb contains a tar-message that could maybe point to the error? maybe the tar file is not compatible with openpkg-tar?
/opt/opkg/lib/openpkg/tar: A lone zero block at 64131
when i untar the file with debian's tar, i don't get the mesage. here the complete output:
$openpkg rpm -bb ant/ant.spec
Executing(%prep): env -i /opt/opkg/lib/openpkg/bash --norc --noprofile --posix -e /opt/opkg/RPM/TMP/rpm-tmp.48790
+ cd /opt/opkg/RPM/TMP
+ set +x
+----------------------------------Warning------------------------------------+
| This OpenPKG package is of class EVAL. |
| It is in evaluation state and still not ready for release. |
| Hence, do not use it in production environments. |
| It might be unstable or incompletely packaged. |
| Only CORE and BASE class packages are production grade. |
+-----------------------------------------------------------------------------+
+ cd /opt/opkg/RPM/TMP
+ rm -rf apache-ant-1.6.2
+ /opt/opkg/lib/openpkg/bzip2 -dc /opt/opkg/RPM/SRC/ant/apache-ant-1.6.2-bin.tar.bz2
+ /opt/opkg/lib/openpkg/tar -xf -
/opt/opkg/lib/openpkg/tar: A lone zero block at 64131
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd apache-ant-1.6.2
+ exit 0
Executing(%build): env -i /opt/opkg/lib/openpkg/bash --norc --noprofile --posix -e /opt/opkg/RPM/TMP/rpm-tmp.28231
+ cd /opt/opkg/RPM/TMP
+ cd apache-ant-1.6.2
+ exit 0
Executing(%install): env -i /opt/opkg/lib/openpkg/bash --norc --noprofile --posix -e /opt/opkg/RPM/TMP/rpm-tmp.28231
+ cd /opt/opkg/RPM/TMP
+ cd apache-ant-1.6.2
+ rm -rf /opt/opkg/RPM/TMP/ant-1.6.2-root
+ /opt/opkg/lib/openpkg/shtool mkdir -f -p -m 755 /opt/opkg/RPM/TMP/ant-1.6.2-root/opt/opkg/bin /opt/opkg/RPM/TMP/ant-1.6.2-root/opt/opkg/etc/ant /opt/opkg/RPM/TMP/ant-1.6.2-root/opt/opkg/etc/rc.d /opt/opkg/RPM/TMP/ant-1.6.2-root/opt/opkg/libexec/ant
+ /opt/opkg/lib/openpkg/shtool install -c -m 755 -e 's;/etc/ant.conf;/opt/opkg/etc/ant/ant.conf;' -e 's;^\(ANT_LIB="\)[^"]*\("\);\1/opt/opkg/libexec/ant\2;' -e 's;\r$;;' bin/ant /opt/opkg/RPM/TMP/ant-1.6.2-root/opt/opkg/bin/
+ /opt/opkg/lib/openpkg/shtool install -c -m 644 lib/ant-antlr.jar lib/ant-apache-bcel.jar lib/ant-apache-bsf.jar lib/ant-apache-log4j.jar lib/ant-apache-oro.jar lib/ant-apache-regexp.jar lib/ant-apache-resolver.jar lib/ant-commons-logging.jar lib/ant-commons-net.jar lib/ant-icontract.jar lib/ant-jai.jar lib/ant-javamail.jar lib/ant-jdepend.jar lib/ant-jmf.jar lib/ant-jsch.jar lib/ant-junit.jar lib/ant-launcher.jar lib/ant-netrexx.jar lib/ant-nodeps.jar lib/ant-starteam.jar lib/ant-stylebook.jar lib/ant-swing.jar lib/ant-trax.jar lib/ant-vaj.jar lib/ant-weblogic.jar lib/ant-xalan1.jar lib/ant-xslp.jar lib/ant.jar lib/xercesImpl.jar lib/xml-apis.jar /opt/opkg/RPM/TMP/ant-1.6.2-root/opt/opkg/libexec/ant/
+ /opt/opkg/lib/openpkg/shtool install -c -m 644 -e 's;@l_susr@;root;g' -e 's;@l_sgrp@;root;g' -e 's;@l_suid@;0;g' -e 's;@l_sgid@;0;g' -e 's;@l_musr@;opkg;g' -e 's;@l_mgrp@;opkg;g' -e 's;@l_muid@;1000;g' -e 's;@l_mgid@;1000;g' -e 's;@l_rusr@;opkg-r;g' -e 's;@l_rgrp@;opkg-r;g' -e 's;@l_ruid@;1001;g' -e 's;@l_rgid@;1001;g' -e 's;@l_nusr@;opkg-n;g' -e 's;@l_ngrp@;opkg-n;g' -e 's;@l_nuid@;1002;g' -e 's;@l_ngid@;1002;g' -e 's;@l_prefix@;/opt/opkg;g' -e 's;@l_prefix_static@;/opt/opkg;g' /opt/opkg/RPM/SRC/ant/ant.conf /opt/opkg/RPM/TMP/ant-1.6.2-root/opt/opkg/etc/ant/
+ /opt/opkg/lib/openpkg/shtool install -c -m 755 -e 's;@l_susr@;root;g' -e 's;@l_sgrp@;root;g' -e 's;@l_suid@;0;g' -e 's;@l_sgid@;0;g' -e 's;@l_musr@;opkg;g' -e 's;@l_mgrp@;opkg;g' -e 's;@l_muid@;1000;g' -e 's;@l_mgid@;1000;g' -e 's;@l_rusr@;opkg-r;g' -e 's;@l_rgrp@;opkg-r;g' -e 's;@l_ruid@;1001;g' -e 's;@l_rgid@;1001;g' -e 's;@l_nusr@;opkg-n;g' -e 's;@l_ngrp@;opkg-n;g' -e 's;@l_nuid@;1002;g' -e 's;@l_ngid@;1002;g' -e 's;@l_prefix@;/opt/opkg;g' -e 's;@l_prefix_static@;/opt/opkg;g' /opt/opkg/RPM/SRC/ant/rc.ant /opt/opkg/RPM/TMP/ant-1.6.2-root/opt/opkg/etc/rc.d/
+ /opt/opkg/lib/openpkg/rpmtool files -v -ofiles -r/opt/opkg/RPM/TMP/ant-1.6.2-root '%defattr(-,opkg,opkg)' /opt/opkg '%not %dir {/opt/opkg,/opt/opkg/*,/opt/opkg/etc/rc.d,/opt/opkg/man/*}'
rpmtool:files: pass 1 (preparation and syntactical expansions)
rpmtool:files: pass 2 (filesystem-based expansions)
rpmtool:files: pass 3 (duplication removal and cleanup)
+ exit 0
Processing files: ant-1.6.2-20040716
Wrote: /opt/opkg/RPM/PKG/ant-1.6.2-20040716.ix86-debian3.0-oop.rpm
Executing(%clean): env -i /opt/opkg/lib/openpkg/bash --norc --noprofile --posix -e /opt/opkg/RPM/TMP/rpm-tmp.98751
+ cd /opt/opkg/RPM/TMP
+ cd apache-ant-1.6.2
+ rm -rf /opt/opkg/RPM/TMP/ant-1.6.2-root
+ exit 0
Michael Schloh wrote:
On Tue, Oct 26, 2004, Michael Schloh wrote:
On Tue, Oct 26, 2004, Andreas SCHMIDT wrote:
Ralf S. ENGELSCHALL wrote:
On Mon, Oct 25, 2004, Andreas SCHMIDT wrote:
ant --execdebug -projecthelp i saw, that ant calls
exec "/opt/opkg/libexec/j2se14/bin/java" -classpath "/opt/opkg/libexec/ant/ant-launcher.ja" -Dant.home="/opt/opkg" ...
as you can see, there is a missing "r" in ant-launcher.jar!
making a symlink in libexec/ant/ is a workaround.
since i don't expect to be the only one using ant, i ask me, if i did something wrong during installation of ant?
Hmmm... I've checked the packaging of "ant" and I cannot why the "r" is missing here. Even in line 201 of <prefix>/bin/ant the ant-launcher.jar is correctly specified. Hmmm... sorry, I've no clue...
did you install ant, and it worked for you, or did you just check the package?
i've once again downloaded the package and rebuilt everything, but i still miss the "r"
I just built and installed the ant package on FreeBSD 4.10. In /prefix/bin/ant there is no text 'ant-launcher.jar' or any other jar filename with a missing 'r' at the end. This doesn't disqualify your concern, however. What is your operating system, how are you building the package, and show a complete typescript of the RPM build process please.
Also, please check your installed /opt/opkg/bin/ant script to search for the filename with the missing 'r'. Where is it?
Regards, Michael
--
______________________________________________________________
Team-Konzept Andreas Schmidt Gneisenaustra�e 44/45 10961 Berlin, Germany T: +49 30 69 04 71-23 F: +49 30 69 04 71-99 [EMAIL PROTECTED] PGP Key: http://www.team-konzept.de/pgp/andreas_schmidt.asc http://www.team-konzept.de
Team-Konzept Informationstechnologien GmbH & Co. KG Amtsgericht Berlin Charlottenburg HRA 27562 Gesch�ftsf�hrende Komplement�rin: Team-Konzept Informationstechnologien Beteiligungs-GmbH Amtsgericht Berlin Charlottenburg HRB 59609 Gesch�ftsf�hrer: Udo Blenk, Andreas Schmidt ______________________________________________________________ ______________________________________________________________________ The OpenPKG Project www.openpkg.org User Communication List [EMAIL PROTECTED]
