git-annex/Build
Joey Hess 14f7a386f0
Make git-annex enable-tor work when using the linux standalone build
Clean the standalone environment before running the su command
to run "sh". Otherwise, PATH leaked through, causing it to run
git-annex.linux/bin/sh, but GIT_ANNEX_DIR was not set,
which caused that script to not work:

[2022-10-26 15:07:02.145466106] (Utility.Process) process [938146] call: pkexec ["sh","-c","cd '/home/joey/tmp/git-annex.linux/r' && '/home/joey/tmp/git-annex.linux/git-annex' 'enable-tor' '1000'"]
/home/joey/tmp/git-annex.linux/bin/sh: 4: exec: /exe/sh: not found

Changed programPath to not use GIT_ANNEX_PROGRAMPATH,
but instead run the scripts at the top of GIT_ANNEX_DIR.
That works both when the standalone environment is set up, and when it's
not.

Sponsored-by: Kevin Mueller on Patreon
2022-10-26 15:45:08 -04:00
..
BuildVersion.hs type signature 2018-08-04 14:21:30 -04:00
BundledPrograms.hs include libmagic in windows installer 2020-10-26 13:24:37 -04:00
collect-ghc-options.sh
Configure.hs test borg special remote 2021-09-03 13:18:07 -04:00
DesktopFile.hs got configure working after Utility.Path ByteString conversion 2020-10-28 15:01:19 -04:00
DistributionUpdate.hs avoid flushing keys db queue after each Annex action 2022-10-12 14:12:23 -04:00
InstallDesktopFile.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
LinuxMkLibs.hs Make git-annex enable-tor work when using the linux standalone build 2022-10-26 15:45:08 -04:00
MakeMans.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Mans.hs deal with cabal unpack not preserving execute bit 2021-02-08 14:32:24 -04:00
mdwn2man Don't escape leading dots in code blocks in manpage 2016-08-16 11:51:16 -04:00
NullSoftInstaller.hs Windows: Correct the path to the html help file for 64 bit build. 2021-02-24 13:19:42 -04:00
OSXMkLibs.hs assume @RPATH libs are present 2022-01-03 15:05:15 -04:00
Standalone.hs update after RawFilePath transition 2020-11-09 12:12:25 -04:00
TestConfig.hs add searchPathContents 2021-02-02 19:06:15 -04:00
Version.hs avoid strictness problem 2019-01-22 19:37:49 -04:00