|
From: Heiko Z. <he...@zu...> - 2010-01-06 12:50:41
|
> -----Original Message----- > From: Bruce Smith [mailto:bw...@re...] > Sent: Tuesday, January 05, 2010 9:30 PM > To: dev...@li... > Subject: Re: [Devil-linux-develop] no more insserv in build system > > >> But not exactly yet? I have now (after make mrproper unpack all): > >> > >>>... > >>>make: Entering directory `/build' > >>>prepare: prepare log: > /data/build/tmp/LOGS/prepare/prepare > >>>make: *** [prepare] Error 1 > >>>make: Leaving directory `/build' > >>>make: *** [prepare] Error 1 > >>>root:/build# > >> > >> and there is no log! > > > > "ln -s / /data" temporarily solves problem :) > > I just started a fresh compile, latest cvs, new lfs, mrproper. > I didn't make the above link, and it made it through prepare fine. > Actually, I did "make all" instead. Maybe that's the difference? > > root:/data/build# make all mount: > proc already mounted > mount: none already mounted or /sys busy > mount: according to mtab, none is already mounted on /sys > make: Entering directory `/data/build' [.............] > build: prepare log: > /data/build/tmp/LOGS/build/prepare > build: glibc log: > /data/build/tmp/LOGS/build/glibc I accidentally had the path to DL_DIR hardcoded in Makefile.inc. I removed the line and now it should work even if the build directory is not /data/build. Update from CVS and you should be fine. Sorry for that > > Dear Heiko, > > > > How now to insert into dependency own tested build script(s)? > > How insert it automatically after official one? > > > > patching Makefile.*? > > manually editing proper Makefile.* every time? > > Good questions. :-) Yes correct, you need to change the Makefile.xxx You need to add it twice per file: First you need to add it to one of the GROUP_xx entries, then you need to add a line like this: conntrack-tools: | $(GROUP_17) The GOUP_17 in this case means that everything in GROUP_17 has to be build first, before it compiles the script. I wrote a script which basically create Makefiles from the insserv configuration. At some point I want to get away from that also and have every script list the dependencies in the Makefile. For example: conntrack-tools: | depencency1 dependency2 dependency3 This way the adding of new functionality would be easier. Heiko |