Re: '/bin/ls' broken by SVN r226509
On Thu, Oct 20, 2011 at 10:52 PM, Lars Engels wrote: > On Fri, Oct 21, 2011 at 09:00:47AM +1030, Daniel O'Connor wrote: >> >> On 20/10/2011, at 22:21, Anton Shterenlikht wrote: >> > On Thu, Oct 20, 2011 at 11:58:41AM +0100, Tom Evans wrote: >> >> On Wed, Oct 19, 2011 at 7:47 PM, Anton Shterenlikht >> >> wrote: >> >>> >> >>> Thanks. Can you also please remind >> >>> how to reinstall just /bin/ls, >> >>> without the "make buildworld"? >> >>> >> >> >> >> cp /rescue/ls /bin/ls >> > >> > oh.. of course. I've forgotten about /rescue. >> > In fact, I only had to use it once before. >> >> >> This is the crunched binary and is pretty big (unlikely to be an issue on a >> modern system though). >> >> You can do.. >> cd /usr/src/bin/ls >> make all install > > And as a workaround: "echo *" :) At work one of our standard questions for candidates for Unix admin postings was how you can get a listing of the files in a directory if ls(1) won't run. echo(1) was the official answer, but we got quite a number of other, perfectly valid ones, some quite inventive and some, like using awk and sed to format the directory file, were kind of awkward, but they all work. Since the interviewees were often not FreeBSD people, use of rescue was never suggested, although it's probably the easiest on a FreeBSD system. ls(1) with no options is such a basic operation that there are probably dozens of ways to do the job in shell, Perl, or Python. -- R. Kevin Oberman, Network Engineer E-mail: kob6...@gmail.com ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: '/bin/ls' broken by SVN r226509
On Fri, Oct 21, 2011 at 09:00:47AM +1030, Daniel O'Connor wrote: > > On 20/10/2011, at 22:21, Anton Shterenlikht wrote: > > On Thu, Oct 20, 2011 at 11:58:41AM +0100, Tom Evans wrote: > >> On Wed, Oct 19, 2011 at 7:47 PM, Anton Shterenlikht > >> wrote: > >>> > >>> Thanks. Can you also please remind > >>> how to reinstall just /bin/ls, > >>> without the "make buildworld"? > >>> > >> > >> cp /rescue/ls /bin/ls > > > > oh.. of course. I've forgotten about /rescue. > > In fact, I only had to use it once before. > > > This is the crunched binary and is pretty big (unlikely to be an issue on a > modern system though). > > You can do.. > cd /usr/src/bin/ls > make all install And as a workaround: "echo *" :) pgpmr63HEF3vI.pgp Description: PGP signature
Re: '/bin/ls' broken by SVN r226509
"Daniel O'Connor" writes: > This is the crunched binary and is pretty big (unlikely to be an issue > on a modern system though). > > You can do.. > cd /usr/src/bin/ls > make all install I think you missed the point. Reinstalling ls from broken sources wasn't going to help. He needed subversion to update his tree so he could build a working ls, but he needed a working ls to build subversion. The simplest solution would have been either # export PATH=/rescue:$PATH or # ln -f /rescue/ls /bin/ls which would have allowed him to build subversion. DES -- Dag-Erling Smørgrav - d...@des.no ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: '/bin/ls' broken by SVN r226509
On 20/10/2011, at 22:21, Anton Shterenlikht wrote: > On Thu, Oct 20, 2011 at 11:58:41AM +0100, Tom Evans wrote: >> On Wed, Oct 19, 2011 at 7:47 PM, Anton Shterenlikht >> wrote: >>> >>> Thanks. Can you also please remind >>> how to reinstall just /bin/ls, >>> without the "make buildworld"? >>> >> >> cp /rescue/ls /bin/ls > > oh.. of course. I've forgotten about /rescue. > In fact, I only had to use it once before. This is the crunched binary and is pretty big (unlikely to be an issue on a modern system though). You can do.. cd /usr/src/bin/ls make all install -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: '/bin/ls' broken by SVN r226509
On Thu, Oct 20, 2011 at 11:58:41AM +0100, Tom Evans wrote: > On Wed, Oct 19, 2011 at 7:47 PM, Anton Shterenlikht > wrote: > > > > Thanks. Can you also please remind > > how to reinstall just /bin/ls, > > without the "make buildworld"? > > > > cp /rescue/ls /bin/ls oh.. of course. I've forgotten about /rescue. In fact, I only had to use it once before. -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423 ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: '/bin/ls' broken by SVN r226509
On Wed, Oct 19, 2011 at 7:47 PM, Anton Shterenlikht wrote: > > Thanks. Can you also please remind > how to reinstall just /bin/ls, > without the "make buildworld"? > cp /rescue/ls /bin/ls Cheers Tom ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: '/bin/ls' broken by SVN r226509
On Oct 19, 2011, at 11:47 AM, Anton Shterenlikht wrote: > On Wed, Oct 19, 2011 at 10:38:30AM -0700, Garrett Cooper wrote: >> On Wed, Oct 19, 2011 at 10:19 AM, Anton Shterenlikht >> wrote: >>> On Wed, Oct 19, 2011 at 12:00:12PM -0400, Michael Butler wrote: On 10/19/11 11:39, Dag-Erling Sm??rgrav wrote: > Michael Butler ?writes: >> When running 'configure' for, say, the latest clamav update, '/bin/ls' >> dumps core with a floating point exception. > > Thanks for the report. ?Try r226546. >>> >>> I removed subversion to help the move from 1.6 to 1.7. >>> Now I can't build it. >>> >>> If possible, can you provide a patch that can >>> be applied directly to fix this. >> >> svnweb is your friend: >> http://svnweb.freebsd.org/base/head/bin/ls/ls.c?r1=226546&r2=226545&pathrev=226546 > > Thanks. Can you also please remind > how to reinstall just /bin/ls, > without the "make buildworld"? make -C bin/ls cleandir all install ? -Garrett___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: '/bin/ls' broken by SVN r226509
On Wed, Oct 19, 2011 at 10:38:30AM -0700, Garrett Cooper wrote: > On Wed, Oct 19, 2011 at 10:19 AM, Anton Shterenlikht > wrote: > > On Wed, Oct 19, 2011 at 12:00:12PM -0400, Michael Butler wrote: > >> On 10/19/11 11:39, Dag-Erling Sm??rgrav wrote: > >> >Michael Butler ?writes: > >> >>When running 'configure' for, say, the latest clamav update, '/bin/ls' > >> >>dumps core with a floating point exception. > >> > > >> >Thanks for the report. ?Try r226546. > > > > I removed subversion to help the move from 1.6 to 1.7. > > Now I can't build it. > > > > If possible, can you provide a patch that can > > be applied directly to fix this. > > svnweb is your friend: > http://svnweb.freebsd.org/base/head/bin/ls/ls.c?r1=226546&r2=226545&pathrev=226546 Thanks. Can you also please remind how to reinstall just /bin/ls, without the "make buildworld"? -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423 ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: '/bin/ls' broken by SVN r226509
On Wed, Oct 19, 2011 at 10:19 AM, Anton Shterenlikht wrote: > On Wed, Oct 19, 2011 at 12:00:12PM -0400, Michael Butler wrote: >> On 10/19/11 11:39, Dag-Erling Sm??rgrav wrote: >> >Michael Butler writes: >> >>When running 'configure' for, say, the latest clamav update, '/bin/ls' >> >>dumps core with a floating point exception. >> > >> >Thanks for the report. Try r226546. > > I removed subversion to help the move from 1.6 to 1.7. > Now I can't build it. > > If possible, can you provide a patch that can > be applied directly to fix this. svnweb is your friend: http://svnweb.freebsd.org/base/head/bin/ls/ls.c?r1=226546&r2=226545&pathrev=226546 -Garrett ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: '/bin/ls' broken by SVN r226509
On Wed, Oct 19, 2011 at 12:00:12PM -0400, Michael Butler wrote: > On 10/19/11 11:39, Dag-Erling Sm??rgrav wrote: > >Michael Butler writes: > >>When running 'configure' for, say, the latest clamav update, '/bin/ls' > >>dumps core with a floating point exception. > > > >Thanks for the report. Try r226546. I removed subversion to help the move from 1.6 to 1.7. Now I can't build it. If possible, can you provide a patch that can be applied directly to fix this. Thanks -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423 ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: '/bin/ls' broken by SVN r226509
On 10/19/11 11:39, Dag-Erling Smørgrav wrote: Michael Butler writes: When running 'configure' for, say, the latest clamav update, '/bin/ls' dumps core with a floating point exception. Thanks for the report. Try r226546. Fixed - Thanks! :-) imb ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: '/bin/ls' broken by SVN r226509
Michael Butler writes: > When running 'configure' for, say, the latest clamav update, '/bin/ls' > dumps core with a floating point exception. Thanks for the report. Try r226546. DES -- Dag-Erling Smørgrav - d...@des.no ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"