pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files - Added __STDC__, __GLIBC__ and...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bf50a22a3dfd
branches:  trunk
changeset: 503820:bf50a22a3dfd
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed Nov 30 20:16:15 2005 +0000

description:
- Added __STDC__, __GLIBC__ and __INTERIX to the list of known macros.
- The macro __sparc__ should be replaced with __sparc, so that the code
  works with SunPro, too.

diffstat:

 pkgtools/pkglint/files/pkglint.pl |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (39 lines):

diff -r 8d0133cff4b5 -r bf50a22a3dfd pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Wed Nov 30 19:53:37 2005 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Wed Nov 30 20:16:15 2005 +0000
@@ -11,7 +11,7 @@
 # Freely redistributable.  Absolutely no warranty.
 #
 # From Id: portlint.pl,v 1.64 1998/02/28 02:34:05 itojun Exp
-# $NetBSD: pkglint.pl,v 1.394 2005/11/30 19:53:37 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.395 2005/11/30 20:16:15 rillig Exp $
 #
 # This version contains lots of changes necessary for NetBSD packages
 # done by:
@@ -1514,6 +1514,8 @@
 
                if ($line->text =~ qr"^\+") {
                        use constant good_macros => PkgLint::Util::array_to_hash(qw(
+                               __STDC__
+
                                __GNUC__ __GNUC_MINOR__
                                __SUNPRO_C
 
@@ -1523,13 +1525,17 @@
 
                                __DragonFly__
                                __FreeBSD__
+                               __INTERIX
                                __linux__
                                __NetBSD__
                                __OpenBSD__
                                __SVR4
                                __sun
+
+                               __GLIBC__
                        ));
                        use constant bad_macros  => {
+                               "__sparc__" => "__sparc",
                                "__sun__" => "__sun",
                                "__svr4__" => "__SVR4",
                        };



Home | Main Index | Thread Index | Old Index