Skip to content

Commit 00d429a

Browse files
oech3oech3
authored andcommitted
build-gnu.sh: Do not build GNU coreutils for faster CI
1 parent 29adc24 commit 00d429a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

util/build-gnu.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# spell-checker:ignore (paths) abmon deref discrim eacces getlimits getopt ginstall inacc infloop inotify reflink ; (misc) INT_OFLOW OFLOW
66
# spell-checker:ignore baddecode submodules xstrtol distros ; (vars/env) SRCDIR vdir rcexp xpart dired OSTYPE ; (utils) gnproc greadlink gsed multihardlink texinfo CARGOFLAGS
7-
# spell-checker:ignore openat TOCTOU
7+
# spell-checker:ignore openat TOCTOU CFLAGS
88

99
set -e
1010

@@ -131,7 +131,8 @@ else
131131
# Disable useless checks
132132
sed -i 's|check-texinfo: $(syntax_checks)|check-texinfo:|' doc/local.mk
133133
./bootstrap --skip-po
134-
./configure --quiet --disable-gcc-warnings --disable-nls --disable-dependency-tracking --disable-bold-man-page-references \
134+
CFLAGS="${CFLAGS} -O0 -pipe -s" ./configure --quiet --disable-gcc-warnings --disable-nls --disable-bold-man-page-references \
135+
--enable-no-install-program="[,b2sum,base32,base64,basename,basenc,cat,chcon,chgrp,chmod,chown,chroot,cksum,comm,cp,csplit,cut,date,dd,df,dir,dircolors,dirname,du,echo,env,expand,expr,factor,false,fmt,fold,groups,head,hostid,id,install,join,kill,link,ln,logname,ls,md5sum,mkdir,mkfifo,mknod,mktemp,mv,nice,nl,nohup,nproc,numfmt,od,paste,pathchk,pinky,pr,printenv,printf,ptx,pwd,readlink,realpath,rm,rmdir,runcon,seq,sha1sum,sha224sum,sha256sum,sha384sum,sha512sum,shred,shuf,sleep,sort,split,stat,stdbuf,stty,sum,sync,tac,tail,tee,test,timeout,touch,tr,true,truncate,tsort,tty,uname,unexpand,uniq,unlink,uptime,users,vdir,wc,who,whoami,yes" \
135136
"$([ "${SELINUX_ENABLED}" = 1 ] && echo --with-selinux || echo --without-selinux)"
136137
#Add timeout to to protect against hangs
137138
sed -i 's|^"\$@|'"${SYSTEM_TIMEOUT}"' 600 "\$@|' build-aux/test-driver

0 commit comments

Comments
 (0)