Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Jun 2002 18:33:10 +0200 (CEST)
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        obraun@informatik.unibw-muenchen.de
Cc:        ler@lerctr.org, olle@wushu.nu, ports@FreeBSD.ORG, portmgr@FreeBSD.org
Subject:   USE_REINPLACE (was: Re: x11/gdkxft)
Message-ID:  <200206301633.g5UGXAEr016358@Magelan.Leidinger.net>
In-Reply-To: <20020630155733.GA80233@informatik.unibw-muenchen.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On 30 Jun, Oliver Braun wrote:

>> >> This suggestions isn't appropriate. It's a bug in gdkxft.
> 
> No!

Or a bug in bsd.port.mk. If he hasn't a bsd.port.mk with REINPLACE_CMD,
he couldn't see the error from sed, so the ident of
/usr/ports/Mk/bsd.port.mk would be interesting too.

> x11/gdkxft in the current ports collection uses REINPLACE_CMD and
> depends on textproc/sed_inplace.

> Your ports collection seems to be a little bit borked.

Perhaps...

Mine isn't borked, and I see the same error, but at least I know why I
see the same error.

(4) root@ttyp2 # make
===>  Extracting for gdkxft-gnome-1.5_1
>> Checksum OK for gdkxft-1.5.tar.gz.
===>   gdkxft-gnome-1.5_1 depends on shared library: iconv.3 - found
===>   gdkxft-gnome-1.5_1 depends on shared library: X11.6 - found
===>   gdkxft-gnome-1.5_1 depends on shared library: esd.2 - found
===>   gdkxft-gnome-1.5_1 depends on shared library: glib12.3 - found
===>   gdkxft-gnome-1.5_1 depends on shared library: gtk12.2 - found
===>   gdkxft-gnome-1.5_1 depends on shared library: Imlib.5 - found
===>   gdkxft-gnome-1.5_1 depends on shared library: gnome.5 - found
===>   gdkxft-gnome-1.5_1 depends on shared library: capplet.5 - found
===>   gdkxft-gnome-1.5_1 depends on shared library: panel_applet.5 - found
===>  Patching for gdkxft-gnome-1.5_1
===>  Applying FreeBSD patches for gdkxft-gnome-1.5_1
echo OSVERSION 500034
OSVERSION 500034
sed: illegal option -- i
usage: sed script [-Ean] [file ...]
       sed [-an] [-e script] ... [-f script_file] ... [file ...]
*** Error code 1

Stop in /big/usr/ports/x11/gdkxft.

(5) root@ttyp2 # ident Makefile
Makefile:
     $FreeBSD: ports/x11/gdkxft/Makefile,v 1.12 2002/06/27 13:32:14 perky Exp $

(6) root@ttyp2 # ident ../../Mk/bsd.port.mk
../../Mk/bsd.port.mk:
     $FreeBSD: ports/Mk/bsd.port.mk,v 1.416 2002/06/28 12:20:03 sobomax Exp $
     $NetBSD: $

And bsd.port.mk:
.if defined(USE_REINPLACE)
REINPLACE_ARGS?=        -i.bak
.if ${OSVERSION} < 460101 || ( ${OSVERSION} >= 500000 && ${OSVERSION} < 500034 )
BUILD_DEPENDS+= ${LOCALBASE}/bin/sed_inplace:${PORTSDIR}/textproc/sed_inplace
REINPLACE_CMD?= ${LOCALBASE}/bin/sed_inplace ${REINPLACE_ARGS}
.else
REINPLACE_CMD?= ${SED} ${REINPLACE_ARGS}
.endif
.endif

It's a -current before perl got removed, before sed got '-i' and before
gcc was updated to 3.1. I think we should decide to bump the OSVERSION
to 500036, even if we have some overlap with sed/sed_inplace. Just to be
safe.

Bye,
Alexander.

-- 
            Give a man a fish and you feed him for a day;
     teach him to use the Net and he won't bother you for weeks.

http://www.Leidinger.net                       Alexander @ Leidinger.net
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206301633.g5UGXAEr016358>