pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/40766 (sysutls/mtree fails to build on Linux (with patch?))



The following reply was made to PR pkg/40766; it has been noted by GNATS.

From: Jukka Salmi <j+nbsd%2011.salmi.ch@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: sbd%users.sf.net@localhost
Subject: Re: pkg/40766 (sysutls/mtree fails to build on Linux (with patch?))
Date: Wed, 23 Feb 2011 21:34:13 +0100

 --ikeVEW9yuYc//A+q
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 Hello
 
 Today I noticed the same problem while trying to build mtree on a Linux
 x86_64 system (CentOS 5.5).  While your patch seems to work it's
 probably easier to just not define HAVE_STRUCT_STAT_ST_FLAGS on Linux at
 all -- those file flags don't exist there.
 
 While the attached patch fixes the build on Linux and doesn't break it
 on NetBSD I'm not sure how to fix this correctly...
 
 
 Cheers, Jukka
 
 -- 
 This email fills a much-needed gap in your mailbox.
 
 --ikeVEW9yuYc//A+q
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename=diff
 
 Index: pkgtools/mtree/files/extern.h
 ===================================================================
 RCS file: /cvsroot/pkgsrc/pkgtools/mtree/files/extern.h,v
 retrieving revision 1.4
 diff -u -p -r1.4 extern.h
 --- pkgtools/mtree/files/extern.h      21 Mar 2010 16:30:17 -0000      1.4
 +++ pkgtools/mtree/files/extern.h      23 Feb 2011 20:09:48 -0000
 @@ -38,8 +38,6 @@
  
  #if HAVE_NBTOOL_CONFIG_H
  #include "nbtool_config.h"
 -#else 
 -#define HAVE_STRUCT_STAT_ST_FLAGS 1
  #endif
   
  #include <nbcompat.h>
 Index: pkgtools/mtree/files/stat_flags.c
 ===================================================================
 RCS file: /cvsroot/pkgsrc/pkgtools/mtree/files/stat_flags.c,v
 retrieving revision 1.4
 diff -u -p -r1.4 stat_flags.c
 --- pkgtools/mtree/files/stat_flags.c  6 Nov 2008 02:14:52 -0000       1.4
 +++ pkgtools/mtree/files/stat_flags.c  23 Feb 2011 20:09:48 -0000
 @@ -34,8 +34,6 @@
  #endif
  #if HAVE_NBTOOL_CONFIG_H
  #include "nbtool_config.h"
 -#else
 -#define HAVE_STRUCT_STAT_ST_FLAGS 1
  #endif
  
  #include <nbcompat.h>
 
 --ikeVEW9yuYc//A+q--
 


Home | Main Index | Thread Index | Old Index