Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/bcc devel/bcc: add license, document that array[...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3e97a0f34bdb
branches:  trunk
changeset: 430720:3e97a0f34bdb
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun May 03 16:01:27 2020 +0000

description:
devel/bcc: add license, document that array[char] are harmless

diffstat:

 devel/bcc/DESCR    |   2 +-
 devel/bcc/Makefile |  12 ++++++++----
 2 files changed, 9 insertions(+), 5 deletions(-)

diffs (52 lines):

diff -r c9c1d76695e9 -r 3e97a0f34bdb devel/bcc/DESCR
--- a/devel/bcc/DESCR   Sun May 03 15:36:46 2020 +0000
+++ b/devel/bcc/DESCR   Sun May 03 16:01:27 2020 +0000
@@ -5,7 +5,7 @@
 
 The C compiler understands K&R1 syntax, with a few restrictions
 regarding bitfields.  See the file bcc/bcc-cc1/bcc.bugs in the
-${DISTFILE} for Bruce's bug list.
+distfile for Bruce's bug list.
 
 The binutils (assembler and loader) have been renamed to as86 and ld86
 to not conflict with the system's assembler and loader, but they are
diff -r c9c1d76695e9 -r 3e97a0f34bdb devel/bcc/Makefile
--- a/devel/bcc/Makefile        Sun May 03 15:36:46 2020 +0000
+++ b/devel/bcc/Makefile        Sun May 03 16:01:27 2020 +0000
@@ -1,12 +1,13 @@
-# $NetBSD: Makefile,v 1.31 2019/11/03 10:39:06 rillig Exp $
+# $NetBSD: Makefile,v 1.32 2020/05/03 16:01:27 rillig Exp $
 
 DISTNAME=              bcc
-PKGREVISION=           2
+PKGREVISION=           3
 PKGNAME=               bcc-95.3.12
 CATEGORIES=            devel lang
 
 MAINTAINER=            pkgsrc-users%NetBSD.org@localhost
 COMMENT=               Bruce Evans' C compiler (with as and ld); can do 16-bit code
+LICENSE=               gnu-gpl-v2
 
 CONFLICTS=             bin86-[0-9]*
 CONFLICTS+=            dev86-[0-9]*
@@ -27,8 +28,8 @@
 .include "../../mk/bsd.prefs.mk"
 
 # This package has LP64 issues, so must build as 32-bit binary.
-.for P in ${LP64PLATFORMS}
-.  if ${MACHINE_PLATFORM:M${P}}
+.for platform in ${LP64PLATFORMS}
+.  if ${MACHINE_PLATFORM:M${platform}}
 CFLAGS+=               -m32
 LDFLAGS+=              -m32
 .  endif
@@ -36,6 +37,9 @@
 
 CPPFLAGS.DragonFly+=   -D_POSIX_SOURCE
 
+# Lots of array[char] expressions, but all harmless.
+BUILDLINK_TRANSFORM+=  rm:-Werror=char-subscripts
+
 post-extract:
        set -e; \
        cd ${FILESDIR}; \



Home | Main Index | Thread Index | Old Index