pmbootstrap/pmb/helpers
Oliver Smith 21b86f7f64
pmb.helpers.run: only pass stdin where useful (MR 2197)
Don't pass stdin to commands that aren't supposed to be used
interactively (output: log, background, pipe).

This fixes an inconsistency between building packages in CI on gitlab
and building them via bpo on sourcehut or locally. In gitlab, apparently
there is no stdin for the entire build job and so unanswered kernel
config prompts will just use the default. In local builds and on
sourcehut stdin is available and so it just hangs at the prompt until
pmbootstrap kills the build job due to no output being written.

I considered adding an additional check to pmaports to ensure that there
are no unanswered kernel config prompts just in case users run abuild
manually on the kernel APKBUILD with stdin available. But I think
forcing the users to answer all the prompts even if it's not really
needed just creates additional work / makes the workflow worse without
real benefit.

Related: https://builds.sr.ht/~postmarketos/job/824373#task-pmbootstrap_build-432
Fixes: pmaports issue 1225
2022-08-19 10:40:25 +02:00
..
__init__.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
apk.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
aportupgrade.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
args.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
cli.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
devices.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
file.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
frontend.py pmb.parse.kconfig: implement UEFI kconfig check (MR 2169) 2022-03-16 09:25:00 +01:00
git.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
http.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
lint.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
logging.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
mount.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
other.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
package.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
pkgrel_bump.py treewide: fix various lint errors (MR 2197) 2022-08-19 10:40:25 +02:00
pmaports.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
repo.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
repo_missing.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
run.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
run_core.py pmb.helpers.run: only pass stdin where useful (MR 2197) 2022-08-19 10:40:25 +02:00
status.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
ui.py Happy new year 2022! 2022-01-02 22:39:14 +01:00