Re: patch to add FreeBSD support
Previously utsl@quic.net wrote:
> --- dpkg/utils/start-stop-daemon.c Fri Feb 1 23:28:13 2002
> +++ dpkg-1.10-freebsd/utils/start-stop-daemon.c Fri Feb 8 04:36:55 2002
> @@ -707,7 +709,9 @@
>
> /* WTA: this needs to be an autoconf check for /proc/pid existance.
> */
> -#if defined(OSLinux) || defined (OSsunos)
> +
> +/* WART: FreeBSD also has /proc support */
> +#if defined(OSLinux) || defined (OSsunos) || defined(OSfreebsd)
Removed the WART comment, that was already covered by the statement
above that.
> diff -urN dpkg/configure.in dpkg-1.10-freebsd/configure.in
> --- dpkg/configure.in Sat Feb 2 17:58:58 2002
> +++ dpkg-1.10-freebsd/configure.in Fri Feb 8 23:35:45 2002
> @@ -93,7 +93,7 @@
>
> dpkg_archset=''
> AC_MSG_CHECKING(Debian architecture)
> -dpkg_archset="`awk '$1 == "'$target_cpu-$target_os'" { print $2 }' $srcdir/archtable`"
> +dpkg_archset="`perl -ane 'if("'$target_cpu-$target_os'"=~m#^$F[0]$#) {print $F[1]; exit(0)}' archtable`"
> # Finish off
> if test "x$dpkg_archset" = "x"; then
> AC_MSG_RESULT([$target_cpu-$target_os, but not found in archtable])
Please don't use perl there, I want to get rid of all perl in dpkg.
Wichert.
--
_________________________________________________________________
/wichert@wiggy.net This space intentionally left occupied \
| wichert@deephackmode.org http://www.liacs.nl/~wichert/ |
| 1024D/2FA3BC2D 576E 100B 518D 2F16 36B0 2805 3CB8 9250 2FA3 BC2D |
Reply to: