Subject: pkg/25390: Place of binary packages not in sync between bsd.pkg.mk and genreadme.awk
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <krille@users.sf.net>
List: pkgsrc-bugs
Date: 04/29/2004 15:12:47
>Number:         25390
>Category:       pkg
>Synopsis:       Place of binary packages not in sync between bsd.pkg.mk and genreadme.awk
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 29 15:13:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Christian Hattemer
>Release:        1.6.2
>Organization:
>Environment:
NetBSD webster 1.6.2_STABLE NetBSD 1.6.2_STABLE (WEBSTER) #1: Wed Apr 28 18:20:03 CEST 2004     krille@webster:/usr/src/sys/arch/i386/compile/WEBSTER i386
>Description:
When the packages directory resides outside of /usr/pkgsrc (because you always think "Hm, there were files I still needed" *after* deleting the directory) bsd.pkg.mk (which puts the packages into the packages directory during make package) and genreadme.awk (which creates the README.html files that should list the available packages) are not in sync.

This means that no packages are listed in README.html files, even if they are available, because genreadme.awk doesn't see them.

I have PACKAGES?=/usr/local/packages/${OS_VERSION}/${MACHINE_ARCH}
this seems the best way because you only need to fix genreadme.awk then.
>How-To-Repeat:
Set $PACKAGES to a directory outside of /usr/pkgsrc
create some binary packages
create README.html
see that no binary packages are listed
>Fix:
This patch will hack genreadme.awk to find the binary packages again.
Of course this is no real solution to the problem.

--- mk/scripts/genreadme.awk	Thu Sep 11 05:39:48 2003
+++ /home/krille/genreadme.awk	Wed Mar 24 14:36:31 2004
@@ -343,8 +343,8 @@
 					vul="<I>(no vulnerabilities known)</I>";
 				}
 			}
-			
-			if (MULTIARCH == "no"){
+# Hack broken MULTIARCH handling (not in sync with bsd.pkg.mk)			
+			if (1){
 				cmd="ls -1 "PACKAGES "/" PKGREPOSITORYSUBDIR "/" wildcard[toppkg] PKG_SUFX " 2>/dev/null";
 				if (debug) {
 				  printf("Checking for binary package with %s\n",

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