strangeness involving e2fsprogs header files

Mike Frysinger vapier at gentoo.org
Mon Jul 3 13:10:08 UTC 2006


On Monday 03 July 2006 09:05, Robert P. J. Day wrote:
> On Mon, 3 Jul 2006, Mike Frysinger wrote:
> > On Monday 03 July 2006 07:53, Robert P. J. Day wrote:
> > >   in my travels through the source code, i wandered across the
> > > fact that a number of header file inclusions under e2fsprogs use
> > > relative pathnames:
> > >
> > >   e2fsprogs/e2p/uuid.c:#include "../ext2fs/ext2_types.h"
> > >   e2fsprogs/e2p/e2p.h:#include "../ext2fs/ext2_fs.h"
> > >   e2fsprogs/blkid/read.c:#include "../uuid/uuid.h"
> > >   e2fsprogs/ext2fs/mkjournal.c:#include "../e2p/e2p.h"
> > >   e2fsprogs/ext2fs/mkjournal.c:#include "../e2fsck.h"
> >
> > this was done on purpose ... since the build system tends to be on
> > the fragile side, using paths such as these:
>
> not to belabour this point, but it would seem to me that hard-coding
> filenames which might break if anything is moved around is actually
> more "fragile" than just defining the appropriate preprocessor
> directives to handle this situation in general, no?

moving things around would break a lot more than the headers
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20060703/18059ff9/attachment-0002.pgp 


More information about the busybox mailing list