From cb8edbf9ec88a457e715b3592e30a9884e8cbfd6 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 23 Mar 2018 11:07:48 +0100 Subject: building git, some fixes with login shells in ssh --- build_stage4.sh | 4 ++-- build_stage4_package.sh | 12 ++++++------ create_hdd.sh | 4 ---- i486-stage2/pcre2/DESCR | 6 ++++++ i486-stage3/pcre2/DESCR | 6 ++++++ i486-stage4/git/DESCR | 12 ++++++++++++ i486-stage4/libtool/DESCR | 12 ++++++++++++ 7 files changed, 44 insertions(+), 12 deletions(-) create mode 100644 i486-stage2/pcre2/DESCR create mode 100644 i486-stage3/pcre2/DESCR create mode 100644 i486-stage4/libtool/DESCR diff --git a/build_stage4.sh b/build_stage4.sh index 4859a64..a91be6f 100755 --- a/build_stage4.sh +++ b/build_stage4.sh @@ -18,13 +18,14 @@ autoconf tcl expect dejagnu cscope automake perl-test-pod perl-devel-symdump perl-pod-coverage perl-test-pod-coverage perl-error pcre2 docbook-xml libxslt docbook-xsl xmlto asciidoc git +libtool " #~ stage2: #~ PACKAGES=" #~ #~ -#~ libtool +#~ #~ zlib pambase cracklib libtirpc flex pam libcap coreutils #~ util-linux pkg-config e2fsprogs expat bzip2 lz4 xz pcre less gzip #~ tar libarchive curl @@ -99,7 +100,6 @@ docbook-xml libxslt docbook-xsl xmlto asciidoc git #~ grep #~ groff #~ gzip -#~ libtool #~ make #~ pacman #~ patch diff --git a/build_stage4_package.sh b/build_stage4_package.sh index ad3a656..f2fbc70 100755 --- a/build_stage4_package.sh +++ b/build_stage4_package.sh @@ -108,7 +108,7 @@ if test "$(find "$STAGE4_PACKAGES" -regex ".*/$PACKAGE-.*pkg\\.tar\\.xz" | wc -l TESTING="" fi - ssh -i $CROSS_HOME/.ssh/id_rsa build@$STAGE1_MACHINE_IP bash -c "'cd $PACKAGE && makepkg --skipchecksums --skippgpcheck $TESTING'" > $PACKAGE.log 2>&1 + ssh -i $CROSS_HOME/.ssh/id_rsa build@$STAGE1_MACHINE_IP bash -l -c "'cd $PACKAGE && makepkg --skipchecksums --skippgpcheck $TESTING'" > $PACKAGE.log 2>&1 RES=$? tail "$PACKAGE.log" @@ -119,7 +119,7 @@ if test "$(find "$STAGE4_PACKAGES" -regex ".*/$PACKAGE-.*pkg\\.tar\\.xz" | wc -l # copy to our package folder in the first stage chroot - ssh -i $CROSS_HOME/.ssh/id_rsa root@$STAGE1_MACHINE_IP bash -c "' + ssh -i $CROSS_HOME/.ssh/id_rsa root@$STAGE1_MACHINE_IP bash -l -c "' cd /build/$PACKAGE rm -f ./*debug*.pkg.tar.xz cp -v ./*.pkg.tar.xz /packages/$TARGET_CPU/. @@ -128,7 +128,7 @@ if test "$(find "$STAGE4_PACKAGES" -regex ".*/$PACKAGE-.*pkg\\.tar\\.xz" | wc -l # redo the whole pacman cache and repo (always running into trouble # there, packages seem to reappear in old versions) - ssh -i $CROSS_HOME/.ssh/id_rsa root@$STAGE1_MACHINE_IP bash -c "' + ssh -i $CROSS_HOME/.ssh/id_rsa root@$STAGE1_MACHINE_IP bash -l -c "' # rm -rf /var/cache/pacman/pkg/* # rm -rf /packages/$TARGET_CPU/temp.db* # rm -rf /packages/$TARGET_CPU/temp.files* @@ -141,7 +141,7 @@ if test "$(find "$STAGE4_PACKAGES" -regex ".*/$PACKAGE-.*pkg\\.tar\\.xz" | wc -l FORCE="--force" fi - ssh -i $CROSS_HOME/.ssh/id_rsa root@$STAGE1_MACHINE_IP bash -c "' + ssh -i $CROSS_HOME/.ssh/id_rsa root@$STAGE1_MACHINE_IP bash -l -c "' # TODO: broken [temp] repo if test \"$ADDITIONAL_INSTALL_PACKAGE\" != \"\"; then #pacman $FORCE --noconfirm -Syy $PACKAGE $ADDITIONAL_INSTALL_PACKAGE @@ -163,9 +163,9 @@ if test "$(find "$STAGE4_PACKAGES" -regex ".*/$PACKAGE-.*pkg\\.tar\\.xz" | wc -l mv "$STAGE4_BUILD/$PACKAGE/$PACKAGE.log" "$tmp_dir" cd "$STAGE4_BUILD" || exit 1 rm -rf "$PACKAGE" - ssh -i $CROSS_HOME/.ssh/id_rsa root@$STAGE1_MACHINE_IP bash -c "'cd /build && tar zcf $PACKAGE.tar.gz $PACKAGE/'" + ssh -i $CROSS_HOME/.ssh/id_rsa root@$STAGE1_MACHINE_IP bash -l -c "'cd /build && tar zcf $PACKAGE.tar.gz $PACKAGE/'" scp -i $CROSS_HOME/.ssh/id_rsa -rC build@$STAGE1_MACHINE_IP:/build/"$PACKAGE.tar.gz" "$STAGE4_BUILD/." - ssh -i $CROSS_HOME/.ssh/id_rsa root@$STAGE1_MACHINE_IP bash -c "'cd /build && rm -f $PACKAGE.tar.gz'" + ssh -i $CROSS_HOME/.ssh/id_rsa root@$STAGE1_MACHINE_IP bash -l -c "'cd /build && rm -f $PACKAGE.tar.gz'" tar zxf "$PACKAGE.tar.gz" rm -f "$PACKAGE.tar.gz" mv "$tmp_dir/$PACKAGE.log" "$STAGE4_BUILD/$PACKAGE/." diff --git a/create_hdd.sh b/create_hdd.sh index f7b5c99..8f65923 100755 --- a/create_hdd.sh +++ b/create_hdd.sh @@ -111,10 +111,6 @@ cp "$HOME/.ssh/id_rsa.pub" build/.ssh/authorized_keys chown 1001:1001 build # default PAM rules expect a password to be set for su? echo 'build:xx' | chpasswd -cat > build/.bashrc < Starting check()... +# GEN public-submodule-commit +# fatal: Not a valid commit name 2112962abddd971a395c70611ca86caa86e7b391 +# Stopping at 'gnulib'; script returned non-zero status. +# maint.mk: found non-public submodule commit +# make: *** [maint.mk:1405: public-submodule-commit] Error 1 +# ==> ERROR: A failure occurred in check(). +# Aborting... -- cgit v1.2.3-54-g00ecf