ports/162082: [patch] databases/mongodb: fix strip binaries
Mirko Zinn
mail at derzinn.de
Mon Nov 14 19:50:08 UTC 2011
The following reply was made to PR ports/162082; it has been noted by GNATS.
From: Mirko Zinn <mail at derzinn.de>
To: bug-followup at FreeBSD.org
Cc: Andrey Zonov <andrey at zonov.org>
Subject: Re: ports/162082: [patch] databases/mongodb: fix strip binaries
Date: Mon, 14 Nov 2011 20:27:00 +0100
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--Apple-Mail-4--605763047
Content-Type: multipart/mixed; boundary=Apple-Mail-3--605763085
--Apple-Mail-3--605763085
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=us-ascii
Andrey, thank you for your improvements! I approve the changes requested =
above. Attached is an adapted patch.
Sorry for the late response.
Mirko
--Apple-Mail-3--605763085
Content-Disposition: attachment;
filename=patch.diff
Content-Type: application/octet-stream;
name="patch.diff"
Content-Transfer-Encoding: 7bit
diff -ruN --exclude=CVS mongodb.orig/Makefile mongodb/Makefile
--- mongodb.orig/Makefile 2011-08-23 11:32:45.000000000 +0200
+++ mongodb/Makefile 2011-11-14 19:41:18.000000000 +0100
@@ -43,11 +43,6 @@
PLIST_SUB+= DEVEL="@comment "
.endif
-post-patch:
- @${REINPLACE_CMD} -e 's|elif "freebsd7" == os.sys.platform|elif os.sys.platform.startswith("freebsd")|' \
- -e '/not GetOption("nostrip")/ s,linux,linux or freebsd,g' \
- ${WRKSRC}/SConstruct
-
post-install:
@if [ ! -f ${PREFIX}/etc/mongodb.conf ]; then \
${TOUCH} ${PREFIX}/etc/mongodb.conf ; \
diff -ruN --exclude=CVS mongodb.orig/files/patch-SConstruct mongodb/files/patch-SConstruct
--- mongodb.orig/files/patch-SConstruct 2011-04-23 15:45:28.000000000 +0200
+++ mongodb/files/patch-SConstruct 2011-11-14 19:43:56.000000000 +0100
@@ -1,5 +1,5 @@
---- SConstruct.orig 2011-04-06 06:40:13.000000000 +0200
-+++ SConstruct 2011-04-09 10:59:56.000000000 +0200
+--- SConstruct.orig 2011-04-06 04:40:13.000000000 +0000
++++ SConstruct 2011-10-04 19:16:33.000000000 +0000
@@ -679,7 +679,10 @@
#make scons colorgcc friendly
@@ -11,4 +11,13 @@
+ env['ENV']['TERM'] = 'dumb'
if linux and has_option( "sharedclient" ):
- env.Append( LINKFLAGS=" -Wl,--as-needed -Wl,-zdefs " )
\ No newline at end of file
+ env.Append( LINKFLAGS=" -Wl,--as-needed -Wl,-zdefs " )
+@@ -1473,7 +1476,7 @@
+ fullInstallName = installDir + "/bin/" + name
+
+ allBinaries += [ name ]
+- if (solaris or linux) and (not has_option("nostrip")):
++ if (solaris or linux or freebsd) and (not has_option("nostrip")):
+ e.AddPostAction( inst, e.Action( 'strip ' + fullInstallName ) )
+
+ if linux and len( COMMAND_LINE_TARGETS ) == 1 and str( COMMAND_LINE_TARGETS[0] ) == "s3dist":
--Apple-Mail-3--605763085--
--Apple-Mail-4--605763047
content-type: application/pgp-signature; x-mac-type=70674453;
name=PGP.sig
content-description: Signierter Teil der Nachricht
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
iEYEARECAAYFAk7Ba4gACgkQ5F/97S0F91OcNwCfRFeKTYm8tUu1dxtdaC79ADg7
snsAni8v6GuAHufQjh4grmedJAhCzSwj
=bOzy
-----END PGP SIGNATURE-----
--Apple-Mail-4--605763047--
More information about the freebsd-ports-bugs
mailing list