# HG changeset patch # User Michael Schloh von Bennewitz # Date 1346171315 -7200 # Node ID 7ddfdb42afce37cd38497104944364f1806be679 # Parent bf1e61b0917ccd406c0d8acf3a89ddc09cf83452 Write a explicit dependency to pkgconfig file for getaddrinfo(3). The SVR4 dependencies libsocket and libnsl are needed by libgio and libglib at least, and allow dependent software like gmime to build unmodified. diff -r bf1e61b0917c -r 7ddfdb42afce glib/glib.spec --- a/glib/glib.spec Tue Aug 28 18:28:30 2012 +0200 +++ b/glib/glib.spec Tue Aug 28 18:28:35 2012 +0200 @@ -113,6 +113,9 @@ %{l_shtool} subst \ -e 's;^\(LIBELF_LIBS =\);\1 -lelf;' \ gio/Makefile.in + %{l_shtool} subst \ + -e 's;\(Libs.private:.*\) *$;\1 -lsocket -lnsl;' \ + glib-2.0.pc.in ;; esac case "%{l_platform -t}" in @@ -158,7 +161,7 @@ %install # install package - %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" + %{l_make} %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT" # strip down installation rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir