NetBSD Problem Report #53867

From dholland@netbsd.org  Mon Jan 14 18:12:23 2019
Return-Path: <dholland@netbsd.org>
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 2DE1E7A1B5
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 14 Jan 2019 18:12:23 +0000 (UTC)
Message-Id: <20190114181222.CF62E84DCA@mail.netbsd.org>
Date: Mon, 14 Jan 2019 18:12:22 +0000 (UTC)
From: dholland@NetBSD.org
Reply-To: dholland@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: lang/erlang-doc fails after update
X-Send-Pr-Version: 3.95

>Number:         53867
>Category:       pkg
>Synopsis:       lang/erlang-doc fails after update
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gutteridge
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 14 18:15:00 +0000 2019
>Closed-Date:    Mon Apr 27 21:07:24 +0000 2020
>Last-Modified:  Mon Apr 27 21:07:24 +0000 2020
>Originator:     David A. Holland
>Release:        NetBSD 7.2_STABLE, pkgsrc 20190113
>Organization:
>Environment:
System: NetBSD bantha 7.2_STABLE NetBSD 7.2_STABLE (BANTHA) #7: Sat Nov  3 22:15:43 EDT 2018  root@bantha:/usr/src/sys/arch/i386/compile/BANTHA i386
Architecture: i386
Machine: i386
>Description:

erlang-doc uses lang/erlang/Makefile.versions to get the Erlang
version, so it expects to find a distfile erlang/otp_doc_html_21.2.tar.gz
...but distinfo contains erlang/otp_doc_html_21.0.tar.gz.

Hence,
===> Checking for vulnerabilities in erlang-doc-21.2
checksum: No checksum recorded for erlang/otp_doc_html_21.2.tar.gz
ERROR: Make sure the Makefile and checksum file (/usr/pkgsrc/lang/erlang-doc/distinfo)
ERROR: are up to date.  If you want to override this check, type
ERROR: "/usr/bin/make NO_CHECKSUM=yes [other args]".
*** Error code 1

>How-To-Repeat:
make

>Fix:
update distinfo after validating the new distfile.
(erlang-man will need the same treatment)

>Release-Note:

>Audit-Trail:
From: "David H. Gutteridge" <david@gutteridge.ca>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/53867 (lang/erlang-doc fails after update)
Date: Tue, 22 Jan 2019 01:12:07 -0500

 Separately, there is also a problem that the specific values in the
 erlang versions.mk file are not guaranteed to align with what the
 equivalent "latest" distribution file for erlang-doc contains. For
 example:

 => Generating pre-install file lists
 => Creating installation directories
 cd /home/disciple/pkgsrc/lang/erlang-doc/work && pax -s,lib/cosEvent-/info,, -s,lib/cosEventDomain-/info,, -s,lib/mnesia_session-/info,, -rw doc erts-10.2.2 lib /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/
 pax: Unable to access erts-10.2.2 (No such file or directory)
 pax: WARNING! These file names were not selected:
 erts-10.2.2
 *** Error code 1

 The directory in this example is actually erts-10.2 vs. erts-10.2.2.
 I took a look at an older example of a release, and it too followed
 this pattern. So, while this is probably an unsafe assumption, I tried
 to work around this mismatch to see what would happen, applying
 "erts-${VERSION.erts:C/\.[0-9]$//}".

 This exposes more mismatches:

 => Checking file-check results for erlang-doc-21.2
 ERROR: ************************************************************
 ERROR: The following files are in the PLIST but not in /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg:
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/compiler-7.3.1/doc/html/compile.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/compiler-7.3.1/doc/html/compiler.eix
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/compiler-7.3.1/doc/html/index.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/compiler-7.3.1/doc/html/notes.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/compiler-7.3.1/doc/html/release_notes.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/compiler-7.3.1/doc/pdf/compiler-7.3.1.pdf
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/compiler-7.3.1/info
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.3/doc/html/SSH_app.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.3/doc/html/SSH_protocols.png
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.3/doc/html/configure_algos.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.3/doc/html/index.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.3/doc/html/introduction.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.3/doc/html/notes.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.3/doc/html/release_notes.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.3/doc/html/ssh.eix
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.3/doc/html/ssh.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.3/doc/html/ssh_client_channel.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.3/doc/html/ssh_client_key_api.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.3/doc/html/ssh_connection.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.3/doc/html/ssh_server_channel.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.3/doc/html/ssh_server_key_api.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.3/doc/html/ssh_sftp.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.3/doc/html/ssh_sftpd.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.3/doc/html/users_guide.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.3/doc/html/using_ssh.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.3/doc/pdf/ssh-4.7.3.pdf
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.3/info
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1.2/doc/html/index.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1.2/doc/html/notes.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1.2/doc/html/release_notes.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1.2/doc/html/ssl.eix
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1.2/doc/html/ssl.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1.2/doc/html/ssl_app.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1.2/doc/html/ssl_crl_cache.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1.2/doc/html/ssl_crl_cache_api.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1.2/doc/html/ssl_distribution.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1.2/doc/html/ssl_introduction.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1.2/doc/html/ssl_protocol.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1.2/doc/html/ssl_session_cache_api.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1.2/doc/html/users_guide.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1.2/doc/html/using_ssl.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1.2/doc/pdf/ssl-9.1.2.pdf
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1.2/info
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.19/doc/html/index.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.19/doc/html/motorcycles.txt
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.19/doc/html/motorcycles2.txt
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.19/doc/html/motorcycles2html.erl
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.19/doc/html/motorcycles_dtd.txt
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.19/doc/html/new_motorcycles.txt
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.19/doc/html/new_motorcycles2.txt
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.19/doc/html/notes.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.19/doc/html/people.txt
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.19/doc/html/people2.txt
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.19/doc/html/release_notes.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.19/doc/html/result_export.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.19/doc/html/result_xs.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.19/doc/html/stylesheet.css
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.19/doc/html/users_guide.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.19/doc/html/xmerl.eix
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.19/doc/html/xmerl.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.19/doc/html/xmerl_eventp.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.19/doc/html/xmerl_examples.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.19/doc/html/xmerl_sax_parser.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.19/doc/html/xmerl_scan.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.19/doc/html/xmerl_ug.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.19/doc/html/xmerl_xpath.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.19/doc/html/xmerl_xs.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.19/doc/html/xmerl_xs_examples.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.19/doc/html/xmerl_xsd.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.19/doc/pdf/xmerl-1.3.19.pdf
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.19/info
 ERROR: ************************************************************
 ERROR: The following files are in /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg but not in the PLIST:
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/doc/pdf/otp-system-documentation-10.2.pdf
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/compiler-7.3/doc/html/compile.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/compiler-7.3/doc/html/compiler.eix
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/compiler-7.3/doc/html/index.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/compiler-7.3/doc/html/notes.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/compiler-7.3/doc/html/release_notes.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/compiler-7.3/doc/pdf/compiler-7.3.pdf
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/compiler-7.3/info
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/crypto-4.4/doc/html/algorithm_details.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.2/doc/html/SSH_app.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.2/doc/html/SSH_protocols.png
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.2/doc/html/configure_algos.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.2/doc/html/index.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.2/doc/html/introduction.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.2/doc/html/notes.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.2/doc/html/release_notes.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.2/doc/html/ssh.eix
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.2/doc/html/ssh.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.2/doc/html/ssh_client_channel.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.2/doc/html/ssh_client_key_api.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.2/doc/html/ssh_connection.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.2/doc/html/ssh_file.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.2/doc/html/ssh_server_channel.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.2/doc/html/ssh_server_key_api.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.2/doc/html/ssh_sftp.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.2/doc/html/ssh_sftpd.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.2/doc/html/terminology.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.2/doc/html/users_guide.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.2/doc/html/using_ssh.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.2/doc/pdf/ssh-4.7.2.pdf
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssh-4.7.2/info
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1/doc/html/index.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1/doc/html/notes.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1/doc/html/release_notes.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1/doc/html/ssl.eix
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1/doc/html/ssl.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1/doc/html/ssl_app.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1/doc/html/ssl_crl_cache.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1/doc/html/ssl_crl_cache_api.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1/doc/html/ssl_distribution.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1/doc/html/ssl_introduction.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1/doc/html/ssl_protocol.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1/doc/html/ssl_session_cache_api.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1/doc/html/users_guide.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1/doc/html/using_ssl.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1/doc/pdf/ssl-9.1.pdf
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/ssl-9.1/info
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.18/doc/html/index.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.18/doc/html/motorcycles.txt
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.18/doc/html/motorcycles2.txt
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.18/doc/html/motorcycles2html.erl
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.18/doc/html/motorcycles_dtd.txt
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.18/doc/html/new_motorcycles.txt
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.18/doc/html/new_motorcycles2.txt
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.18/doc/html/notes.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.18/doc/html/people.txt
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.18/doc/html/people2.txt
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.18/doc/html/release_notes.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.18/doc/html/result_export.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.18/doc/html/result_xs.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.18/doc/html/stylesheet.css
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.18/doc/html/users_guide.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.18/doc/html/xmerl.eix
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.18/doc/html/xmerl.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.18/doc/html/xmerl_eventp.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.18/doc/html/xmerl_examples.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.18/doc/html/xmerl_sax_parser.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.18/doc/html/xmerl_scan.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.18/doc/html/xmerl_ug.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.18/doc/html/xmerl_xpath.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.18/doc/html/xmerl_xs.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.18/doc/html/xmerl_xs_examples.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.18/doc/html/xmerl_xsd.html
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.18/doc/pdf/xmerl-1.3.18.pdf
 ERROR:         /home/disciple/pkgsrc/lang/erlang-doc/work/.destdir/usr/pkg/lib/erlang/lib/xmerl-1.3.18/info
 *** Error code 1

 It appears the means of determining internal component versioning needs
 to be decoupled from erlang proper.

 Dave


From: "David H. Gutteridge" <david@gutteridge.ca>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/53867 (lang/erlang-doc fails after update)
Date: Sat, 26 Jan 2019 18:49:22 -0500

 On Tue, 2019-01-22 at 01:12 -0500, David H. Gutteridge wrote:
 > Separately, there is also a problem that the specific values in the
 > erlang versions.mk file are not guaranteed to align with what the
 > equivalent "latest" distribution file for erlang-doc contains. For
 > example:

 The update to erlang a couple of hours ago broke this package again,
 since now the inets component is at 7.0.4 in the latest erlang patch
 set, but 7.0.3 in the latest doc distribution (since doc doesn't get
 updated at the same frequency upstream).

 The safest thing to do is simply break all the version references in
 erlang-doc's PLIST, and leave these packages more-or-less completely
 decoupled, so this doesn't keep happening. I'll do this if there are
 no objections. (The exception being, the DUPLICATE_FILES settings in
 the erlang-doc make file need to remain, so it still needs to depend
 on erlang's Makefile.versions.)

 Dave


Responsible-Changed-From-To: pkg-manager->gutteridge
Responsible-Changed-By: gutteridge@NetBSD.org
Responsible-Changed-When: Mon, 25 Mar 2019 03:04:38 +0000
Responsible-Changed-Why:
Take.


From: "David H. Gutteridge" <david@gutteridge.ca>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/53867 (lang/erlang-doc fails after update)
Date: Sun, 24 Mar 2019 23:23:18 -0400

 I think the best way to handle this is to use a dynamic PLIST for those
 parts of the package that have regularly-changing version numbers
 embedded in their paths. We can't rely on the equivalent versions in
 lang/erlang, as they may vary between the packages. I borrowed from the
 same approach used in databases/couchdb (which deals with the same
 problem). The remaining PLIST file would be accordingly pruned to just
 the entries that aren't part of the dynamically generated list.

 (Separately, the DUPLICATE_FILES special handling is no longer
 required, because those duplicates no longer exist in erlang-doc. Also
 separately, couchdb has its own issue at present. If this is good here,
 I can look at that next.)

 Index: Makefile
 ===================================================================
 RCS file: /cvsroot/pkgsrc/lang/erlang-doc/Makefile,v
 retrieving revision 1.14
 diff -u -r1.14 Makefile
 --- Makefile    23 Jan 2019 12:46:22 -0000      1.14
 +++ Makefile    25 Mar 2019 03:06:24 -0000
 @@ -19,15 +19,20 @@

  USE_TOOLS+=            pax

 -# these files are already installed by ../../lang/erlang:
 -DUPLICATE_FILES=       lib/cosEvent-${VERSION.cosEvent}/info
 -DUPLICATE_FILES+=      lib/cosEventDomain-${VERSION.cosEventDomain}/info
 -DUPLICATE_FILES+=      lib/mnesia_session-${VERSION.mnesia_session}/info
 -
  INSTALLATION_DIRS=     lib/erlang

 +# The latest Erlang documentation release may not contain the exact same
 +# versioning of internal components as the latest core release at any given
 +# time, so we can't rely on lang/erlang to source those version strings.
 +GENERATE_PLIST=                cd ${DESTDIR}${PREFIX}; \
 +                       ${FIND} ${INSTALLATION_DIRS}/erts-* ${INSTALLATION_DIRS}/lib \
 +                       \( -type f -o -type l \) -print | ${SORT} -u;
 +# Ignore dynamically-generated parts when doing print-PLIST
 +PRINT_PLIST_AWK+=      /^lib\/erlang\/erts-/ { next; }
 +PRINT_PLIST_AWK+=      /^lib\/erlang\/lib\// { next; }
 +
  do-install:
 -       cd ${WRKDIR} && pax ${DUPLICATE_FILES:=-s,%,,} -rw doc erts-* lib ${DESTDIR}${PREFIX}/lib/erlang/
 +       cd ${WRKDIR} && ${PAX} -rw doc erts-* lib ${DESTDIR}${PREFIX}/lib/erlang/

  .include "../../lang/erlang/Makefile.versions"

 Dave


From: Leonardo Taccari <leot@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/53867 (lang/erlang-doc fails after update)
Date: Mon, 25 Mar 2019 12:26:25 +0100

 Hello David,

 David H. Gutteridge writes:
 >  [...]
 >  I think the best way to handle this is to use a dynamic PLIST for those
 >  parts of the package that have regularly-changing version numbers
 >  embedded in their paths. We can't rely on the equivalent versions in
 >  lang/erlang, as they may vary between the packages. I borrowed from the
 >  same approach used in databases/couchdb (which deals with the same
 >  problem). The remaining PLIST file would be accordingly pruned to just
 >  the entries that aren't part of the dynamically generated list.
 >  [...]

 If that's the case why not avoid using ${VERSION.*} variables in
 lang/erlang-doc/PLIST? (i.e. always unconditionally expand the
 values of them?)

From: "David H. Gutteridge" <david@gutteridge.ca>
To: gnats-bugs@netbsd.org
Cc: leot@netbsd.org
Subject: Re: pkg/53867 (lang/erlang-doc fails after update)
Date: Mon, 25 Mar 2019 09:18:41 -0400

 On Mon, 2019-03-25 at 11:30 +0000, Leonardo Taccari wrote:
 > The following reply was made to PR pkg/53867; it has been noted by GNATS.
 > 
 > From: Leonardo Taccari <leot@NetBSD.org>
 > To: gnats-bugs@netbsd.org
 > Cc: 
 > Subject: Re: pkg/53867 (lang/erlang-doc fails after update)
 > Date: Mon, 25 Mar 2019 12:26:25 +0100
 > 
 >  Hello David,
 >  
 >  David H. Gutteridge writes:
 >  >  [...]
 >  >  I think the best way to handle this is to use a dynamic PLIST for those
 >  >  parts of the package that have regularly-changing version numbers
 >  >  embedded in their paths. We can't rely on the equivalent versions in
 >  >  lang/erlang, as they may vary between the packages. I borrowed from the
 >  >  same approach used in databases/couchdb (which deals with the same
 >  >  problem). The remaining PLIST file would be accordingly pruned to just
 >  >  the entries that aren't part of the dynamically generated list.
 >  >  [...]
 >  
 >  If that's the case why not avoid using ${VERSION.*} variables in
 >  lang/erlang-doc/PLIST? (i.e. always unconditionally expand the
 >  values of them?)

 Basically, I was trying to follow a similar approach to what the
 maintainer (fhajny@) had already used in a related package (databases/
 couchdb), which is where I took that snippet from. It may be less
 necessary here than there, but it seemed (to me) in keeping with the
 style used in other Erlang-related packages.

 (Part of what I took that style to be being: the desire to reduce the
 amount of mechanical work needed every time a series of related
 packages are updated. This is a broader topic, e.g. jperkin@ brought up
 a different kind of example of this in PR pkg/53975 recently, within
 one package, where there is a lot of conditional content that kept
 getting lost on updates.)

 If the preference is to do it the simpler way, with a manual PLIST, I'm
 not going to argue about it. It would be nice to close the PR, either
 way. :)

 Dave


State-Changed-From-To: open->closed
State-Changed-By: gutteridge@NetBSD.org
State-Changed-When: Mon, 27 Apr 2020 21:07:24 +0000
State-Changed-Why:
Dynamic PLIST generation is discouraged. I've fixed this breakage the last two times it's happened.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.