Package: debspawn
Version: 0.5.0-1
Severity: normal
X-Debbugs-Cc: r...@debian.org

As per the manual page, settings defined in /etc/debspawn/global.json
should override the defaults.

On my machine, I have the following in `/etc/debspawn/global.json`: 

{
        "APTCacheDir": "/var/tmp/Debian-Build/temp/",
        "TempDir": "/var/tmp/Debian-Build/Build/",
        "ResultsDir": "/var/tmp/Debian-Build/Result/",
        "InjectedPkgsDir": "/var/tmp/Debian-Build/pbuilder-deps/"
}

But the same is not honored by debspawn. It does not pick the local debs
from the specified InjectedPkgsDir path. OTOH, if I go with the
defaults, i.e. `/var/lib/debspawn/injected-pkgs/`, it works.


IN fact, while looking at the setup on my host machine, it looks like
the settings aren't honored at all. To workaround it, I have been adding
symlinks instead:

```
rrs@priyasi:.../debspawn$ file *
aptcache:      symbolic link to /var/tmp/Debian-Build/temp/
images:        directory
injected-pkgs: directory
results:       symbolic link to /var/tmp/Debian-Build/Result/
```

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 
'testing-debug'), (500, 'stable-updates'), (500, 'stable-security'), (500, 
'unstable'), (500, 'stable'), (500, 'oldstable'), (100, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.14.0-4-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_USER
Locale: LANG=en_IN.UTF-8, LC_CTYPE=en_IN.UTF-8 (charmap=UTF-8), LANGUAGE=en_US
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages debspawn depends on:
ii  debootstrap        1.0.125
ii  python3            3.9.7-1
ii  python3-toml       0.10.2-1
ii  systemd-container  249.5-2
ii  zstd               1.4.8+dfsg-3

Versions of packages debspawn recommends:
ii  build-essential  12.9
ii  devscripts       2.21.4

Versions of packages debspawn suggests:
ii  sudo  1.9.5p2-3

-- no debconf information

Reply via email to