NetBSD Problem Report #54468

From paul@whooppee.com  Thu Aug 15 18:45:59 2019
Return-Path: <paul@whooppee.com>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 0B0307A184
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 15 Aug 2019 18:45:58 +0000 (UTC)
Message-Id: <20190815184526.2A07230F2C3@speedy.whooppee.com>
Date: Thu, 15 Aug 2019 11:45:26 -0700 (PDT)
From: paul@whooppee.com
Reply-To: paul@whooppee.com
To: gnats-bugs@NetBSD.org
Subject: Wrong tar(1) man page getting installed
X-Send-Pr-Version: 3.95

>Number:         54468
>Category:       bin
>Synopsis:       Wrong version of tar(1) man page gets installed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 15 18:50:00 +0000 2019
>Closed-Date:    Fri Aug 16 12:14:14 +0000 2019
>Last-Modified:  Wed Nov 13 13:00:01 +0000 2019
>Originator:     Paul Goyette
>Release:        NetBSD 9.99.4
>Organization:
+--------------------+--------------------------+-----------------------+
| Paul Goyette       | PGP Key fingerprint:     | E-mail addresses:     |
| (Retired)          | FA29 0E3B 35AF E8AE 6651 | paul@whooppee.com     |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoyette@netbsd.org   |
+--------------------+--------------------------+-----------------------+
>Environment:


System: NetBSD speedy.whooppee.com 9.99.4 NetBSD 9.99.4 (SPEEDY 2019-08-08 19:47:57 UTC) #1: Thu Aug 8 20:23:24 UTC 2019 paul@speedy.whooppee.com:/build/netbsd-local/obj/amd64/sys/arch/amd64/compile/SPEEDY amd64
Architecture: x86_64
Machine: amd64
>Description:
Recent builds (with sources from after the change to MKBSDTAR=yes) are
still installing the tar.1 man page from src/bin/pax rather than the
page from src/external/bsd/libarchive/

In actuality it seems that _both_ versions of the man page are being
installed, but the pax-version comes last.

Here's my build.sh command;  note use of -n0 for maximum noise/detail
and -j1.  The -j1 might be significant, since the log below clearly
shows that two different copies of tar.1 were installed.  Since this
problem doesn't seem to occur on production releng builds, it is quite
possible that, with more parallel jobs, the two installs could occur
in a different order.

./build.sh \
	-T /build/netbsd-compat/tools/x86_64/amd64 \
	-D /build/netbsd-compat/dest/amd64 \
	-O /build/netbsd-compat/obj/amd64 \
	-R /build/netbsd-compat/release \
	-V RELEASEMACHINEDIR=amd64 -V MKDEBUG=yes -V MKKDEBUG=yes \
	-U -N2 -m amd64 -j1 release


And here's the result of 'grep tar\.1 release.log'


(cd /build/netbsd-compat/src_ro/external/bsd/libarchive/bin/tar && rm -f tar.1 a.out [Ee]rrs mklog core *.core .gdbinit   tar tar.debug bsdtar.o cmdline.o creation_set.o read.o subst.o util.o write.o  bsdtar.ln cmdline.ln creation_set.ln read.ln subst.ln util.ln write.ln || true) 
/build/netbsd-compat/tools/x86_64/amd64/bin/nbcat /build/netbsd-compat/src_ro/external/bsd/libarchive/dist/tar/bsdtar.1 > tar.1
if test "" != "yes"; then  /build/netbsd-compat/tools/x86_64/amd64/bin/nbmandoc -Thtml -Oman=../html%S/%N.html,style=../style.css  tar.1 > tar.html1.tmp &&  mv -f tar.html1.tmp tar.html1;  else  GROFF_ENCODING=  GROFF_BIN_PATH=/build/netbsd-compat/tools/x86_64/amd64/lib/groff  GROFF_FONT_PATH=/build/netbsd-compat/tools/x86_64/amd64/share/groff/site-font:/build/netbsd-compat/tools/x86_64/amd64/share/groff/font  GROFF_TMAC_PATH=/build/netbsd-compat/tools/x86_64/amd64/share/groff/site-tmac:/build/netbsd-compat/tools/x86_64/amd64/share/groff/tmac /build/netbsd-compat/tools/x86_64/amd64/bin/nbgroff  -Tlatin1 -mdoc2html tar.1   > tar.html1.tmp && mv -f tar.html1.tmp tar.html1;  fi
if test "" != "yes"; then  /build/netbsd-compat/tools/x86_64/amd64/bin/nbmandoc -Thtml -Oman=../html%S/%N.html,style=../style.css  /build/netbsd-compat/src_ro/bin/pax/tar.1 > tar.html1.tmp &&  mv -f tar.html1.tmp tar.html1;  else  GROFF_ENCODING=  GROFF_BIN_PATH=/build/netbsd-compat/tools/x86_64/amd64/lib/groff  GROFF_FONT_PATH=/build/netbsd-compat/tools/x86_64/amd64/share/groff/site-font:/build/netbsd-compat/tools/x86_64/amd64/share/groff/font  GROFF_TMAC_PATH=/build/netbsd-compat/tools/x86_64/amd64/share/groff/site-tmac:/build/netbsd-compat/tools/x86_64/amd64/share/groff/tmac /build/netbsd-compat/tools/x86_64/amd64/bin/nbgroff  -Tlatin1 -mdoc2html /build/netbsd-compat/src_ro/bin/pax/tar.1   > tar.html1.tmp && mv -f tar.html1.tmp tar.html1;  fi
#   install  /build/netbsd-compat/dest/amd64/usr/share/man/man1/tar.1
/build/netbsd-compat/tools/x86_64/amd64/bin/x86_64--netbsd-install -U -M /build/netbsd-compat/dest/amd64/METALOG -D /build/netbsd-compat/dest/amd64 -h sha256 -N /build/netbsd-compat/src_ro/etc -c  -r -o root -g wheel -m 444  tar.1 /build/netbsd-compat/dest/amd64/usr/share/man/man1/tar.1
#   install  /build/netbsd-compat/dest/amd64/usr/share/man/man1/tar.1
/build/netbsd-compat/tools/x86_64/amd64/bin/x86_64--netbsd-install -U -M /build/netbsd-compat/dest/amd64/METALOG -D /build/netbsd-compat/dest/amd64 -h sha256 -N /build/netbsd-compat/src_ro/etc -c  -r -o root -g wheel -m 444  /build/netbsd-compat/src_ro/bin/pax/tar.1 /build/netbsd-compat/dest/amd64/usr/share/man/man1/tar.1

>How-To-Repeat:

>Fix:


>Release-Note:

>Audit-Trail:
From: "Valeriy E. Ushakov" <uwe@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/54468 CVS commit: src/bin/pax
Date: Thu, 15 Aug 2019 21:05:16 +0000

 Module Name:	src
 Committed By:	uwe
 Date:		Thu Aug 15 21:05:16 UTC 2019

 Modified Files:
 	src/bin/pax: Makefile

 Log Message:
 Install manual pages for tar and cpio only if ${MKBSDTAR} == "no"
 PR bin/54468


 To generate a diff of this commit:
 cvs rdiff -u -r1.39 -r1.40 src/bin/pax/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: pgoyette@NetBSD.org
State-Changed-When: Fri, 16 Aug 2019 12:14:14 +0000
State-Changed-Why:
Confirmed fixed. Thanks!


From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/54468 CVS commit: [netbsd-9] src/bin/pax
Date: Wed, 13 Nov 2019 12:56:22 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Wed Nov 13 12:56:22 UTC 2019

 Modified Files:
 	src/bin/pax [netbsd-9]: Makefile

 Log Message:
 Pull up following revision(s) (requested by nakayama in ticket #421):

 	bin/pax/Makefile: revision 1.40

 Install manual pages for tar and cpio only if ${MKBSDTAR} == "no"
 PR bin/54468


 To generate a diff of this commit:
 cvs rdiff -u -r1.39 -r1.39.50.1 src/bin/pax/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.