Dirk Nehring dixit:

>echo "/bin/true" > staging_dir_mipsel/bin/pkg-config

true is not okay because it gives false assumption that it succeeded,
false would lead the configure script to use the "no pkg-config" path.

>Is this solution OK?

still not ok because avahi breaks, it needs the host pkg-config during
the build process, apparently.

| checking for LIBDAEMON... configure: error: The pkg-config script could not 
be found or is too old.  Make sure it
| is in your PATH or set the PKG_CONFIG environment variable to the full
| path to pkg-config.
|
| Alternatively, you may set the environment variables LIBDAEMON_CFLAGS
| and LIBDAEMON_LIBS to avoid the need to call pkg-config.
| See the pkg-config man page for more details.

I don't know what either avahi or libdaemon is, or whether it needs that
for the host or for the target, but if it's the latter, we should better
specify the flags.

The diff I used is:

Index: scripts/scan-tools.sh
===================================================================
--- scripts/scan-tools.sh       (revision 858)
+++ scripts/scan-tools.sh       (working copy)
@@ -221,6 +221,11 @@
        out=1
 fi
 
+# The host pkg-config must not be used by the target tools
+rm -f $topdir/lbin/pkg-config
+echo "#!$(which bash)" >$topdir/lbin/pkg-config
+echo "exit 1" >>$topdir/lbin/pkg-config
+chmod 555 $topdir/lbin/pkg-config
 
 cd $topdir
 rm -rf lbin/tmp


//mirabile
-- 
I believe no one can invent an algorithm. One just happens to hit upon it
when God enlightens him. Or only God invents algorithms, we merely copy them.
If you don't believe in God, just consider God as Nature if you won't deny
existence.              -- Coywolf Qi Hunt
_______________________________________________
freewrt-developers mailing list
[email protected]
https://www.freewrt.org/lists/listinfo/freewrt-developers

Reply via email to