Subject: pkg/25390: Place of binary packages not in sync between and genreadme.awk
To: None <>
From: None <>
List: pkgsrc-bugs
Date: 04/29/2004 15:12:47
>Number:         25390
>Category:       pkg
>Synopsis:       Place of binary packages not in sync between 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
>Originator:     Christian Hattemer
>Release:        1.6.2
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
When the packages directory resides outside of /usr/pkgsrc (because you always think "Hm, there were files I still needed" *after* deleting the directory) (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.
Set $PACKAGES to a directory outside of /usr/pkgsrc
create some binary packages
create README.html
see that no binary packages are listed
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			
+			if (1){
 				cmd="ls -1 "PACKAGES "/" PKGREPOSITORYSUBDIR "/" wildcard[toppkg] PKG_SUFX " 2>/dev/null";
 				if (debug) {
 				  printf("Checking for binary package with %s\n",