139 Commits
Author SHA1 Message Date
Piotr Roszatycki cd15b3f5d2 Work with POSIX shell 2016-11-21 19:38:55 +01:00
Piotr Roszatycki 55567294db fakeroot works if chroot is invoked twice 2016-11-17 10:30:50 +01:00
Piotr Roszatycki 76603f79b3 m{} syntax 2016-11-13 15:31:16 +01:00
Piotr Roszatycki ff2a0a4cdc ldd wrapper: do not fail if the path is not existing outside fakechroot 2016-11-13 15:29:28 +01:00
Piotr Roszatycki 6aeb9123f5 ldd wrapper: set LANG and LC_ALL to C 2016-11-13 15:19:08 +01:00
Piotr Roszatycki a6e8b6c559 chroot wrapper: support additional options 2016-11-13 15:10:42 +01:00
Piotr Roszatycki a2a9afcabd Bump year 2016-11-13 15:08:02 +01:00
Piotr Roszatycki edcf112691 ldd wrapper: correct order of lib paths 2016-11-13 01:22:19 +01:00
Piotr Roszatycki d6d00c4893 ldd wrapper: better output 2016-11-13 01:09:58 +01:00
Piotr Roszatycki 23f1f5270d ldd wrapper: tweaked for 64-bit archs 2016-11-13 00:59:15 +01:00
Piotr Roszatycki d7a5c51741 debootstrap wrapper: wrap /usr/sbin/chroot command 2016-11-11 22:30:07 +01:00
Piotr Roszatycki c9feeb2354 ldd: distinguish different paths with the same beginning 2016-11-11 21:42:22 +01:00
Piotr Roszatycki 73844d6bd5 Set FAKECHROOT_CMD_ORIG also by fakechroot command for wrapped command 2016-11-11 21:27:21 +01:00
Piotr Roszatycki fe7b1e83ac env wrapper works with dash 2016-11-11 18:08:32 +01:00
Jakub Wilk 76c965e265 Fix typos 2016-08-24 19:21:47 +02:00
Piotr Roszatycki 43b96bb8c3 More safe wrappers (bindir can contain space) 2015-10-16 11:05:44 +02:00
Piotr Roszatycki d8595b687b Merge pull request #35 from gagern/relocScripts
Allow configuring the directory for replacement executables
2015-10-16 10:07:50 +02:00
Piotr Roszatycki a5549bc3a5 Bump year 2015-10-15 17:04:27 +02:00
Piotr Roszatycki 7f593d5813 Bugfix for env(1) wrapper for variables with multilined content 2015-10-15 16:49:24 +02:00
Martin von Gagern c8fdf46ff7 Allow configuring the directory for replacement executables
If fakechroot is to be used in a situation where not all the paths are known
it advance, it is usefult if the location of these scripts can be configured.
2015-07-13 00:35:32 +02:00
Juan RP 0290fd97a9 scripts/fakechroot.sh: fix -h and others (die -> fakechroot_die). 2013-12-14 07:00:00 +01:00
Piotr Roszatycki eca8747fd1 Set the LD_LIBRARY_PATH based on host's /etc/ld.so.conf.d/* 2013-11-27 21:52:07 +01:00
Piotr Roszatycki b4afe756cd Take only first command substitution 2013-11-26 23:25:53 +01:00
Piotr Roszatycki d1e3625ec2 Truncate $FAKECHROOT_BASE_ORIG from newroot path 2013-11-26 22:34:11 +01:00
Piotr Roszatycki a6aa0bbdbe More descriptive comments for *.env scripts 2013-11-26 21:46:04 +01:00
Piotr Roszatycki ceb62a26b6 Use detected path in hashbang 2013-11-26 21:32:08 +01:00
Piotr Roszatycki fc553eb04a chroot wrapper enters to physical path, avoiding symlinks 2013-11-26 21:31:40 +01:00
Piotr Roszatycki acb1dbdf4c fakechroot runs proper wrapper (eg. instead original chroot binary) 2013-11-26 21:28:34 +01:00
Piotr Roszatycki 1cddb2e7a8 Detect bash/ksh/sh and perl binaries 2013-11-26 21:25:12 +01:00
Piotr Roszatycki 8170f8cc95 Fixes for chroot wrapper. It scanned /etc/ld.so.conf incorrectly. 2013-11-26 16:05:06 +01:00
Piotr Roszatycki 4a0839be96 Corrected loop for chroot.env 2013-11-24 09:49:55 +01:00
Piotr Roszatycki f9c2391957 Make prefix for all local variables 2013-11-23 13:30:10 +01:00
Piotr Roszatycki e6e3e41059 Make prefix for all local variables 2013-11-21 00:58:52 +01:00
Piotr Roszatycki 9f99bf10fd Allow to unset every variable but LD_PRELOAD and LD_LIBRARY_PATH 2013-11-21 00:37:20 +01:00
Piotr Roszatycki 9add82a625 Call original env command 2013-11-21 00:37:02 +01:00
Piotr Roszatycki 212a206f44 Do command subst for each directory in PATH 2013-11-20 20:35:20 +01:00
Piotr Roszatycki 22435a84b8 Scan /etc/ld.so.conf.d/* by default, if /etc/ld.so.conf is missing 2013-11-18 16:29:01 +01:00
Piotr Roszatycki db960ea7c2 Fixed ldd wrapper for files with relative path 2013-11-07 18:18:45 +01:00
Piotr Roszatycki 02f8d13da8 env wrapper is replaced with complete shell script which doesn't call /usr/bin/env to prevent some looping 2013-11-07 01:32:39 +01:00
Piotr Roszatycki cd26fe6800 Replace @ECHO@ with $ECHO 2013-11-06 23:10:51 +01:00
Piotr Roszatycki e8254a2e2d Autodetect /bin/echo. Search also /usr/local dirs. 2013-11-06 20:48:02 +01:00
Piotr Roszatycki 9e737f38a1 "command -v" rather than "which" 2013-11-06 10:25:36 +00:00
Piotr Roszatycki 04e1d13e3e Quote shell variable 2013-11-06 10:25:19 +00:00
Piotr Roszatycki a73888e8be Autodetect if dynamic linker supports --argv0 option 2013-11-05 20:13:08 +00:00
Piotr Roszatycki 59f65ba88b fakechroot script provides --elfloader option 2013-11-05 19:53:33 +00:00
Piotr Roszatycki 4a4fd1edf0 Fixed env wrapper. Tests in testtree are called with empty environment. 2013-11-04 22:55:42 +00:00
Piotr Roszatycki 596fe85459 Fixed scripts and wrappers. Should not overlap with env wrapper. 2013-11-03 21:54:14 +01:00
Piotr Roszatycki e78d0bcfea The FAKECHROOT_EXCLUDE_PATH environment overrides the default settings 2013-11-03 13:35:34 +01:00
Piotr Roszatycki d5be8e4e05 The new env wrapper was added, which preserves fakechroot environment even for --ignore-environment option 2013-11-03 00:29:48 +01:00
Piotr Roszatycki 67a6c58b67 The special environment B<none> means that no environment settings are loaded at all 2013-11-02 21:50:21 +01:00