|
From: | Samuel Dupree |
Subject: | Re: [bug-gsrc] Attempting to build/install gsrc undert Mac OS X El Capitan (10.11.6) |
Date: | Sat, 3 Sep 2016 16:51:42 -0400 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
I'm almost there. The problem is now with the command make -C pkg/gnu/hello installThe 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 and gar/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: (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, 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", add the following line: CHECKSUM_CMD = shasum That should do the trick. If not, let us know. -brandon --
|
[Prev in Thread] | Current Thread | [Next in Thread] |