[Aboriginal] I am likely forgetting something obvious

James McMechan james.w.mcmechan at gmail.com
Sun Nov 8 12:03:38 PST 2015


Hi everyone,
It has been a while since I last tested rebuilding in a chroot, and my
build is failing
I had done what I remembered as my procedure:
# more/chroot-splice.sh x86_64 /tmp
then copied it over to my /mnt/build directory and mounted proc,sys,dev
and then unpacked aboriginal into it
# tar xf ~mcmechan/Downloads/aboriginal-1.4.3.tar.gz -C /mnt/build
when I start up my chroot
# chroot /mnt/build /bin/bash
# cd /aboriginal-1.4.3/
# ./build.sh x86_64
=== Download source code.
wget: bad address 'uclibc.org'z2
wget: bad address 'landley.net'
Connecting to 127.0.0.1 (127.0.0.1:80)
wget: server returned error: HTTP/1.0 404 Not Found
Could not download uClibc-0.9.33.2.tar.bz2

Exiting due to errors (host download )

real    0m10.098s
user    0m0.000s
sys     0m0.000s

#####
Ok, I have now checked and downloads have not worked for some time at least
back to 1.2.9

but if I have copied in the package directory 1.2.9 will build busybox &
toybox
and 1.4.3 fails with

=== busybox (host host-tools)
Extracting
'busybox'...........................................................................
Snapshot 'busybox'...
sh: set: -e: invalid option
  HOSTCC  scripts/basic/fixdep
sh: set: -e: invalid option
  HOSTCC  scripts/basic/split-include
sh: set: -e: invalid option
  HOSTCC  scripts/basic/docproc
sh: local: not in a function
sed: : No such file or directory
sed: : No such file or directory

Ok that appears to be hush so with
# ln -sf /bin/bash /bin/sh
I get a little further, the more/chroot-splice.sh should likely do this and
it would be nice if it did not require the second option, I at least am
just wanting a plain chroot without a mount inside.

so using bash 1.4.3 dies in toybox with:

Extracting 'toybox'...............
Applying /aboriginal-1.4.3/sources/patches/toybox-grep.patch
patching toys/posix/grep.c
Snapshot 'toybox'...
scripts/genconfig.sh
cc -o kconfig/conf kconfig/conf.c kconfig/zconf.tab.c -DKBUILD_NO_NLS=1 \
                -DPROJECT_NAME=\"ToyBox\"
kconfig/conf -D /dev/null Config.in > /dev/null
scripts/make.sh
scripts/make.sh: line 7: set: pipefail: invalid option name
Generate headers from toys/*/*.c...
generated/newtoys.h Library probe.......
Make generated/config.h from .config.
generated/flags.h generated/globals.h generated/help.h
Compile toybox.scripts/make.sh: line 1: jobs: command not found
.scripts/make.sh: line 1: jobs: command not found
.scripts/make.sh: line 1: jobs: command not found

so should I be looking to turn on pipefail & jobs in bash or do I need to
fix up the build script. 1.2.9 did not have jobs or pipefail.


Anyway I am putting it out for comment as I seem to have forgotten a step
somewhere.

Jim McMechan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/aboriginal-landley.net/attachments/20151108/c4618cb6/attachment.htm>


More information about the Aboriginal mailing list