| Summary: | [PATCH] security/bro: Fix pkg-fallout issue | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Craig Leres <leres> | ||||||
| Component: | Individual Port(s) | Assignee: | Antoine Brodin <antoine> | ||||||
| Status: | Closed FIXED | ||||||||
| Severity: | Affects Only Me | CC: | leres | ||||||
| Priority: | Normal | ||||||||
| Version: | Latest | ||||||||
| Hardware: | Any | ||||||||
| OS: | Any | ||||||||
| Attachments: |
|
||||||||
|
Description
Craig Leres
2013-11-30 01:30:00 UTC
The patch I attached to this PR does not address pkg-fallout for FreeBSD
8.3-RELEASE:
[REL - 83amd64-default][security/bro] Failed for bro-2.2 in configure
[REL - 83i386-default][security/bro] Failed for bro-2.2 in configure
The basic problem is that Bro's binpac requires libmagic 5.04 or newer
but FreeBSD 8 shipped with 5.03.
The Makefile already has:
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MBROCCOLI}
LIB_DEPENDS+= broccoli:${PORTSDIR}/security/broccoli
.endif
Which should be sufficient based on my read of the porters handbook:
http://www.freebsd.org/doc/en/books/porters-handbook/makefile-depend.html
5.8.1. LIB_DEPENDS
This variable specifies the shared libraries this port
depends on. It is a list of lib:dir tuples where lib is the
name of the shared library, dir is the directory in which
to find it in case it is not available. For example,
LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg
will check for a shared jpeg library with any version, and
descend into the graphics/jpeg subdirectory of your ports
tree to build and install it if it is not found.
*The dependency is checked twice, once from within the build
target and then from within the install target.* Also, the
name of the dependency is put into the package so that
pkg_add(1) will automatically install it if it is not on
the user's system.
However it doesn't appear to actually work that way so the revised patch
(attached) adds a BUILD_DEPENDS for sysutils/file. This was tested on
8.2-RELEASE.
Craig
Responsible Changed From-To: freebsd-ports-bugs->antoine Take Author: antoine Date: Sun Dec 1 07:29:17 2013 New Revision: 335367 URL: http://svnweb.freebsd.org/changeset/ports/335367 Log: - Fix packaging with pkgng: create empty dirs to be packed in STAGEDIR - Fix build on FreeBSD 8: depend on libmagic ABI version from ports - While here, use new LIB_DEPENDS syntax PR: ports/184194 PR: ports/184381 Submitted by: Craig Leres (maintainer) Reported by: Mark Martinec and pkg-fallout Modified: head/security/bro/Makefile Modified: head/security/bro/Makefile ============================================================================== --- head/security/bro/Makefile Sun Dec 1 07:15:49 2013 (r335366) +++ head/security/bro/Makefile Sun Dec 1 07:29:17 2013 (r335367) @@ -13,7 +13,7 @@ LICENSE= BSD BUILD_DEPENDS= bison:${PORTSDIR}/devel/bison \ swig:${PORTSDIR}/devel/swig13 -LIB_DEPENDS= GeoIP:${PORTSDIR}/net/GeoIP +LIB_DEPENDS= libGeoIP.so:${PORTSDIR}/net/GeoIP USES= cmake:outsource perl5 USE_PYTHON= yes @@ -56,13 +56,13 @@ OPTIONS_EXCLUDE=NLS DOCS # Bro 2.2 requires libmagic >= 5.04 .if ${OSVERSION} < 901000 -LIB_DEPENDS+= magic:${PORTSDIR}/sysutils/file +LIB_DEPENDS+= libmagic.so.1:${PORTSDIR}/sysutils/file .endif .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MBROCCOLI} -LIB_DEPENDS+= broccoli:${PORTSDIR}/security/broccoli +LIB_DEPENDS+= libbroccoli.so:${PORTSDIR}/security/broccoli .endif .if ${PORT_OPTIONS:MBROCTL} @@ -111,8 +111,10 @@ RUN_DEPENDS+= ipsumdump:${PORTSDIR}/net/ .if ${PORT_OPTIONS:MBROCTL} post-stage:: .if defined(BRO_PREFIX) - @${MKDIR} ${PREFIX} + @${MKDIR} ${STAGEDIR}${PREFIX} .endif + @${MKDIR} ${STAGEDIR}${PREFIX}/spool/installed-scripts-do-not-touch/auto + @${MKDIR} ${STAGEDIR}${PREFIX}/spool/installed-scripts-do-not-touch/site .for F in broctl.cfg @${INSTALL_SCRIPT} ${INSTALL_WRKSRC}/aux/broctl/etc/${F} ${STAGEDIR}${PREFIX}/etc/${F}.example .endfor _______________________________________________ svn-ports-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-ports-all To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org" State Changed From-To: open->closed Port fixed, thanks! |