Bug 30050 - [PATCH] Allow gjdoc to build without GNU cp (but with rsync)
Summary: [PATCH] Allow gjdoc to build without GNU cp (but with rsync)
Status: UNCONFIRMED
Alias: None
Product: classpath
Classification: Unclassified
Component: gjdoc (show other bugs)
Version: unspecified
: P3 normal
Target Milestone: ---
Assignee: Julian Scheid
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-02 17:11 UTC by Diego Elio Pettenò
Modified: 2006-12-02 17:12 UTC (History)
1 user (show)

See Also:
Host: i686-gentoo-freebsd6.2
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
gjdoc-0.7.7-gcp.patch (847 bytes, patch)
2006-12-02 17:12 UTC, Diego Elio Pettenò
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò 2006-12-02 17:11:26 UTC
Trying to build gjdoc on Gentoo/FreeBSD, I found it fail because the makefile uses the "cp -u" command, that is not present in *BSD cp command. FreeBSD ports have a patch to change cp to gcp and then depend on GNU coreutils, but as that solution is suboptimal for us, I've prepared the attached patch.

The configure checks if cp -u is supported; if it is not (on *BSD), it checks for the presence of rsync command (that also supports -u switch) and use that. It could probably be improved to check the presence of gcp or other commands that support a similar option; I've chosen rsync just because it's a system package in Gentoo and is thus always present on the system.

HTH,
Diego
Comment 1 Diego Elio Pettenò 2006-12-02 17:12:16 UTC
Created attachment 12728 [details]
gjdoc-0.7.7-gcp.patch