Re: [SUMMARY] Re-adding *startfile_prefix_spec

2006-01-29 Thread Ryan Oliver
On Sun, 2006-01-29 at 19:25 -0600, Randy McMurchy wrote: > > I was just hoping that there could be a good discussion. And when > someone (especially one of Greg's stature in the toolchain foodchain > ladder) says something is bad, and gives what sounds like good reasons > (I am not qualified to ag

Re: Re-adding *startfile_prefix_spec

2006-01-29 Thread Jeremy Huntwork
Dan Nicholson wrote: > In the adjustment, though, he uses `gcc -dumpmachine`, though. This > is probably wise since you don't know what MACHTYPE is from the host's > bash. In fact, this might be a good idea for both adjustments. I > don't know how reliable MACHTYPE is, but I'm speculating since

Re: Re-adding *startfile_prefix_spec

2006-01-29 Thread Dan Nicholson
On 1/29/06, Jeremy Huntwork <[EMAIL PROTECTED]> wrote: > Jeremy Huntwork wrote: > > > +mv -v /tools/bin/{ld,ld-old} > > +mv -v /tools/$MACHTYPE/bin/{ld,ld-old} > > +mv -v /tools/bin{ld-new,ld} > > +ln -v /tools/bin/ld /tools/$MACHTYPE/bin/ld > > Any reason why something similar can't be done for th

Re: Re-adding *startfile_prefix_spec

2006-01-29 Thread Jeremy Huntwork
Jeremy Huntwork wrote: > +mv -v /tools/bin/{ld,ld-old} > +mv -v /tools/$MACHTYPE/bin/{ld,ld-old} > +mv -v /tools/bin{ld-new,ld} > +ln -v /tools/bin/ld /tools/$MACHTYPE/bin/ld Any reason why something similar can't be done for the first pass of binutils? I forgot about that one. -- JH -- http://

Re: [SUMMARY] Re-adding *startfile_prefix_spec

2006-01-29 Thread Jeremy Huntwork
Dan Nicholson wrote: > My fault, I missed the > in the xml. It works as you say, even > running it repeatedly. It would make sense to drop the -i anyway, > though. We're not actually supplying perl with a file for the -i. Yep, agreed. I think the -i is a leftover from stable where we *are* edi

Re: [SUMMARY] Re-adding *startfile_prefix_spec

2006-01-29 Thread Dan Nicholson
On 1/29/06, Jeremy Huntwork <[EMAIL PROTECTED]> wrote: > > We're covered, because I do this first: > > mv -v /tools/$MACHTYPE/bin/{ld,ld-old} Yeah, sorry. Missed that one. -- Dan -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See th

Re: [SUMMARY] Re-adding *startfile_prefix_spec

2006-01-29 Thread Dan Nicholson
On 1/29/06, Jeremy Huntwork <[EMAIL PROTECTED]> wrote: > > It doesn't fail. I've tested it again here and it's fine. Try directing > it to a temporary location that you know doesn't exist, and look at the > finished product. > > gcc -dumpspecs | \ > perl -pi -e 's@/tools/lib/ld@/lib/[EMAIL PROTECTE

Re: [SUMMARY] Re-adding *startfile_prefix_spec

2006-01-29 Thread Jeremy Huntwork
Dan Nicholson wrote: > Now that I think about this more, the pipe and redirect *without* -i > is much better. This way, you're always editing starting from the > default -dumpspecs instead of editing the existing file. Then you can > run the command as many times as you want. You don't have to w

Re: [SUMMARY] Re-adding *startfile_prefix_spec

2006-01-29 Thread Jeremy Huntwork
Dan Nicholson wrote: > And another. We're trying to make a symbolic link at > /tools/$MACHTYPE/bin/ld, but a file already exists there. It seems > we'd need to add -f to the ln statement: > > ln -svf /tools/bin/ld /tools/${MACHTYPE}/bin/ld > > or it'll fail with a File exists error. Look at th

Re: [SUMMARY] Re-adding *startfile_prefix_spec

2006-01-29 Thread Jeremy Huntwork
Dan Nicholson wrote: > Hey, Jeremy, just a little nit. The new specs readjustment will fail > because we're piping input to perl, but then using the -i parameter to > work on the `dirname ...`/specs file. This fails if that file doesn't > exist. Probably, we should drop -i and redirect the outpu

Re: [SUMMARY] Re-adding *startfile_prefix_spec

2006-01-29 Thread Dan Nicholson
On 1/29/06, Dan Nicholson <[EMAIL PROTECTED]> wrote: > On 1/29/06, Jeremy Huntwork <[EMAIL PROTECTED]> wrote: > > > > So. Exepect a commit in ~ 5 minutes. > > Probably, we should drop -i and redirect the output: Now that I think about this more, the pipe and redirect *without* -i is much better.

Re: [SUMMARY] Re-adding *startfile_prefix_spec

2006-01-29 Thread Dan Nicholson
On 1/29/06, Dan Nicholson <[EMAIL PROTECTED]> wrote: > On 1/29/06, Jeremy Huntwork <[EMAIL PROTECTED]> wrote: > > > > So. Exepect a commit in ~ 5 minutes. > > Hey, Jeremy, just a little nit. And another. We're trying to make a symbolic link at /tools/$MACHTYPE/bin/ld, but a file already exists th

Re: [SUMMARY] Re-adding *startfile_prefix_spec

2006-01-29 Thread Dan Nicholson
On 1/29/06, Jeremy Huntwork <[EMAIL PROTECTED]> wrote: > > So. Exepect a commit in ~ 5 minutes. Hey, Jeremy, just a little nit. The new specs readjustment will fail because we're piping input to perl, but then using the -i parameter to work on the `dirname ...`/specs file. This fails if that fil

Re: [SUMMARY] Re-adding *startfile_prefix_spec

2006-01-29 Thread Jeremy Huntwork
Randy McMurchy wrote: > Could you point me to that post where Ryan refuted some of Greg's > points? I saw a post where Ryan described why a particular method > was good, but from the best I could tell, didn't address any of > Greg's points why a method was bad. So far, Ryan has given us the most

Re: [SUMMARY] Re-adding *startfile_prefix_spec

2006-01-29 Thread Randy McMurchy
Jeremy Huntwork wrote these words on 01/29/06 19:13 CST: > Ryan did that already. Could you point me to that post where Ryan refuted some of Greg's points? I saw a post where Ryan described why a particular method was good, but from the best I could tell, didn't address any of Greg's points why a

Re: [SUMMARY] Re-adding *startfile_prefix_spec

2006-01-29 Thread Jeremy Huntwork
Randy McMurchy wrote: > Should we not wait until there is *some* sort of explanation by > somebody about Greg's points? Jeremy, since you've taken it upon > yourself to take lead in this, could you address some of Greg's > points, please? Ryan did that already. Or haven't you read what he said? P

Re: [SUMMARY] Re-adding *startfile_prefix_spec

2006-01-29 Thread Randy McMurchy
Jeremy Huntwork wrote these words on 01/29/06 18:47 CST: > Right. And, again, we're familiar with the spec. We have used it; *are* > using it in stable and cross-lfs. Our tests and experience are based on > it. To introduce a new method now would also mean we're introducing a > whole new thing to

Automated package building

2006-01-29 Thread Randy McMurchy
Hi all, As discussed, I'm proposing to implement a new section to the "Notes on Building Software" part of Chapter 2. The section could be titled "Automation Procedures for Building BLFS Packages", or something similar. Then, removing the automated agreeing to the licenses in the three Sun package

Re: [SUMMARY] Re-adding *startfile_prefix_spec

2006-01-29 Thread Jeremy Huntwork
Dan Nicholson wrote: > The way I see it, both ways achieve the desired effect of finding the > startfiles and libraries in /usr/lib. It's out of mine (and most > people's) jurisdiction to say which one is technically more accurate > although both Greg and Ryan have done some nice education here.

Re: [SUMMARY] Re-adding *startfile_prefix_spec

2006-01-29 Thread Dan Nicholson
On 1/29/06, Jeremy Huntwork <[EMAIL PROTECTED]> wrote: > > I have given some major thought to this. And I waited to hear comments. > I think at this point, everyone that wanted to, or is able to comment, > has done so. The way I see it, both ways achieve the desired effect of finding the startfile

Re: Re-adding *startfile_prefix_spec

2006-01-29 Thread Greg Schafer
Ryan Oliver wrote: > When you are doing an old style cross-toolchain build Nobody sane uses old style cross-toolchain build procedures these days :-) > (ie: not using a sysroot, all target libraries and includes installed > under /prefix/target/lib /prefix/target/lib64 > /prefix/target/{include

Re: Re-adding *startfile_prefix_spec

2006-01-29 Thread Dan Nicholson
On 1/28/06, Ryan Oliver <[EMAIL PROTECTED]> wrote: > On Sat, 2006-01-28 at 14:36 -0800, Dan Nicholson wrote: > > > > Um, the decision might be made for us: > > > > http://gcc.gnu.org/ml/gcc-patches/2005-01/msg00507.html > > Yup, and its still there 1 year later. Oops, sorry. I thought that post w

Re: Re-adding *startfile_prefix_spec

2006-01-29 Thread Greg Schafer
Ryan Oliver wrote: G'day Ryan, good to see you alive and kicking on the list :-) Unfortunately, all you've done is told us why you don't like -B. You haven't addressed the core issue of this thread ie: startfile_prefix_spec. We'd all appreciate it if you could address the concerns that I've rai

Re: Re-adding *startfile_prefix_spec

2006-01-29 Thread Greg Schafer
Greg Schafer wrote: > Personally, I don't believe in it and will never use it because: > > - the spec is faulty. It doesn't work when placed into an external file >for use by "gcc -specs=..." (luckily LFS is not using it externally). >Every other spec I've tried works properly when place

Re: Redundancy in ncurses installation

2006-01-29 Thread Bryan Kadzban
Alexander E. Patrakov wrote: > Bryan Kadzban wrote: > >> This is NOT safe if either of those library files are currently >> linked into any process that's running! >> > They are not used. Certainly :) > > The used file may be /lib/libncursesw.so.5 (which is a symlink > pointing to 5.5). If it's

Re: New toolchain adjustment/sanity check problem

2006-01-29 Thread Jeremy Huntwork
Dan Nicholson wrote: > We should also think about what happens when crtbegin.o and crtend.o > come under /usr after gcc is installed since the answer you get will > not be the same as shown in the book. > > In this case, the following regex will always return what's in the book. > > grep "/usr/.

[SUMMARY] Re-adding *startfile_prefix_spec

2006-01-29 Thread Jeremy Huntwork
Jeremy Huntwork wrote: > Thank you Ryan. When I asked you several times before to give technical > reasons why we should use the *startfile_prefix_spec, *this* is what I > was after. Nothing so concise existed in previous threads. I have given some major thought to this. And I waited to hear comm

Re: New toolchain adjustment/sanity check problem

2006-01-29 Thread Dan Nicholson
On 1/28/06, Chris Staub <[EMAIL PROTECTED]> wrote: > Before you > install GCC into /usr, the check for "/usr/lib/crt.*" will work, but > after you do it will not because GCC will actually be using > "/usr/lib/gcc/i686-pc-linux-gnu/4.0.2/../../../crt1.o" Good catch, Chris. What about grep "/usr/.

Re: Redundancy in ncurses installation

2006-01-29 Thread Alexander E. Patrakov
Bryan Kadzban wrote: Chris Staub wrote: The Chapter 6 ncurses instructions in the LFS dev book have this construction: for lib in curses ncurses form panel menu ; do \ rm -vf /usr/lib/lib${lib}.so ; \ echo "INPUT(-l${lib}w)" >/usr/lib/lib${lib}.so ; \ ln -sfv lib${lib}w

Re: Re-adding *startfile_prefix_spec

2006-01-29 Thread Jeremy Huntwork
Ryan Oliver wrote: [snip] > Which method do you want to use to link in the correct startfiles > 1: misuse the -B flag, overriding GCC_EXEC_PREFIX and setting isystem et > al > 2: set the location of the startfiles in the spec provided just for this > purpose. Thank you Ryan. When I asked you sev

Re: Redundancy in ncurses installation

2006-01-29 Thread Bryan Kadzban
Chris Staub wrote: > The Chapter 6 ncurses instructions in the LFS dev book have this > construction: > > for lib in curses ncurses form panel menu ; do \ > rm -vf /usr/lib/lib${lib}.so ; \ > echo "INPUT(-l${lib}w)" >/usr/lib/lib${lib}.so ; \ > ln -sfv lib${lib}w.a /usr/lib

Forging 2.6.15 + udev hotplug

2006-01-29 Thread Hai Zaar
Hi, all! I'm joining the effort started here: http://linuxfromscratch.org/pipermail/lfs-dev/2006-January/055025.html Current setup: LFS+6.1.1 (but with old LFS-6.0 bootscripts). Upgrades: kernel-2.6.15.1 udev-081 Jim's udev rules: http://ftp.jg555.com/udev/udev-cross-lfs.tar.bz2 The way I work: