MyHush / hush3

Hush: Speak And Transact Freely
https://myhush.org
Other
15 stars 13 forks source link

Update funcs.mk #118

Closed crackfoo closed 3 years ago

crackfoo commented 4 years ago

fix tar permissions/ownership on linux for depends

Cheers http://zpool.ca

leto commented 4 years ago

@crackfoo what error condition does this fix? Thanks for your PR

crackfoo commented 3 years ago

Without the change, the build will eventually fail with:


mkdir -p /usr/local/src/coins/equihash/hush-test/depends/work/build/x86_64-unknown-linux-gnu/crate_fuchsia_zircon/0.3.3-a79d1b83dcb
cd /usr/local/src/coins/equihash/hush-test/depends/work/build/x86_64-unknown-linux-gnu/crate_fuchsia_zircon/0.3.3-a79d1b83dcb; mkdir -p /usr/local/src/coins/equihash/hush-test/depends/work/build/x86_64-unknown-linux-gnu/crate_fuchsia_zircon/0.3.3-a79d1b83dcb && echo "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82  /usr/local/src/coins/equihash/hush-test/depends/sources/fuchsia-zircon-0.3.3.crate" > /usr/local/src/coins/equihash/hush-test/depends/work/build/x86_64-unknown-linux-gnu/crate_fuchsia_zircon/0.3.3-a79d1b83dcb/.fuchsia-zircon-0.3.3.crate.hash &&  sha256sum -c /usr/local/src/coins/equihash/hush-test/depends/work/build/x86_64-unknown-linux-gnu/crate_fuchsia_zircon/0.3.3-a79d1b83dcb/.fuchsia-zircon-0.3.3.crate.hash && tar --strip-components=1 -xf /usr/local/src/coins/equihash/hush-test/depends/sources/fuchsia-zircon-0.3.3.crate
/usr/local/src/coins/equihash/hush-test/depends/sources/fuchsia-zircon-0.3.3.crate: OK
tar: BUILD.gn: Cannot change ownership to uid 460880, gid 5000: Invalid argument
tar: Cargo.toml.orig: Cannot change ownership to uid 460880, gid 5000: Invalid argument
tar: LICENSE: Cannot change ownership to uid 460880, gid 5000: Invalid argument
tar: README.md: Cannot change ownership to uid 460880, gid 5000: Invalid argument
tar: examples/BUILD.gn: Cannot change ownership to uid 460880, gid 5000: Invalid argument
tar: src/channel.rs: Cannot change ownership to uid 460880, gid 5000: Invalid argument
tar: src/cprng.rs: Cannot change ownership to uid 460880, gid 5000: Invalid argument
tar: src/event.rs: Cannot change ownership to uid 460880, gid 5000: Invalid argument
tar: src/eventpair.rs: Cannot change ownership to uid 460880, gid 5000: Invalid argument
tar: src/fifo.rs: Cannot change ownership to uid 460880, gid 5000: Invalid argument
tar: src/handle.rs: Cannot change ownership to uid 460880, gid 5000: Invalid argument
tar: src/job.rs: Cannot change ownership to uid 460880, gid 5000: Invalid argument
tar: src/lib.rs: Cannot change ownership to uid 460880, gid 5000: Invalid argument
tar: src/port.rs: Cannot change ownership to uid 460880, gid 5000: Invalid argument
tar: src/process.rs: Cannot change ownership to uid 460880, gid 5000: Invalid argument
tar: src/rights.rs: Cannot change ownership to uid 460880, gid 5000: Invalid argument
tar: src/signals.rs: Cannot change ownership to uid 460880, gid 5000: Invalid argument
tar: src/socket.rs: Cannot change ownership to uid 460880, gid 5000: Invalid argument
tar: src/status.rs: Cannot change ownership to uid 460880, gid 5000: Invalid argument
tar: src/thread.rs: Cannot change ownership to uid 460880, gid 5000: Invalid argument
tar: src/time.rs: Cannot change ownership to uid 460880, gid 5000: Invalid argument
tar: src/vmar.rs: Cannot change ownership to uid 460880, gid 5000: Invalid argument
tar: src/vmo.rs: Cannot change ownership to uid 460880, gid 5000: Invalid argument
tar: tools/gen_status.py: Cannot change ownership to uid 460880, gid 5000: Invalid argument
tar: Exiting with failure status due to previous errors
funcs.mk:257: recipe for target '/usr/local/src/coins/equihash/hush-test/depends/work/build/x86_64-unknown-linux-gnu/crate_fuchsia_zircon/0.3.3-a79d1b83dcb/.stamp_extracted' failed
make: *** [/usr/local/src/coins/equihash/hush-test/depends/work/build/x86_64-unknown-linux-gnu/crate_fuchsia_zircon/0.3.3-a79d1b83dcb/.stamp_extracted] Error 2
make: Leaving directory '/usr/local/src/coins/equihash/hush-test/depends'```
leto commented 3 years ago

@crackfoo thanks, this will be part of the next 3.5.0 mandatory release and is now on the dev branch