Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 432468 - net-misc/wget-1.14 automagically depends on dev-libs/libpcre
Summary: net-misc/wget-1.14 automagically depends on dev-libs/libpcre
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-23 16:37 UTC by Yuta SATOH
Modified: 2014-01-13 21:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2012-08-23 16:37:59 UTC
I was trying to create new stage3 of Gentoo/FreeBSD, but failed wget is causing the error.

error messages is here.

>>> Emerging (21 of 116) app-portage/portage-utils-0.11
>>> Failed to emerge app-portage/portage-utils-0.11, Log file:
>>>  '/var/tmp/portage/app-portage/portage-utils-0.11/temp/build.log'
Shared object "libpcre.so.1" not found, required by "wget"
Shared object "libpcre.so.1" not found, required by "wget"
Shared object "libpcre.so.1" not found, required by "wget"
Shared object "libpcre.so.1" not found, required by "wget"
Shared object "libpcre.so.1" not found, required by "wget"
!!! Couldn't download 'portage-utils-0.11.tar.xz'. Aborting.

When I created in July, did not have this problem.
And I noticed that wget has been version bump recently.

wget-1.13.4 # grep -r pcre *
Nothing is displayed

wget-1.14 # grep -r pcre *
configure:ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
configure:if test "x$ac_cv_header_pcre_h" = xyes; then :
configure:  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
configure:$as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
configure:if ${ac_cv_lib_pcre_pcre_compile+:} false; then :
configure:LIBS="-lpcre  $LIBS"

<snip>


FYI, stage1,2 don't have libpcre.

# find . -name libpcre.so.1
./stage1-amd64-fbsd-9.1-20120728/lib64/libpcre.so.1
./stage3-amd64-fbsd-9.1-20120728/lib64/libpcre.so.1



Reproducible: Always




I believe the problem is solved add DEPEND to ebuild of wget, 
or add libpcre to profiles/default/bsd/fbsd/packages.build.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-08-23 17:17:15 UTC
configure.ac:

AC_CHECK_HEADER(pcre.h,
                AC_CHECK_LIB(pcre, pcre_compile,
                  [LIBS="${LIBS} -lpcre"
                   AC_DEFINE([HAVE_LIBPCRE], 1,
                             [Define if libpcre is available.])
                  ])
)
Comment 2 SpanKY gentoo-dev 2012-08-23 18:14:51 UTC
should be all set now in the tree; thanks for the report!

Commit message: Add USE="pcre uuid zlib" flags to control new deps
http://sources.gentoo.org/net-misc/wget/metadata.xml?r1=1.9&r2=1.10
http://sources.gentoo.org/net-misc/wget/wget-1.14.ebuild?r1=1.1&r2=1.2
Comment 3 Nikoli 2012-10-23 07:03:09 UTC
Is there some good reason for not enabling USE uuid by default? It is enabled upstream.
Comment 4 SpanKY gentoo-dev 2012-10-27 19:14:18 UTC
(In reply to comment #3)

uuid is used in only one (uncommon) file format, and wget has a simple fallback so it's functionality the same