File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -219,6 +219,7 @@ function exec_nspawn(){
219
219
--register=no \
220
220
${EPHEMERAL: +--ephemeral} \
221
221
${ISSYSTEMD242: +--pipe} \
222
+ ${MAX_MEMORY: +--property=" MemoryMax=${MAX_MEMORY} " } \
222
223
-E " PATH=/usr/local/sbin:/usr/local/bin:/usr/bin" \
223
224
-D " $BUILDDIRECTORY /$container " " ${@: 2} "
224
225
if (( EPHEMERAL)) ; then
@@ -582,6 +583,7 @@ General Options:
582
583
-d Run diffoscope if packages are not reproducible
583
584
-f Use the local PKGBUILD for building
584
585
-n Run makepkg with --nocheck
586
+ -M <value> Set an upper limit for RAM use on the build container (e.g. 12G)
585
587
-V Print version information
586
588
-o <path> Set the output directory (default: ./build)
587
589
__END__
@@ -592,13 +594,14 @@ function print_version() {
592
594
}
593
595
594
596
function parse_args() {
595
- while getopts :hdnfVo : arg; do
597
+ while getopts :hdnfM:Vo : arg; do
596
598
case $arg in
597
599
h) print_help; exit 0;;
598
600
V) print_version; exit 0;;
599
601
f) pkgbuild_file=1;;
600
602
d) run_diffoscope=1;;
601
603
n) NOCHECK=1;;
604
+ M) MAX_MEMORY=" $OPTARG " ;;
602
605
o) OUTDIR=" $OPTARG " ;;
603
606
* ) error " unknown argument ${OPTARG} " ; print_help; exit 1;;
604
607
esac
You can’t perform that action at this time.
0 commit comments