ports/147546: Update Port: editors/emacs-devel to a snapshot of 24.x
Anonymous
swell.k at gmail.com
Sun Jun 6 10:50:12 UTC 2010
The following reply was made to PR ports/147546; it has been noted by GNATS.
From: Anonymous <swell.k at gmail.com>
To: wahjava at gmail.com (Ashish SHUKLA)
Cc: bug-followup at FreeBSD.org, keramida at FreeBSD.org
Subject: Re: ports/147546: Update Port: editors/emacs-devel to a snapshot of 24.x
Date: Sun, 06 Jun 2010 10:42:25 +0000
wahjava at gmail.com (Ashish SHUKLA) writes:
> Anonymous writes:
>> Ashish SHUKLA <wahjava at gmail.com> writes:
>
>>> Acknowledgements:
>>> - Anonymous for the compilation fix on 6.x and 9.x when DBUS is enabled.
>
> /Anonymous/d
>
>> [...]
>>> +DBUS_PTHREAD_LIBS= ${CC} -dumpspecs | ${GREP} -m 1 pthread: | ${SED} -e 's|^.*%{\!pg: %{pthread:||' -e 's|}.*$$||' || ${TRUE}
>>> +
>> [...]
>>> +post-configure:
>>> + @${REINPLACE_CMD} -e "s/^\(DBUS_LIBS.*\)-pthread\(.*\)$$/\1$$(${DBUS_PTHREAD_LIBS})\2/" ${WRKSRC}/src/Makefile
>>> +
>
>> Remove my credit. Your version is complex, uses backreferences (slow)
>> and assumes `$$/' is not interpreted by sh(1) as variable. Besides, it's
>> now harder to check value
>
>> $ make -V DBUS_PTHREAD_LIBS
>
> Yes, and also it makes it now harder to invoke a cc/grep/sed/sh during INDEX
> generation.
DBUS_PTHREAD_LIBS is defined after bsd.port.options.mk. At that point
SED/GREP/TRUE are already defined. And `make describe' as well as `make index'
don't produce errors. The only issue here is performance of `make describe'.
And tools like portupgrade use fetchindex target because it's faster.
So, I'm against sacrificing simplicity for a target that's rarely used.
More information about the freebsd-ports-bugs
mailing list