Subject: pkg/21977: pkgsrc/netpbm fails to install due to bad tar flags
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rquinn@sec.sprint.net>
List: netbsd-bugs
Date: 06/24/2003 15:14:47
>Number:         21977
>Category:       pkg
>Synopsis:       pkgsrc/netpbm fails to install due to bad tar flags
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 24 15:15:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Rob Quinn
>Release:        NetBSD-current as of 24 June 2003
>Organization:
>Environment:
NetBSD strike.sec.sprint.net 1.6U NetBSD 1.6U (STRIKE) #201: Tue Jun 24 07:17:02 EDT 2003  rquinn@strike.sec.sprint.net:/usr/obj/STRIKE i386

>Description:
pkgsrc/netpbm from this morning fails to install.

>How-To-Repeat:
struck:/usr/pkgsrc/graphics/netpbm #make install
===> Checking for vulnerabilities in netpbm-10.11.8
===> Installing for netpbm-10.11.8
/bin/rm -fr /usr/obj/pkg/graphics/netpbm/work/staging
[....]
while read DIR; do                               test -d "/usr/pkg/${DIR}" ||            echo "@dirrm ${DIR}";                        done >>/usr/obj/pkg/graphics/netpbm/work/PLIST_STAGE &&             /bin/tar cf - * | /bin/tar xpCf /usr/pkg -
tar: Failed open to read on /dev/nrst0 (Device not configured)
tar: Unexpected EOF on archive file
tar: Failed write to archive volume: 1 (Broken pipe)
tar: Unexpected EOF on archive file
tar: Unexpected EOF on archive file
tar: Unexpected EOF on archive file
tar: WARNING! These file names were not selected:
include
lib
man
share
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/graphics/netpbm
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/graphics/netpbm
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/graphics/netpbm
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/graphics/netpbm

>Fix:
strike:/usr/pkgsrc/graphics/netpbm #cvs diff Makefile 
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/netpbm/Makefile,v
retrieving revision 1.72
diff -c -r1.72 Makefile
*** Makefile    2003/06/11 20:50:55     1.72
--- Makefile    2003/06/24 15:11:23
***************
*** 57,63 ****
          ${TEST} -d "${PREFIX}/$${DIR}" ||             \
            ${ECHO} "@dirrm $${DIR}";                   \
        done >>${PLIST_SRC} &&                          \
!       ${GTAR} cf - * | ${GTAR} xpCf ${PREFIX} -
        ${RM} -fr ${STAGEDIR}
  
  .include "../../graphics/png/buildlink2.mk"
--- 57,63 ----
          ${TEST} -d "${PREFIX}/$${DIR}" ||             \
            ${ECHO} "@dirrm $${DIR}";                   \
        done >>${PLIST_SRC} &&                          \
!       ${GTAR} cf - * | ${GTAR} -C ${PREFIX} -xpf -
        ${RM} -fr ${STAGEDIR}
  
  .include "../../graphics/png/buildlink2.mk"

>Release-Note:
>Audit-Trail:
>Unformatted: