From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Apr 15 09:10:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id F3FF9F3D for ; Mon, 15 Apr 2013 09:10:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id D5491E45 for ; Mon, 15 Apr 2013 09:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r3F9A0Us092069 for ; Mon, 15 Apr 2013 09:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r3F9A0Hr092068; Mon, 15 Apr 2013 09:10:00 GMT (envelope-from gnats) Resent-Date: Mon, 15 Apr 2013 09:10:00 GMT Resent-Message-Id: <201304150910.r3F9A0Hr092068@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Robert Backahus Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 38563EC8 for ; Mon, 15 Apr 2013 09:03:56 +0000 (UTC) (envelope-from robbak@robbak.com) Received: from spam.symbionetworks.com (smtp02.symbionetworks.com [125.213.165.10]) by mx1.freebsd.org (Postfix) with ESMTP id BD45FE1F for ; Mon, 15 Apr 2013 09:03:55 +0000 (UTC) Received: from spam.symbionetworks.com (localhost.localdomain [127.0.0.1]) by localhost (Email Security Appliance) with SMTP id 9DE8B18BC3AF_16BBBB3B for ; Mon, 15 Apr 2013 08:34:59 +0000 (GMT) Received: from boffin.lan (unknown [115.187.242.125]) by spam.symbionetworks.com (Sophos Email Appliance) with ESMTP id AF76618BC3AE_16BBBB1F for ; Mon, 15 Apr 2013 08:34:57 +0000 (GMT) Received: (from robbak@localhost) by boffin.lan (8.14.6/8.14.6/Submit) id r3F90W1j062475; Mon, 15 Apr 2013 19:00:32 +1000 (EST) (envelope-from robbak) Message-Id: <201304150900.r3F90W1j062475@boffin.lan> Date: Mon, 15 Apr 2013 19:00:32 +1000 (EST) From: Robert Backahus To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/177867: [MAINTAINER] net-p2p/bitcoin: [SUMMARIZE CHANGES] X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Apr 2013 09:10:01 -0000 >Number: 177867 >Category: ports >Synopsis: [MAINTAINER] net-p2p/bitcoin: [SUMMARIZE CHANGES] >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Mon Apr 15 09:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Robert Backahus >Release: FreeBSD 9.1-STABLE amd64 >Organization: >Environment: System: FreeBSD boffin 9.1-STABLE FreeBSD 9.1-STABLE #4 r246398: Thu Feb 7 02:57:27 >Description: Sander Kleykens reported to me that the bundled build of leveldb deletes /dev/null when built using FreeBSD 8.3 using gcc 4.2.2. The problem is in the version of gcc, which detetes the node when -o /dev/null is used. This patch, created by Sandler, works around this by creating a temporary file to use as an output file, then deleting it when finished. This fault was confirmed using redports, and this fix tested there as well. This problem also affects the databases/leveldb port too. The portrevision was not bumped, as this does not change the compiled files, and the port could not have been built on the affected platform. Generated with FreeBSD Port Tools 0.99_7 (mode: change, diff: ports) >How-To-Repeat: Build net-p2p/bitcoin on FreeBSD >Fix: --- bitcoin-0.8.1.patch begins here --- diff -ruN /usr/ports/net-p2p/bitcoin/files/patch-leveldb_makefile ./files/patch-leveldb_makefile --- /usr/ports/net-p2p/bitcoin/files/patch-leveldb_makefile 1970-01-01 10:00:00.000000000 +1000 +++ ./files/patch-leveldb_makefile 2013-04-13 15:36:30.000000000 +1000 @@ -0,0 +1,58 @@ +From 966781671d44a4bcaa4a03c8c59dc280acf2c595 Mon Sep 17 00:00:00 2001 +From: Sander Kleykens +Date: Sat, 23 Mar 2013 17:16:02 +0100 +Subject: [PATCH] Fix /dev/null getting removed during compilation on some + systems. + +--- + src/leveldb/build_detect_platform | 14 ++++++++++++-- + 1 file changed, 12 insertions(+), 2 deletions(-) + +diff --git a/src/leveldb/build_detect_platform b/src/leveldb/build_detect_platform +index 609cb51..bebf607 100755 +--- a/src/leveldb/build_detect_platform ++++ src/leveldb/build_detect_platform +@@ -25,6 +25,8 @@ + # -DSNAPPY if the Snappy library is present + # + ++TMPDIR="/tmp" ++ + OUTPUT=$1 + PREFIX=$2 + if test -z "$OUTPUT" || test -z "$PREFIX"; then +@@ -164,7 +166,9 @@ if [ "$CROSS_COMPILE" = "true" ]; then + true + else + # If -std=c++0x works, use . Otherwise use port_posix.h. +- $CXX $CXXFLAGS -std=c++0x -x c++ - -o /dev/null 2>/dev/null </dev/null < + int main() {} + EOF +@@ -175,13 +179,19 @@ EOF + COMMON_FLAGS="$COMMON_FLAGS -DLEVELDB_PLATFORM_POSIX" + fi + ++ rm -f ${CPP0X_TEST_TEMPFILE} > /dev/null 2>&1 ++ + # Test whether tcmalloc is available +- $CXX $CXXFLAGS -x c++ - -o /dev/null -ltcmalloc 2>/dev/null </dev/null < /dev/null 2>&1 + fi + + PLATFORM_CCFLAGS="$PLATFORM_CCFLAGS $COMMON_FLAGS" +-- +1.8.1.5 + --- bitcoin-0.8.1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: