Re: coreutils-6.0 on platforms without fchdir

2006-09-02 Thread Bruno Haible
Paul Eggert wrote: > On platforms lacking fchdir, > put a wrapper around 'open' so that we can keep track of which file > descriptors correspond to directories. The 'open' wrapper puts the > name of the opened directory into a hash table. (The name must be > absolute, so 'open' may need to do the

Re: coreutils-6.0 on platforms without fchdir

2006-09-01 Thread Jim Meyering
Paul Eggert <[EMAIL PROTECTED]> wrote: > Thanks for working on it, but I think we'd prefer a solution that > doesn't require the maintainer having to think about obsolete > platforms that lack fchdir. > > How about the following idea instead? On platforms lacking fchdir, > put a wrapper around 'op

Re: coreutils-6.0 on platforms without fchdir

2006-09-01 Thread Paul Eggert
Thanks for working on it, but I think we'd prefer a solution that doesn't require the maintainer having to think about obsolete platforms that lack fchdir. How about the following idea instead? On platforms lacking fchdir, put a wrapper around 'open' so that we can keep track of which file descri

coreutils-6.0 on platforms without fchdir

2006-09-01 Thread Bruno Haible
While compiling on BeOS, a more difficult problem shows up in the testsuite: recursive "chown -R ..." and recursive removals "rm -r ..." fail with error message "Function not implemented" (= strerror(ENOSYS)). The reason: BeOS doesn't have an fchdir() function, nor fdopendir(), nor a /proc filesys

Re: coreutils-6.0 on BeOS (9)

2006-08-29 Thread Paul Eggert
Bruno Haible <[EMAIL PROTECTED]> writes: > Compiling the current coreutils CVS on MacOS X 10.3.9 now gives this error: > > stat.c: In function `print_statfs': > stat.c:416: error: incompatible types in initialization Thanks for reporting this. Oops, this is another MacOS problem (I got misled by

Re: coreutils-6.0: numerous test failures on MacOS X

2006-08-29 Thread Paul Eggert
Bruno Haible <[EMAIL PROTECTED]> writes: > Single-stepping with "next" yields a loop in tail.c: This is because 'tail' is confused again about the distinction between pipes and sockets. This is a bit of a can of worms (it was the topic of a discussion on the Open Group a while ago, so I knew abo

Re: coreutils-6.0 on BeOS (9)

2006-08-28 Thread Bruno Haible
Paul Eggert wrote: > 2006-08-23 Paul Eggert <[EMAIL PROTECTED]> > > * src/stat.c (HAVE_STRUCT_STATXFS_F_FSID___VAL): Define. This > macro was being used without being defined. Compiling the current coreutils CVS on MacOS X 10.3.9 now gives this error: stat.c: In function `print_st

Re: coreutils-6.0 on BeOS (6)

2006-08-28 Thread Simon Josefsson
Bruno Haible <[EMAIL PROTECTED]> writes: > Simon Josefsson wrote: >> > The reason is that BeOS does not have PF_INET, only AF_INET, but usually >> > they >> > have the same values. Also it doesn't have PF_UNSPEC. >> >> Does it AF_UNSPEC? Did you grep the entire /usr/include tree to find >> PF_I

Re: coreutils-6.0 on BeOS (6)

2006-08-28 Thread Bruno Haible
Simon Josefsson wrote: > > The reason is that BeOS does not have PF_INET, only AF_INET, but usually > > they > > have the same values. Also it doesn't have PF_UNSPEC. > > Does it AF_UNSPEC? Did you grep the entire /usr/include tree to find > PF_INET or PF_UNSPEC? Maybe they are in some non-stan

Re: coreutils-6.0 on BeOS (9)

2006-08-24 Thread Alfred M. Szmidt
Btw, the "#ifdef __GLIBC__" in m4/fsusage.m4 looks wrong also for the Hurd, because glibc/sysdeps/mach/hurd/statfs64.c does not appear to access /proc. /proc doesn't exist on GNU, never did. Cheers.

Re: coreutils-6.0 on BeOS (9)

2006-08-24 Thread Bruno Haible
Jim Meyering asks: > I'm curious: what's your motivation for using it? Portability testing. Through the BeOS porting, I found the following problems not limited to BeOS: - check-AUTHORS: applies to any platform that doesn't build all of the programs. - mbchar.h problem: applies to any plat

Re: coreutils-6.0 on BeOS (9)

2006-08-24 Thread Jim Meyering
Hi Bruno, Thanks for all of your recent BeOS porting work. We've received very few reports about BeOS problems, other than yours. I'm curious: what's your motivation for using it? Bruno Haible <[EMAIL PROTECTED]> wrote: ... > After producing this patch, I noticed that the replacement 'statfs' tha

Re: coreutils-6.0 on BeOS (9)

2006-08-23 Thread Paul Eggert
Bruno Haible <[EMAIL PROTECTED]> writes: > The 'df' program needs a small adjustment so that the 'struct statvfs' of > BeOS can be used. And the 'stat' program needs porting too; here the > 'struct statvfs' cannot be used, because it does not have a f_type Thanks. While testing this on GNU/Linux

coreutils-6.0 on BeOS (9)

2006-08-23 Thread Bruno Haible
The 'df' program needs a small adjustment so that the 'struct statvfs' of BeOS can be used. And the 'stat' program needs porting too; here the 'struct statvfs' cannot be used, because it does not have a f_type or f_fstypename or similar field. Btw, the "#ifdef __GLIBC__" in m4/fsusage.m4 looks wro

Re: coreutils-6.0 on BeOS (6)

2006-08-23 Thread Simon Josefsson
Bruno Haible <[EMAIL PROTECTED]> writes: > The reason is that BeOS does not have PF_INET, only AF_INET, but usually they > have the same values. Also it doesn't have PF_UNSPEC. Does it AF_UNSPEC? Did you grep the entire /usr/include tree to find PF_INET or PF_UNSPEC? Maybe they are in some non-

Re: coreutils-6.0 on BeOS (5)

2006-08-22 Thread Paul Eggert
Bruno Haible <[EMAIL PROTECTED]> writes: > 2006-08-19 Bruno Haible <[EMAIL PROTECTED]> > > * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if or >exists. > * lib/readutmp.h: Skip most definitions if neither nor >exists. Thanks for the port; I installed that

coreutils-6.0 on BeOS (6)

2006-08-22 Thread Bruno Haible
Hi Simon, Compiling coreutils-6.0 on BeOS gives this: source='getaddrinfo.c' object='getaddrinfo.o' libtool=no \ DEPDIR=.deps depmode=gcc /bin/sh ../build-aux/depcomp \ gcc -DHAVE_CONFIG_H -DLIBDIR=\"/boot/home/config/lib\" -I. -I. -I.. -I.. -I. -Wall -I/boot/h

coreutils-6.0 on BeOS (5)

2006-08-22 Thread Bruno Haible
On platforms without or , there is no need for the read_utmp function (since 'pinky', 'users', 'who' are not built and uptime.c doesn't call read_utmp with the previous proposed patch). Here are minimal changes to avoid compilation errors in readutmp.h (still included by uptime.c) and readutmp.c.

Re: coreutils-6.0 on BeOS (3)

2006-08-22 Thread Bruno Haible
Paul Eggert wrote: > Also, we need to define HAVE_FCHMOD when fchmod is available. Yes, sorry. Coreutils already provides the HAVE_FCHMOD in config.h.in; I had forgotten that dirchownmod is also in gnulib. Bruno

Re: coreutils-6.0 on BeOS (3)

2006-08-21 Thread Paul Eggert
Bruno Haible <[EMAIL PROTECTED]> writes: > ! #if HAVE_FCHMOD > ! if (0 <= fd) > ! result = fchmod (fd, chmod_mode); > ! else > ! #endif Thanks for the report and fix. A couple of things: first, I prefer to avoid #if in C functions when it's easy. Also, we need to

coreutils-6.0 on BeOS (3)

2006-08-21 Thread Bruno Haible
Compiling coreutils-6.0 on BeOS, we have this warning: source='dirchownmod.c' object='dirchownmod.o' libtool=no \ DEPDIR=.deps depmode=gcc /bin/sh ../build-aux/depcomp \ gcc -DHAVE_CONFIG_H -DLIBDIR=\"/boot/home/config/lib\" -I. -I. -I.. -I.. -I. -Wall -I/boot/h

coreutils-6.0 on BeOS (2)

2006-08-21 Thread Bruno Haible
Compiling coreutils-6.0 on BeOS leads to a compilation error: source='strstr.c' object='strstr.o' libtool=no \ DEPDIR=.deps depmode=gcc /bin/sh ../build-aux/depcomp \ gcc -DHAVE_CONFIG_H -DLIBDIR=\"/boot/home/config/lib\" -I. -I. -I.. -I.. -I. -Wall -I/boot/h

Re: coreutils-6.0: compilation failure on NetBSD 3.0 (1)

2006-08-18 Thread Paul Eggert
Bruno Haible <[EMAIL PROTECTED]> writes: > 2006-08-18 Bruno Haible <[EMAIL PROTECTED]> > > Add support for NetBSD 3.0. > * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for > sys/statvfs.h. When getmntinfo was found, check its declaration and > set either MO

Re: coreutils 6.0 patch for gethrxtime.m4

2006-08-18 Thread Jim Meyering
Paul Eggert <[EMAIL PROTECTED]> wrote: > Thanks; I installed that patch into gnulib too, Thanks. > since I'm working on getting coreutils to use gnulib-tool. Great!

Re: coreutils 6.0 patch for gethrxtime.m4

2006-08-18 Thread Paul Eggert
Thanks; I installed that patch into gnulib too, since I'm working on getting coreutils to use gnulib-tool. For gnulib readers, here's the just-installed patch: http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00141.html

coreutils-6.0: compilation failure on NetBSD 3.0 (1)

2006-08-18 Thread Bruno Haible
Hi, On NetBSD 3.0/x86, coreutils fail to compile like this: if gcc -std=gnu99 -DHAVE_CONFIG_H -DLIBDIR=\"/home/bruno/gnu/lib\" -I. -I. -I.. -I.. -I. -I/home/bruno/gnu/include -g -O2 -MT mountlist.o -MD -MP -MF ".deps/mountlist.Tpo" -c -o mountlist.o mountlist.c; then mv -f ".deps/mountlis

Re: coreutils 6.0

2006-08-18 Thread Jim Meyering
Jim Meyering <[EMAIL PROTECTED]> wrote: > "Gabor Z. Papp" <[EMAIL PROTECTED]> wrote: > ... >> Tried to compile coreutils 6.0 from alpha.gnu, and here is the result. > ... >> gcc -std=gnu99 -g -O2 -Wl,--as-needed -o dd dd.o ../lib/libcoreu

Re: coreutils 6.0

2006-08-18 Thread Jim Meyering
"Gabor Z. Papp" <[EMAIL PROTECTED]> wrote: ... > Tried to compile coreutils 6.0 from alpha.gnu, and here is the result. ... > gcc -std=gnu99 -g -O2 -Wl,--as-needed -o dd dd.o ../lib/libcoreutils.a > ../lib/libcoreutils.a > ../lib/libcoreutils.a(gettime.o): In fun

FYI, coreutils-6.0 released

2006-08-15 Thread Jim Meyering
FYI, I've just released coreutils-6.0. Here's the announcement: http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7725