Closed frenchiveruti closed 7 years ago
You're probably using lubuntu, xubuntu, yubuntu. Bash should be the default shell everywhere.
It's a good thing that fatal errors happen early, as you'll find MANY more errors afterwards. The problem is.. I only use Puppy and right now I'm being forced back into Windows. Some work towards fixing this may happen on Sunday.
Steps to fix this if anybody else wants to do it:
1) Use a distro other than puppy with a default shell other than bash 2) attempt to build a puppy 2) Change the shebang to /bin/bash in all the affected scripts (bashisms) 3) export PATH=$PATH:$PWD/woof-code/rootfs-skeleton/sbin:$PWD/woof-code/rootfs-skeleton/usr/bin:$PWD/woof-code/rootfs-skeleton/usr/sbin:$PWD/support (from 0setup to 3builddistro) 4) fix other possible issues
something like that..
Another approach to fix the problem might be
https://github.com/puppylinux-woof-CE/run_woof
but when I tried using run_woof I got errors involving dpkg-deb
dpkg-deb (subprocess): subprocess data was killed by signal (Broken pipe)
dpkg-deb: error: subprocess <decompress> returned error exit status 2
It might still work for Slackware based builds, but I have not tested it.
It also requires aufs so that might be a problem in non puppy distros.
Ah... yes, I'm using Lubuntu, I'm really reeeaaaallly not a Linux user and I really didn't get a word about what the heck is bash, but I felt like I had to report it as there's literally no information about this particular error on freaking google. So for the future people on the internet! Behold your probable solutions!
I tried using run_woof again this time using a precise-5.7.1.iso and devx and I did not see any errors running ./2createpackages
It could be that the errors I ran into were from trying to do a deb (raspbian) based build using a slacko iso.
I do not know what kernel modules are included in Lubuntu, @frenchiveruti what is the output from
find /lib/modules/ -iname aufs.ko -or -iname overlay.ko
If you have aufs.ko using run_woof might work for you, if you only have overlay.ko I can try to add support for overlayfs to run_woof.
Hi, not on my Lubuntu PC, but on xubuntu it outputs that it has both aufs and overlay. ko I'll check out when I'm back to it.
Ah... yes, I'm using Lubuntu, I'm really reeeaaaallly not a Linux user and I really didn't get a word about what the heck is bash.
The first line of a shell script like the "merge2out" script, tells you which program will be used to interpret the text you are entering in a machine understandable language.
/bin/sh
is the generic name and usually points to a specific program/interpreter like bash, dash, ash, ksh, zsh etc.
Ubuntu and friends "translate" /bin/sh
to /bin/dash
(but also have bash). Puppy to /bin/bash
.
The specific script has a re-direction command (the <<<
) that is not sh POSIX-compliant and is not "understood" by dash, though is OK with bash and other interpreters.
To solve the problem follow any of the recommendations suggested above by @wdlkmpx
@wdlkmpx I did some more testing and the problem with dpkg-deb only seems to affect 32bit slacko isos. I patched run_woof to work with 64bit isos and completed a Raspbian build using a slacko64-6.3.2 iso running run_woof from tahr64-6.0.6
see https://github.com/woodenshoe-wi/run_woof
I did issue a pull request.
I still have to update some libs in the Raspbian build, but before anyone starts putting too much work into trying to fix the issues with bash and other puppy specific parts of woof-CE I think they should look at run_woof as an option.
Hello, I'm having that line of error and I don't know if it's expected or not.