pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/45061: pkgtools/bootstrap-mk-files not processing ${OPSYS}

>Number:         45061
>Category:       pkg
>Synopsis:       pkgtools/bootstrap-mk-files not processing 
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 14 14:20:00 +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/ 
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} > 
+if [ -f mods/${OPSYS} ]; then
+       ${SED} -e "${subst_pattern}" mods/${OPSYS} > 
        ${SED} -e "${subst_pattern}" mods/ > ${MK_DST}/

Home | Main Index | Thread Index | Old Index