[MacPorts] #24059: curl +universal ppc/i386 fails on PowerPC
MacPorts
noreply at macports.org
Thu Mar 18 04:38:56 PDT 2010
#24059: curl +universal ppc/i386 fails on PowerPC
---------------------------------+------------------------------------------
Reporter: keybounce@… | Owner: ryandesign@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.2
Keywords: | Port: curl
---------------------------------+------------------------------------------
Comment(by ryandesign@…):
Michael Gersten provided the following additional feedback by email:
> Alright, the configure file for curl has this:
>
{{{
dnl Check for user-specified random device
AC_ARG_WITH(random,
AC_HELP_STRING([--with-random=FILE],
[read randomness from FILE (default=/dev/urandom)]),
[ RANDOM_FILE="$withval" ],
[
dnl Check for random device
AC_CHECK_FILE("/dev/urandom", [ RANDOM_FILE="/dev/urandom"] )
]
)
if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
AC_SUBST(RANDOM_FILE)
AC_DEFINE_UNQUOTED(RANDOM_FILE, "$RANDOM_FILE",
[a suitable file to read random data from])
fi
}}}
>
> This is the only place where AC_CHECK_FILE is used, and this is what
> triggers the cross compile warning. [[br]]
> [[br]]
> I don't know autoconf. Is there some way to specify that the default
> file is "/dev/urandom" without having to test for its existence?
> Technically, a file check should fail any time the destination is a
> different operating system, not a different target for the same
> operating system, so the AC_CHECK_FILE test is failing in error. [[br]]
> [[br]]
> (Heck, a change from one OS version to another might move a file, and
> invalidate a test like this.)
--
Ticket URL: <http://trac.macports.org/ticket/24059#comment:6>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list