Bug 196334 - graphics/librsvg2 is not rebuilt after libpng update
Summary: graphics/librsvg2 is not rebuilt after libpng update
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-28 19:01 UTC by Anindya Mukherjee
Modified: 2015-01-15 12:28 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anindya Mukherjee 2014-12-28 19:01:10 UTC
In FreeBSD 10.1 p3 the libpng library was updated to 1.6.16. The librsvg2 package depends on it but is not rebuilt when running portmaster -r libpng. This may cause builds of software like emacs which links with librsvg2 to fail. Manually rebuilding librsvg2 fixes the problem.
Comment 1 emss 2014-12-30 13:52:36 UTC
Hi,

Same in 9.3-p7. Seems the dependency on png is not correctly registered.
Ashish@ explained me the following in a private exchange related to emacs build breakage I encountered :
"
It seems like a bug to me, since the port depends on shared library, but not
the package. Probably file a bug report with librsvg2 port maintainer about
this:

chateau.d.if!abbe:~ ? pkg info -B librsvg2-2.40.4
librsvg2-2.40.4:
        libxml2.so.2
        libpng15.so.15
        libpangocairo-1.0.so.0
        libpango-1.0.so.0
        libintl.so.9
        libgobject-2.0.so.0
        libglib-2.0.so.0
        libgio-2.0.so.0
        libgdk_pixbuf-2.0.so.0
        libcroco-0.6.so.3
        libcairo.so.2
chateau.d.if!abbe:~ ? pkg info -d librsvg2-2.40.4
librsvg2-2.40.4:
        pango-1.36.8
        gtk2-2.24.25_1
        gtk-engines2-2.20.2_2
        libxml2-2.9.2_2
        libcroco-0.6.8_2
        freetype2-2.5.4
        pcre-8.35_2
        libgsf-1.14.30
        glib-2.42.1
        gettext-0.19.3
        atk-2.14.0
"

Regards
Comment 2 Chris Nehren 2015-01-14 17:14:17 UTC
I'm seeing a similar issue that I think might be related. When I try to build librsvg2 with latest ports tree (synced about 10m ago), the configure phase fails:

configure: error: Package requirements (	gdk-pixbuf-2.0 >= 2.20 	glib-2.0 >= 2.12.0 	gio-2.0 >= 2.24.0 	libxml-2.0 >= 2.7.0 	pangocairo >= 1.32.6 	cairo >= 1.2.0 	cairo-png >= 1.2.0
        libcroco-0.6 >= 0.6.1) were not met:

Package libpng15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpng15.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libpng15', required by 'gdk-pixbuf-2.0', not found
 

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBRSVG_CFLAGS
and LIBRSVG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
===>  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)
"/usr/ports/graphics/librsvg2/work/librsvg-2.40.6/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.
make[1]: stopped in /usr/ports/graphics/librsvg2
*** Error code 1

I do have libpng installed:

# pkg info | grep png
gstreamer-plugins-libpng-0.10.31_1,3 Gstreamer png plugin
gstreamer1-plugins-png-1.2.4   Gstreamer png plugin
linux-c6-png-1.2.49_1          RPM of the PNG lib (Linux CentOS 6.6)
png-1.6.16                     Library for manipulating PNG images
#
Comment 3 Chris Nehren 2015-01-14 17:26:13 UTC
(In reply to Chris Nehren from comment #2)
Disregard; this was an artifact of an old gdk-pixbuf version.
Comment 4 commit-hook freebsd_committer freebsd_triage 2015-01-15 11:36:41 UTC
A commit references this bug:

Author: kwm
Date: Thu Jan 15 11:36:06 UTC 2015
New revision: 377081
URL: https://svnweb.freebsd.org/changeset/ports/377081

Log:
  Register png dependacy because we link against it.

  PR:		196334
  Submitted by:	anindya49@hotmail.com

Changes:
  head/graphics/librsvg2/Makefile