Commit fb7a7e95 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Initial commit

parents
all: export FORCE_UNSAFE_CONFIGURE := 1
all:
tar xf coreutils-8.29.tar.xz
patch -Np1 -d coreutils-8.29 < coreutils-8.29-i18n-1.patch
cd coreutils-8.29 && sed -i '/test.lock/s/^/#/' gnulib-tests/gnulib.mk
cd coreutils-8.29 && autoreconf -fiv
cd coreutils-8.29 && ./configure --build=$(CLFS_TARGET) --prefix=/usr --enable-no-install-program=kill,uptime
$(MAKE) -C coreutils-8.29
-if [[ ! "$(BUILD_OPTIONS)" =~ no-tests ]] ; then \
$(MAKE) -C coreutils-8.29 NON_ROOT_USERNAME=nobody check-root ; \
echo "dummy:x:1000:nobody" >> /etc/group ; \
cd coreutils-8.29 ; \
chown -Rv nobody . ; \
su nobody -s /bin/bash -c "PATH=$$PATH make RUN_EXPENSIVE_TESTS=yes -k check || true" ; \
sed -i '/dummy/d' /etc/group ; \
fi
$(MAKE) -C coreutils-8.29 install
mv -v /usr/bin/{cat,chgrp,chmod,chown,cp,date} /bin
mv -v /usr/bin/{dd,df,echo,false,ln,ls,mkdir,mknod} /bin
mv -v /usr/bin/{mv,pwd,rm,rmdir,stty,true,uname} /bin
mv -v /usr/bin/chroot /usr/sbin
mv -v /usr/share/man/man1/chroot.1 /usr/share/man/man8/chroot.8
sed -i s/\"1\"/\"8\"/1 /usr/share/man/man8/chroot.8
mv -v /usr/bin/{head,sleep,nice,test,[} /bin
rm -rf coreutils-8.29
<project name="coreutils">
<target name="temporary-coreutils">
<property name="makedir" value="${builddir}/coreutils-8.29"/>
<exec executable="tar" failonerror="true">
<arg line="xf packages/coreutils/coreutils-8.29.tar.xz -C ${builddir}"/>
</exec>
<exec executable="patch" dir="${makedir}" failonerror="true">
<arg line="-Np1 -i ${basedir}/packages/coreutils/coreutils-8.29-noman.patch"/>
</exec>
<echo file="${makedir}/config.cache">fu_cv_sys_stat_statfs2_bsize=yes
gl_cv_func_working_mkstemp=yes
</echo>
<exec executable="./configure" dir="${makedir}" failonerror="true">
<env key="PATH" path="${PATH}"/>
<env key="CC" value="${CLFS_TARGET}-gcc"/>
<env key="CXX" value="${CLFS_TARGET}-g++"/>
<env key="AR" value="${CLFS_TARGET}-ar"/>
<env key="AS" value="${CLFS_TARGET}-as"/>
<env key="RANLIB" value="${CLFS_TARGET}-ranlib"/>
<env key="LD" value="${CLFS_TARGET}-ld"/>
<env key="STRIP" value="${CLFS_TARGET}-strip"/>
<arg line="--prefix=${sysrootdir}/tools --build=${CLFS_HOST} --host=${CLFS_TARGET} --enable-install-program=hostname --cache-file=config.cache"/>
</exec>
<exec executable="make" dir="${makedir}" failonerror="true">
<env key="PATH" path="${PATH}"/>
<env key="CC" value="${CLFS_TARGET}-gcc"/>
<env key="CXX" value="${CLFS_TARGET}-g++"/>
<env key="AR" value="${CLFS_TARGET}-ar"/>
<env key="AS" value="${CLFS_TARGET}-as"/>
<env key="RANLIB" value="${CLFS_TARGET}-ranlib"/>
<env key="LD" value="${CLFS_TARGET}-ld"/>
<env key="STRIP" value="${CLFS_TARGET}-strip"/>
</exec>
<exec executable="make" dir="${makedir}" failonerror="true">
<env key="PATH" path="${PATH}"/>
<env key="CC" value="${CLFS_TARGET}-gcc"/>
<env key="CXX" value="${CLFS_TARGET}-g++"/>
<env key="AR" value="${CLFS_TARGET}-ar"/>
<env key="AS" value="${CLFS_TARGET}-as"/>
<env key="RANLIB" value="${CLFS_TARGET}-ranlib"/>
<env key="LD" value="${CLFS_TARGET}-ld"/>
<env key="STRIP" value="${CLFS_TARGET}-strip"/>
<arg line="install"/>
</exec>
<delete dir="${makedir}"/>
</target>
</project>
This diff is collapsed.
This diff is collapsed.
bin
/bin/.*
/usr/bin/.*
/usr/sbin/.*
/usr/libexec/.*
locale
/usr/share/locale/.*
info
/usr/share/info/.*
man
/usr/share/man/.*
etc
/etc/.*
run
/run/.*
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment