1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/coreutils/coreutils.conf
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 # do not intall the programs as they conflict with other packages
14 noprogs='groups,su,uptime'
17 pkginstalled mktemp && var_append noprogs ',' 'mktemp'
19 pkginstalled net-tools &&
20 var_append noprogs ',' 'hostname' ||
21 var_append progs ',' 'hostname'
23 [ "$noprogs" ] && var_append confopt ' ' "--enable-no-install-program='$noprogs'"
24 [ "$progs" ] && var_append confopt ' ' "--enable-install-program='$progs'"
26 hook_add preconf 3 "sed -i -e '/gets is a/d' lib/stdio.in.h"
27 hook_add premake 5 'echo > build-aux/missing'
29 if atstage native; then
30 var_insert configprefix ' ' "FORCE_UNSAFE_CONFIGURE=1"
32 var_append makeopt ' ' 'man1_MANS='
33 var_append makeinstopt ' ' 'man1_MANS='
35 hook_add preconf 5 "echo 'gl_cv_func_mbrtowc_incomplete_state=yes
36 gl_cv_func_mbrtowc_sanitycheck=yes
37 gl_cv_func_mbrtowc_null_arg=yes
38 gl_cv_func_mbrtowc_retval=yes
39 gl_cv_func_mbrtowc_nul_retval=yes
40 gl_cv_func_btowc_eof=yes
41 gl_cv_func_wcrtomb_retval=yes
42 gl_cv_func_wctob_works=yes
43 gl_cv_func_re_compile_pattern_working=yes
44 gl_cv_func_rename_trailing_dest_slash_bug=no
45 fu_cv_sys_stat_statvfs=yes
46 gl_cv_func_rename_trailing_slash_bug=no
47 gl_cv_func_tzset_clobber=no
48 gl_cv_func_fstatat_zero_flag=yes' > config.cache"
52 # remove man/Makefile.maint as it tries to rebuild man pages
53 echo -n "" > man/Makefile.maint
55 hook_add premake 5 coreutils_premake
57 # translate some stuff from usr/bin to just bin/ ...
58 var_append INSTALL_WRAPPER_FILTER "|" \
59 "sed -e 's,usr/bin/\(cat\|chgrp\|chmod\|chown\|cp\|cut\|dd\|df\
60 \|head\|ln\|ls\|mkdir\|mknod\|mv\|rm\|rmdir\|sync\|sync\|date\|echo\|false\
61 \|pwd\|stty\|tail\|true\|uname\|sleep\|sort\|touch\|readlink\),bin/\1,'"
63 hook_add postmake 5 'ln -sf install $root$bindir/ginstall'
65 # the configure adds -std=gnu99 to CC; otherwise we get missing pthread symbols
66 var_remove_regex makeopt ' ' 'CC=.*'
67 var_append makeinstopt ' ' 'INSTALL=install' # use system install