From owner-freebsd-gnome@FreeBSD.ORG Wed Dec 3 01:32:05 2014 Return-Path: Delivered-To: gnome@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 70191DD7 for ; Wed, 3 Dec 2014 01:32:05 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 57C1127E for ; Wed, 3 Dec 2014 01:32:05 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sB31W501055973 for ; Wed, 3 Dec 2014 01:32:05 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: gnome@FreeBSD.org Subject: [Bug 195597] New: [patch] deskutils/gnote 3.14.0 build fails on FreeBSD 8.4 Date: Wed, 03 Dec 2014 01:32:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: truckman@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnome@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Dec 2014 01:32:05 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195597 Bug ID: 195597 Summary: [patch] deskutils/gnote 3.14.0 build fails on FreeBSD 8.4 Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: gnome@FreeBSD.org Reporter: truckman@FreeBSD.org Assignee: gnome@FreeBSD.org Flags: maintainer-feedback?(gnome@FreeBSD.org) Created attachment 150123 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=150123&action=edit patch to fix deskutils/gnote configure script to fix build on FreeBSD 8.4 The deskutils/gnote port version 3.14.0 fails to build on FreeBSD 8.4 because of a failure during the configure phase: checking boost/test/unit_test.hpp presence... yes checking for boost/test/unit_test.hpp... yes checking for the Boost unit_test_framework library... no configure: error: cannot find the flags to link with Boost unit_test_framework ===> Script "configure" failed unexpectedly. Please run the gnomelogalyzer, available from "http://www.freebsd.org/gnome/gnomelogalyzer.sh", which will diagnose the problem and suggest a solution. If - and only if - the gnomelogalyzer cannot solve the problem, report the build failure to the FreeBSD GNOME team at gnome@FreeBSD.org, and attach (a) "/wrkdirs/usr/ports/deskutils/gnote/work/gnote-3.14.0/config.log", (b) the output of the failed make command, and (c) the gnomelogalyzer output. Also, it might be a good idea to provide an overview of all packages installed on your system (i.e. an `ls /var/db/pkg`). Put your attachment up on any website, copy-and-paste into http://freebsd-gnome.pastebin.com, or use send-pr(1) with the attachment. Try to avoid sending any attachments to the mailing list (gnome@FreeBSD.org), because attachments sent to FreeBSD mailing lists are usually discarded by the mailing list software. *** Error code 1 Stop in /usr/ports/deskutils/gnote. The problem is that configure first tries to link this library statically, and when that fails, it "forgets" to try linking it dynamically. The reason is that it has a bunch of nested loops to try multiple variations on the library name and keeps track of which library names it has tried so that it doesn't retry the same library name. The problem is that one of the loop variables also governs whether it should try static or dynamic liking, and if static linking fais, the library name gets added to the exclusion list, which prevents it from trying dynamic linking. The attached patch adds the value of this loop variable ($boost_rtopt_) to disambiguate the two cases so that linking both ways is tried. An alterative fix would be to remove the values of $boost_lib that don't contain $boost_rtopt_ since one of the values of $boost_rtopt_ is ''. Also, the location where $boost_failed_libs is incorrect. It needs to be moved out one loop nesting level to prevent the same library name value from being added to the list multiple times. Upstream should patch m4/boost.m4 and regenerate configure. --- Comment #1 from Bugzilla Automation --- Auto-assigned to maintainer gnome@FreeBSD.org -- You are receiving this mail because: You are the assignee for the bug.