NetBSD Problem Report #45061

From  Tue Jun 14 14:18:59 2011
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id 9FAAB63C563
	for <>; Tue, 14 Jun 2011 14:18:59 +0000 (UTC)
Message-Id: <>
Date: Tue, 14 Jun 2011 14:18:58 +0000 (UTC)
Subject: pkgtools/bootstrap-mk-files not processing ${OPSYS}
X-Send-Pr-Version: www-1.0

>Number:         45061
>Category:       pkg
>Synopsis:       pkgtools/bootstrap-mk-files not processing ${OPSYS}
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 14 14:20:00 +0000 2011
>Closed-Date:    Fri Jun 17 11:01:13 +0000 2011
>Last-Modified:  Fri Jun 17 11:05:02 +0000 2011
>Originator:     Thomas Cort
>Release:        N/A
Minix 3.2.0 i686
OS specific makefiles in files/mods, if they exist, 
get installed instead of the default makefiles in 
files/. In files/ there is a special case
for handling It looks for
mods/${OPSYS}, but it should really look for
mods/${OPSYS} mods/ 
and mods/ exist, but are never
be processed. There are no files matching

We discovered this issue when porting pkgsrc to Minix 
because Minix has it's own mods/ file.

This patch was moved from pkg/45045 so that the PR would
only deal with one problem.
On an IRIX or OpenBSD system, or a Minix system with the
minix pkgsrc repository, run the following commands...

cd /usr/pkgsrc/pkgtools/bootstrap-mk-files
bmake replace

If you look at the file it will be the default,
not the platform specific makefile.
diff --git a/pkgtools/bootstrap-mk-files/files/ b/pkgtools/bootstrap-mk-files/files/
index 1084f656..b27bacf 100755
--- a/pkgtools/bootstrap-mk-files/files/
+++ b/pkgtools/bootstrap-mk-files/files/
@@ -25,8 +25,8 @@ done


-if [ -f mods/${OPSYS} ]; then
-	${SED} -e "${subst_pattern}" mods/${OPSYS} > ${MK_DST}/
+if [ -f mods/${OPSYS} ]; then
+	${SED} -e "${subst_pattern}" mods/${OPSYS} > ${MK_DST}/
 	${SED} -e "${subst_pattern}" mods/ > ${MK_DST}/



State-Changed-From-To: open->closed
State-Changed-When: Fri, 17 Jun 2011 11:01:13 +0000
Committed.  Thanks!

From: "OBATA Akio" <>
Subject: PR/45061 CVS commit: pkgsrc/pkgtools/bootstrap-mk-files/files
Date: Fri, 17 Jun 2011 11:00:37 +0000

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Fri Jun 17 11:00:36 UTC 2011

 Modified Files:

 Log Message:
 Fixes handling in script to same as pkg's Makefile.

 To generate a diff of this commit:
 cvs rdiff -u -r1.1 -r1.2 \

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


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.