pkgsrc-Bugs archive

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

pkg/38247: The list of local patches should be in BUILD_DEFS



>Number:         38247
>Category:       pkg
>Synopsis:       The list of local patches should be in BUILD_DEFS
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 16 20:40:00 +0000 2008
>Originator:     Sergey Svishchev
>Release:        4.0
>Organization:
>Environment:
>Description:
If you, like me, maintain a number of local patches to packages in pkgsrc, and 
build binary packages, you might wish to know which patches were applied to the 
package at build time.
>How-To-Repeat:

>Fix:
--- mk/bsd.pkg.mk       8 Mar 2008 14:28:05 -0000       1.1940
+++ mk/bsd.pkg.mk       13 Mar 2008 22:00:14 -0000
@@ -596,6 +596,7 @@
 _BUILD_DEFS+=  OBJECT_FMT LICENSE RESTRICTED
 _BUILD_DEFS+=  NO_SRC_ON_FTP NO_SRC_ON_CDROM
 _BUILD_DEFS+=  NO_BIN_ON_FTP NO_BIN_ON_CDROM
+_BUILD_DEFS+=  LOCAL_PATCHES
 
 .if defined(OSVERSION_SPECIFIC)
 _BUILD_DEFS+=  OSVERSION_SPECIFIC
--- mk/patch/patch.mk   19 Sep 2007 08:37:37 -0000      1.17
+++ mk/patch/patch.mk   23 Oct 2007 17:50:11 -0000
@@ -268,10 +268,12 @@
 .endif
 .if defined(LOCALPATCHES) && exists(${LOCALPATCHES}/${PKGPATH})
 _PKGSRC_PATCHES+=      ${LOCALPATCHES}/${PKGPATH}/*
+_LOCAL_PATCHES=                ${LOCALPATCHES}/${PKGPATH}
+LOCAL_PATCHES=         ${:!${LS} -1 ${_LOCAL_PATCHES:Q}/*!:T}
 .endif
 
 pkgsrc-patch-message:
-       @${STEP_MSG} "Applying pkgsrc patches for ${PKGNAME}"
+       @${STEP_MSG} "Applying pkgsrc patches for ${PKGNAME}, including: 
${LOCAL_PATCHES}"
 
 do-pkgsrc-patch:
        ${_PKG_SILENT}${_PKG_DEBUG}                                     \



Home | Main Index | Thread Index | Old Index