# --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # T2 SDE: package/.../coreutils/coreutils.conf # Copyright (C) 2004 - 2011 The T2 SDE Project # Copyright (C) 1998 - 2003 ROCK Linux Project # # More information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. A copy of the # GNU General Public License can be found in the file COPYING. # --- T2-COPYRIGHT-NOTE-END --- #don't intall the programs as they conflict with other packages var_append confopt ' ' '--enable-no-install-program="groups,hostname,mktemp,su,uptime"' atstage native || hook_add preconf 5 "echo 'gl_cv_func_mbrtowc_incomplete_state=yes gl_cv_func_mbrtowc_sanitycheck=yes gl_cv_func_mbrtowc_null_arg=yes gl_cv_func_mbrtowc_retval=yes gl_cv_func_mbrtowc_nul_retval=yes gl_cv_func_btowc_eof=yes gl_cv_func_wcrtomb_retval=yes gl_cv_func_wctob_works=yes gl_cv_func_re_compile_pattern_working=yes gl_cv_func_rename_trailing_dest_slash_bug=no fu_cv_sys_stat_statvfs=yes gl_cv_func_rename_trailing_slash_bug=no gl_cv_func_tzset_clobber=no gl_cv_func_fstatat_zero_flag=yes' > ./config.cache" coreutils_premake() { # remove man/Makefile.maint as it tries to rebuild man pages echo -n "" > man/Makefile.maint } hook_add premake 5 coreutils_premake # translate some stuff from usr/bin to just bin/ ... var_append INSTALL_WRAPPER_FILTER "|" \ "sed -e 's,usr/bin/\(cat\|chgrp\|chmod\|chown\|cp\|cut\|dd\|df\ \|head\|ln\|ls\|mkdir\|mknod\|mv\|rm\|rmdir\|sync\|sync\|date\|echo\|false\ \|pwd\|stty\|tail\|true\|uname\|sleep\|sort\|touch\|readlink\),bin/\1,'" hook_add postmake 5 'ln -sf install $root/usr/bin/ginstall' # the configure adds -std=gnu99 to CC; otherwise we get missing pthread symbols var_remove_regex makeopt ' ' 'CC=.*'