Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157389 - dev-java/gjdoc: build assumes cp -u
Summary: dev-java/gjdoc: build assumes cp -u
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo/BSD Team
URL: http://gcc.gnu.org/bugzilla/show_bug....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-06 17:10 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2006-12-08 06:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gjdoc-0.7.7-gcp.patch (gjdoc-0.7.7-gcp.patch,1.85 KB, patch)
2006-12-06 17:12 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff
Ebuild patch (gjdoc-ebuild.patch,1.32 KB, patch)
2006-12-08 06:38 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2006-12-06 17:10:16 UTC
As per summary, vanilla gjdoc fails when cp is not GNU cp as it uses cp -u that's not supported on *BSD cp.

The attached patch (on this and that bug) checks for rsync presence and use that if cp does not support -u.
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-12-06 17:12:02 UTC
Created attachment 103504 [details, diff]
gjdoc-0.7.7-gcp.patch
Comment 2 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-12-07 18:27:48 UTC
Your patch broke it for me on x86 (works without it):

config.status: creating gjdoc.sh
config.status: creating src/resources/version.properties
config.status: creating Makefile
config.status: creating docs/Makefile
config.status: executing depfiles commands
cd . && /bin/sh /var/tmp/portage/dev-java/gjdoc-0.7.7-r1/work/gjdoc-0.7.7/missing --run aclocal-1.9
/usr/share/aclocal/pth.m4:43: warning: underquoted definition of _AC_PTH_ERROR
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
/usr/share/aclocal/pth.m4:55: warning: underquoted definition of _AC_PTH_VERBOSE
/usr/share/aclocal/pth.m4:61: warning: underquoted definition of AC_CHECK_PTH
/usr/share/aclocal/libxosd.m4:9: warning: underquoted definition of AM_PATH_LIBXOSD
/usr/share/aclocal/ao.m4:9: warning: underquoted definition of XIPH_PATH_AO
cd . && /bin/sh /var/tmp/portage/dev-java/gjdoc-0.7.7-r1/work/gjdoc-0.7.7/missing --run autoconf
 cd . && /bin/sh /var/tmp/portage/dev-java/gjdoc-0.7.7-r1/work/gjdoc-0.7.7/missing --run automake-1.9 --gnu
configure.ac:40: error: possibly undefined macro: AC_PROG_JAR
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:41: error: possibly undefined macro: AC_CHECK_CLASSPATH
configure.ac:42: error: possibly undefined macro: AC_PROG_JAVA
configure.ac:43: error: possibly undefined macro: AC_PROG_JAVAC
configure.ac:44: error: possibly undefined macro: AC_PROG_ANTLR
configure.ac:75: error: possibly undefined macro: AC_CHECK_RQRD_CLASS
make: *** [configure] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: dev-java/gjdoc-0.7.7-r1 failed.
Call stack:
  ebuild.sh, line 1570:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  gjdoc-0.7.7-r1.ebuild, line 53:   Called die

!!! emake failed

And I didn't see the cp -u check during configure.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-12-08 06:32:49 UTC
I didn't attach the ebuild patch, it needs eautoreconf with AT_M4DIR, just a second.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-12-08 06:38:18 UTC
Created attachment 103622 [details, diff]
Ebuild patch
Comment 5 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-12-08 06:54:56 UTC
Fixed in CVS, thanks :) Next time please attach the ebuild.patch too, autostuff isn't really my cup of... java :)