Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Nov 2008 10:58:08 -0600
From:      "RandomUser" <rannumgen@globaleyes.net>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Subject:   ports/129211: www/firefox V2.0.18 error in GECKO_PTHREAD_LIBS sed script
Message-ID:  <1227718688.3784@FreeBSD2.LocalNET10>
Resent-Message-ID: <200811261700.mAQH0DfO035872@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         129211
>Category:       ports
>Synopsis:       www/firefox V2.0.18 error in GECKO_PTHREAD_LIBS sed script
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 26 17:00:13 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     RandomUser
>Release:        FreeBSD 6.4-PRERELEASE i386
>Organization:
>Environment:


System: FreeBSD 6.4-PRERELEASE #11: Wed Nov  5 00:24:07 CST 2008



>Description:


 make patch
===>  WARNING: Vulnerability database out of date, checking anyway
===>  Found saved configuration for firefox-1.5.0.7,1
===>  Extracting for firefox-2.0.0.18,1
=> MD5 Checksum OK for firefox-2.0.0.18-source.tar.bz2.
=> SHA256 Checksum OK for firefox-2.0.0.18-source.tar.bz2.
===>   firefox-2.0.0.18,1 depends on file: /usr/local/bin/perl5.8.8 - found
===>  Patching for firefox-2.0.0.18,1
===>   firefox-2.0.0.18,1 depends on file: /usr/local/bin/perl5.8.8 - found
===>  Applying FreeBSD patches for firefox-2.0.0.18,1
pkg_info: no packages match pattern(s)
/usr/bin/sed -i.bak -e 's|%%PTHREAD_LIBS%%|-lpthread|'  /da0/usrports/www/firefox/work/mozilla/storage/build/Makefile.in

Effective response:

 gcc -dumpspecs | grep -m 1 pthread | sed -e 's|^.*%{\!pg: %{pthread:||;s|}.*$$||'
-lpthread} -lc}					    %{pg:  %{pthread:-lpthread_p} -lc_p}				  }



sed script source:

GECKO_PTHREAD_LIBS!=${CC} -dumpspecs | ${GREP} -m 1 pthread | ${SED} -e 's|^.*%{\!pg: %{pthread:|| ; s|}.*$$||' || ${TRUE}


modified response (after applying FIX):

 gcc -dumpspecs | grep -m 1 pthread | sed -e 's|^.*%{\!pg: %{pthread:||;s|}.*$||'
-lpthread

echo $?
0


>How-To-Repeat:





>Fix:


Remove extraneous "$" in second inline SED script:

GECKO_PTHREAD_LIBS!=${CC} -dumpspecs | ${GREP} -m 1 pthread | ${SED} -e 's|^.*%{\!pg: %{pthread:|| ; s|}.*$||' || ${TRUE}


>Release-Note:
>Audit-Trail:
>Unformatted:



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