Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] test-sorcery and linux spell

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Seth Alan Woolley <seth AT positivism.org>
  • To: Treeve Jelbert <treeve01 AT pi.be>, sm-discuss AT lists.ibiblio.org
  • Cc:
  • Subject: Re: [SM-Discuss] test-sorcery and linux spell
  • Date: Tue, 19 Oct 2004 18:38:51 -0700

Well, that fixed something else, but not the actual problem you're
having. Andrew and I spent our afternoon debugging it until we found
(Andrew found) the fabled IFS finagling in linux's PREPARE had been the
culprit. As I understand it, a workaround has been added to sorcery to
make list_add a bit more robust to avoid the issue.

Anybody willing to modify the spell to eliminate the use of IFS, feel
free to submit a patch.

And let this be a lesson to us all... IFS finagling or the lack of
quotes, or even worse, the creation of a function that depends a the
certain status of IFS... all these are Bad Interactions that we should
avoid in bash where alternatives are available. (Not only do you have
to protect your IFS finagling from bothering code after you've messed
with it, but you have to protect subroutines run while you've finagled
IFS.)

Over and out.

Seth

On Tue, Oct 19, 2004 at 03:11:44PM -0700, Seth Alan Woolley wrote:
> try this diff on PREPARE:
>
> 157d156
> < arch_default
> 198a198,199
> > arch_default
> >
>
> Let me know if that fixes it.
>
> On Tue, Oct 19, 2004 at 10:36:40PM +0200, Treeve Jelbert wrote:
> > using test sorcery, the linux spell fails to cast
> > I get the same problem on two differnet machines,one of which is a clean
> > install. The problem seems to be the ARCH variable, which I had
> > originally
> > set to i386
> >
> > # cat /etc/sorcery/local/depends/linux.p
> > CONFIG_KERNEL=""
> > KERNEL_ARCH=""
> > OLD_CONFIG="y"
> > USE_GUI="n"
> > REUSE_SOURCE="n"
> > -------------
> >
> > Building linux
> > Building a new tree.
> > gpg checking linux-2.6.9.tar.bz2 with linux-2.6.9.tar.bz2.sign.
> > using public key ring file kernel.gpg.
> > check passed.
> > extracting linux-2.6.9.tar.bz2
> > patching file scripts/kconfig/Makefile
> > Using gcc version: 3.4.2
> > Installing in dir: /usr/src/linux-2.6.9
> > linux 2.6.9
> > /usr/src/linux-2.6.9
> > ARCH is '', CROSS_COMPILE is ''
> > make[1]: Entering directory `/usr/src/linux-2.6.9'
> > HOSTCC scripts/basic/fixdep
> > HOSTCC scripts/basic/split-include
> > HOSTCC scripts/basic/docproc
> > SHIPPED scripts/kconfig/zconf.tab.h
> > HOSTCC scripts/kconfig/conf.o
> > HOSTCC scripts/kconfig/mconf.o
> > SHIPPED scripts/kconfig/zconf.tab.c
> > SHIPPED scripts/kconfig/lex.zconf.c
> > HOSTCC -fPIC scripts/kconfig/zconf.tab.o
> > HOSTLLD -shared scripts/kconfig/libkconfig.so
> > HOSTLD scripts/kconfig/conf
> > scripts/kconfig/conf -o arch//Kconfig
> > can't find file arch//Kconfig
> > make[2]: make[1]: Leaving directory `/usr/src/linux-2.6.9'
> > *** [oldconfig] Error 1
> > make[1]: *** [oldconfig] Error 2
> > make[1]: Entering directory `/usr/src/linux-2.6.9'
> > Makefile:500: /usr/src/linux-2.6.9/arch//Makefile: No such file or
> > directory
> > make[1]: *** No rule to make target
> > `/usr/src/linux-2.6.9/arch//Makefile'.
> > Stop.
> > make[1]: Leaving directory `/usr/src/linux-2.6.9'
> > make[1]: Entering directory `/usr/src/linux-2.6.9'
> > Makefile:500: /usr/src/linux-2.6.9/arch//Makefile: No such file or
> > directory
> > make[1]: *** No rule to make target
> > `/usr/src/linux-2.6.9/arch//Makefile'.
> > Stop.
> > make[1]: Leaving directory `/usr/src/linux-2.6.9'
> >
> >
> >
> > Regards, Treeve
> >
> > --
> > PGP Key ID: AB929B24
> > PGP Key Fingerprint:31D9 D22F 42E6 F545 662E AB6F 9697 34C5 AB92 9B24
>
>
>
> > _______________________________________________
> > SM-Discuss mailing list
> > SM-Discuss AT lists.ibiblio.org
> > http://lists.ibiblio.org/mailman/listinfo/sm-discuss
>
>
> --
> Seth Alan Woolley [seth at positivism.org], SPAM/UCE is unauthorized
> Key id EF10E21A = 36AD 8A92 8499 8439 E6A8 3724 D437 AF5D EF10 E21A
> http://smgl.positivism.org:11371/pks/lookup?op=get&search=0xEF10E21A
> Security Team Leader Source Mage GNU/Linux http://www.sourcemage.org



> _______________________________________________
> SM-Discuss mailing list
> SM-Discuss AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/sm-discuss


--
Seth Alan Woolley [seth at positivism.org], SPAM/UCE is unauthorized
Key id EF10E21A = 36AD 8A92 8499 8439 E6A8 3724 D437 AF5D EF10 E21A
http://smgl.positivism.org:11371/pks/lookup?op=get&search=0xEF10E21A
Security Team Leader Source Mage GNU/Linux http://www.sourcemage.org

Attachment: pgpQ2h4iR3b8i.pgp
Description: PGP signature




Archive powered by MHonArc 2.6.24.

Top of Page