Subject: pkg/23834: createbuildlink truncates file names when joining includes
To: None <gnats-bugs@gnats.NetBSD.org>
From: Min Sik Kim <minskim@bawi.org>
List: netbsd-bugs
Date: 12/21/2003 17:26:46
>Number: 23834
>Category: pkg
>Synopsis: createbuildlink truncates file names when joining includes
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Dec 21 23:27:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Min Sik Kim
>Release: NetBSD 1.6ZG
>Organization:
>Environment:
System: NetBSD sulley.infnis.com 1.6ZG NetBSD 1.6ZG (SULLEY) #1: Tue Dec 16 01:53:13 CST 2003 root@sulley.infnis.com:/usr/obj/sys/arch/i386/compile/SULLEY i386
Architecture: i386
Machine: i386
>Description:
createbuildlink prints only two characters of a filename extension for
header files. For example, *.hpp becomes *.hp.
>How-To-Repeat:
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/createbuildlink/Makefile,v
retrieving revision 1.19
diff -u -r1.19 Makefile
--- Makefile 2003/10/15 00:18:05 1.19
+++ Makefile 2003/12/21 23:16:05
@@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.19 2003/10/15 00:18:05 salo Exp $
#
-DISTNAME= createbuildlink-2.8
+DISTNAME= createbuildlink-2.9
WRKSRC= ${WRKDIR}
CATEGORIES= pkgtools sysutils
MASTER_SITES= # Nothing
Index: files/createbuildlink
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/createbuildlink/files/createbuildlink,v
retrieving revision 1.15
diff -u -r1.15 createbuildlink
--- files/createbuildlink 2003/10/15 00:18:05 1.15
+++ files/createbuildlink 2003/12/21 23:16:06
@@ -140,7 +140,7 @@
##
if [ "$join" = "YES" ]; then
for i in `egrep "^include/|/Headers/.*\.h" $PLIST \
- | sed -e 's|[^/]*\.h\([Hhpx+]\)*$|*.h\1|' | sort | uniq`; do
+ | sed -e 's|[^/]*\.h\([Hhpx+]*\)$|*.h\1|' | sort | uniq`; do
echo "BUILDLINK_FILES.$PKGNOVER+= $i"
done
else
>Release-Note:
>Audit-Trail:
>Unformatted: