First, let me say thank you to all who responded this note. Through your
suggestions I was finally able to build gsrc. I really appreciated the help.
Now, as to the list issue, dealing with the Linux version of cp versus
the Mac OS X (BSD 4.3) version of cp, I used Homebrew to install the gcc
version of cp prepended by g so as distinguish between gcc and Mac OS X
commands. Then I proceeded to change the cp command in
gsrc/far/gar.lib.mk to gcp and the final build worked just fine.
Again, I thank you your help. :-)
Sam Dupree
On 9/4/16 02:06:26, carl hansen wrote:
>The question now is how to rewrite this command to conform with Mac OS X?
Better sol'n is install linux version of cp. Then script is correct.
make -C pkg/gnu/coreutils
then you will have chicken/egg problem, installing it. But I'm
you can find a sol'n.
On Sat, Sep 3, 2016 at 1:51 PM, Samuel Dupree <[email protected]
<mailto:[email protected]>> wrote:
I'm almost there. The problem is now with the command
make -C pkg/gnu/hello install
The first thing I did was to find all other instances of the
command sha256sum and replaced them with shasum. This required me
to make changes in gar/gar.lib.mk <http://gar.lib.mk> and
gar/gar.mk <http://gar.mk>. These changes got me going a little
further. The problem now is reflected in the output below:
[build] Complete. Finished rules: configure pre-build
custom-pre-build cookies/hello-2.10/build-work/hello-2.10/Makefile
post-build custom-post-build
[sysinstall] Writing package metadata
test -d /Users/user/gnu/.gar/hello || mkdir -p
/Users/user/gnu/.gar/hello;
(cd /Users/user/gnu/packages/hello-2.10 \
&& find . -not -type d -print > /Users/user/gnu/.gar/hello/FILES \
&& find . -mindepth 2 -depth -type d -print >
/Users/user/gnu/.gar/hello/DIRS ) \
|| (rm -f /Users/user/gnu/packages/hello
cookies/hello-2.10/sysinstall-*; false)
cat Makefile sha256sums | shasum > /Users/user/gnu/.gar/hello/BUILD
[sysinstall] Installing to /Users/user/gnu
(cp -r -v -f --symbolic-link --target-directory=/Users/user/gnu
/Users/user/gnu/packages/hello-2.10/* && ln -n -v -f -s
hello-2.10 /Users/user/gnu/.gar/hello/VERSION ) || (rm -f
/Users/user/gnu/packages/hello cookies/hello-2.10/sysinstall-*;
false)
cp: illegal option -- -
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file
target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ...
target_directory
make: *** [sysinstall-install] Error 1
The offending statement appears to be on command on line 1062 in
gar/gar.lib.mk <http://gar.lib.mk>:
(cp -r -v -f --symbolic-link --target-directory=$(prefix)
$(packagedir)/* $(OUTPUT) && ln -n -v -f -s $(PACKAGENAME)
$(dotgardir)/VERSION $(OUTPUT)) || $(SYSINSTALL_FAIL) $(OUTPUT)
In reviewing the Stack Overflow page
http://stackoverflow.com/questions/34547054/terminal-error-cp-illegal-option
<http://stackoverflow.com/questions/34547054/terminal-error-cp-illegal-option>,
it seems to me that copy command used here is that for Linux as
opposed to Mac OS X.
The question now is how to rewrite this command to conform with
Mac OS X?
Sam Dupree.
On 9/3/16 06:47:30, Brandon Invergo wrote:
On Sat, 2016-09-03 at 00:51 -0400, Samuel Dupree wrote:
/bin/sh: sha256sum: command not found
[checksum] hello-2.10.tar.gz failed checksum test!
make: *** [checksum-hello-2.10.tar.gz] Error 1
The problem appears to be with the command sha256sum. Mac OS X uses
shasum and not sha256sum. I haven't found where the sha256sum appears in
the makefiles that generated.
Any thoughts?
In the file "gar/config.mk <http://config.mk>", add the following line:
CHECKSUM_CMD = shasum
That should do the trick. If not, let us know.
-brandon
--
------------------------------------------------------------------------
<http://IYA-2009.jpg>
<http://mmb_emblem-2.gif> Samuel H. Dupree,
[email protected] <mailto:[email protected]>
10501 Rising Ridge Road
Apartment 201 http://users.speakeasy.net/~sdupree/
<http://www.speakeasy.org/%7esdupree/>
Fredericksburg, VA 22407, USA
HOME: 540-693-1240 <tel:540-693-1240> WORK:
540-653-6509 <tel:540-653-6509> FAX: 866-514-9629
<tel:866-514-9629>
/ "The Greatest Show on Earth" is not on Earth. It's in
Space!/
------------------------------------------------------------------------
--
mail-signature
------------------------------------------------------------------------
<IYA-2009.jpg>
<mmb_emblem-2.gif> Samuel H. Dupree, [email protected]
10501 Rising Ridge Road
Apartment 201 http://users.speakeasy.net/~sdupree/
Fredericksburg, VA 22407, USA
HOME: 540-693-1240 WORK: 540-653-6509 FAX: 866-514-9629
/ "The Greatest Show on Earth" is not on Earth. It's in Space!/
------------------------------------------------------------------------