Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Dec 2014 01:32:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        gnome@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 195597] [patch] deskutils/gnote 3.14.0 build fails on FreeBSD 8.4
Message-ID:  <bug-195597-6497-6sCHLoJVXQ@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-195597-6497@https.bugs.freebsd.org/bugzilla/>
References:  <bug-195597-6497@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Don Lewis <truckman@FreeBSD.org> has reassigned Bugzilla Automation
<bugzilla@FreeBSD.org>'s request for maintainer-feedback to gnome@FreeBSD.o=
rg:
Bug 195597: [patch] deskutils/gnote 3.14.0 build fails on FreeBSD 8.4
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D195597



--- Description ---
Created attachment 150123
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D150123&action=
=3Dedit
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 becau=
se
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_framew=
ork
=3D=3D=3D>  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 websi=
te,
copy-and-paste into http://freebsd-gnome.pastebin.com, or use send-pr(1) wi=
th
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 libra=
ry
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 prev=
ents
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 <bugzilla@FreeBSD.org> ---
Auto-assigned to maintainer gnome@FreeBSD.org=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-195597-6497-6sCHLoJVXQ>