FreeBSD Bugzilla – Attachment 34766 Details for
Bug 56389
[PATCH] port sysutils/pkg_install: fix `make deinstall' and compilation on systems <= 4.4
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
pkg_install.patch
pkg_install.patch (text/plain), 1.49 KB, created by
Oliver Eikemeier
on 2003-09-04 02:00:33 UTC
(
hide
)
Description:
pkg_install.patch
Filename:
MIME Type:
Creator:
Oliver Eikemeier
Created:
2003-09-04 02:00:33 UTC
Size:
1.49 KB
patch
obsolete
>--- sysutils/pkg_install/Makefile.orig Tue Sep 2 04:07:22 2003 >+++ sysutils/pkg_install/Makefile Thu Sep 4 02:38:55 2003 >@@ -24,34 +24,15 @@ > > .include <bsd.port.pre.mk> > >-.if ${OSVERSION} < 460102 >-check-already-installed: >-.if !defined(NO_PKG_REGISTER) && !defined(FORCE_PKG_REGISTER) >- @if [ -d ${PKG_DBDIR}/${PKGNAME} ]; then \ >- ${ECHO_CMD} "===> ${PKGNAME} is already installed - perhaps an older version?"; \ >- ${ECHO_CMD} " If so, you may wish to \`\`make deinstall'' and install"; \ >- ${ECHO_CMD} " this port again by \`\`make reinstall'' to upgrade it properly."; \ >- ${ECHO_CMD} " If you really wish to overwrite the old port of ${PKGNAME}"; \ >- ${ECHO_CMD} " without deleting it first, set the variable \"FORCE_PKG_REGISTER\""; \ >- ${ECHO_CMD} " in your environment or the \"make install\" command line."; \ >- exit 1; \ >- fi >-.else >- @${DO_NADA} >-.endif >+.if ${OSVERSION} < 440001 || ( ${OSVERSION} >= 500000 && ${OSVERSION} < 500024 ) >+post-patch: >+ @${FIND} ${WRKSRC} -name '*.c' \ >+ | ${XARGS} ${PERL} -pi.orig -e 's/__FBSDID\(("[^"]*")\)/static const char rcsid[] = $$1/' > .endif > > pre-configure: > @${SED} -e 's,%%PREFIX%%,${PREFIX},g' \ > -e 's,%%MANPREFIX%%,${MANPREFIX},g' \ > ${FILESDIR}/Makefile.inc > ${WRKDIR}/Makefile.inc >- >-deinstall: >- @if ${PKG_INFO} -e ${PKGNAME}; then \ >- ${PKG_DELETE} -f ${PKGNAME}; \ >- else \ >- ${ECHO_MSG} "===> ${PKGNAME} not installed; skipping"; \ >- fi >- @${RM} -f ${INSTALL_COOKIE} ${PACKAGE_COOKIE} > > .include <bsd.port.post.mk>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 56389
: 34766 |
34767