pmbootstrap/pmb
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
..
aportgen pmb.aportgen.linux: Install DTBs on header v2 (MR 2194) 2022-07-18 14:49:38 -07:00
build pmb.parse.kconfig: implement UEFI kconfig check (MR 2169) 2022-03-16 09:25:00 +01:00
chroot pmb.chroot.apk.install: move pkgname sanitization (MR 2185) 2022-05-30 19:09:01 +02:00
config Prepare 1.46.0 release 2022-08-15 19:32:12 +02:00
data pmb: data: keys: sync with Alpine (MR 2131) 2021-10-19 01:44:35 +02:00
export pmb/export: Fix Odin export filenames (MR 2191) 2022-06-23 17:45:47 +02:00
flasher pmb: flasher: frontend: don't fail if kernel config cannot be found (MR 2184) 2022-06-06 09:52:17 +02:00
helpers pmb.helpers.run: only pass stdin where useful (MR 2197) 2022-08-19 10:40:25 +02:00
install Rename Chrome OS kernel partition to pmOS_kernel (MR 2187) 2022-06-08 23:16:17 +03:00
netboot pmb/netboot: new feature (MR 2064) 2022-01-20 22:29:41 +01:00
parse treewide: fix various lint errors (MR 2197) 2022-08-19 10:40:25 +02:00
qemu pmb.qemu.run: drop removed depedency (MR 2196) 2022-08-11 21:17:20 -04:00
sideload Happy new year 2022! 2022-01-02 22:39:14 +01:00
__init__.py Happy new year 2022! 2022-01-02 22:39:14 +01:00