RPM Community Forums

Mailing List Message of <rpm-devel>

Re: Flexibly building against third-party libraries (RPM_CHECK_LIB)

From: Arkadiusz Miskiewicz <arekm@pld-linux.org>
Date: Wed 20 Jun 2007 - 23:57:32 CEST
Message-Id: <200706202357.32516.arekm@pld-linux.org>
On Wednesday 20 of June 2007, Arkadiusz Miskiewicz wrote:

> Right now from config.log:
>
> configure:27985: error: unable to find available BeeCrypt library
>
> but why it told so, you have to guess and digg.

We have beecrypt includes in /usr/include/beecrypt/ so the only option is
--with-beecrypt=/usr

configure complains:
find: warning: Unix filenames usually don't contain slashes (though pathnames do).
That means that '-name beecrypt/api.h' will probably evaluate to false all the time
on this system.  You might find the '-wholename' test more useful, or perhaps '-samefile'.
Alternatively, if you are using GNU grep, you could use 'find ... -print0 | grep -FzZ beecrypt/api.h'.

maybe (not sure about non-coreutils find)

--- acinclude.m4 2007-06-20 23:10:19.000000000 +0200
+++ acinclude.m4        2007-06-20 23:51:42.123505988 +0200
@@ -241,7 +241,7 @@
                     dnl # in any sub-area
                     if test ".${__rcl_found}" = .no; then
                         dnl changequote(, )dnl
-                        for __rcl_file in _ `find ${__rcl_location} -name "$5" -type f -print`; do
+                        for __rcl_file in _ `find ${__rcl_location} -wholename "$5" -type f -print`; do
                             test .${__rcl_file} = ._ && continue
                             __rcl_dir=`echo ${__rcl_file} | sed -e 's;[[^/]]*[$];;' -e 's;\(.\)/[$];\1;'`
                             CPPFLAGS="${CPPFLAGS} -I${__rcl_dir}"
@@ -251,7 +251,7 @@
                         if test ".${__rcl_found}" = .yes; then
                             __rcl_found=no
                             m4_foreach_w([__rcl_lib], [$3], [
-                                for __rcl_file in _ `find ${__rcl_location} -name "lib[]m4_defn([__rcl_lib]).*" -type f -print | \
+                                for __rcl_file in _ `find ${__rcl_location} -wholename "lib[]m4_defn([__rcl_lib]).*" -type f -print | \
                                     egrep '\.(a|so|sl|dylib)$'`; do
                                     test .${__rcl_file} = ._ && continue
                                     __rcl_dir=`echo ${__rcl_file} | sed -e 's;[[^/]]*[$];;' -e 's;\(.\)/[$];\1;'`

configure: error: unable to find available File (magic) library

The same for file package :-)

> >                                        Ralf S. Engelschall
> >                                        rse@engelschall.com
> >                                        www.engelschall.com



-- 
Arkadiusz Mi¶kiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/
Received on Wed Jun 20 23:57:36 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.