Re: CFT: BSD-licensed grep [Fwd: cvs commit: ports/textproc/bsdgrep Makefile distinfo]

2008-06-15 Thread Kövesdán Gábor

Diomidis Spinellis escribió:

Doug Barton wrote:
I use the following construct in portmaster, where pdb=/var/db/pkg, 
origin is set to the origin of a given port, and ro_opd is usually 
empty, but can be another origin directory or the same one. To 
guarantee that you should get some kind of results you can test with 
origin=devel/gettext.


egrep -l "DEPORIGIN:($origin|$ro_opd)$" $pdb/*/+CONTENTS

Obviously this works in portmaster with the gnu grep, but if ro_opd 
is unset with the bsd grep I get:


egrep: empty (sub)expression


To avoid these problems I had proposed to instrument getopt to write 
options passed through argv in a file, build all our ports, and look 
at the options used.


Yes, of course, I haven't forgotten about your suggestion. First, I'd
like to process the trivial errors, which come up like this one and make
some tests myself. Then I'll think about this idea and ask portmgr to do
an exp-run with BSD grep.

Regards,

--
Gabor Kovesdan

EMAIL: [EMAIL PROTECTED]
WWW:   http://www.kovesdan.org


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: LDFLAGS setting

2006-02-20 Thread Kövesdán Gábor

Divacky Roman wrote:


hi

is is possible to set global LDFLAGS as its possible with CFLAGS? 


thnx

roman

 

Yes, set it as you set CFLAGS in make.conf, but it depends on the 
particular software whether it respects this macro or not. If this 
doesn't work for a software, you have to dig in the Makefile and set 
LDFLAGS there to enforce your custom LDFLAGS.


Anyway, you can set any macro in make.conf and the whole content of the 
file will be exported when running make, but note that this happens 
before processing a particular Makefile, so Makefiles can override your 
make.conf.

Look at any Makefile. It'll override LDFLAGS if you find a line like this:
LDFLAGS=-bla -bla
And your make.conf will get priority if you see this:
LDFLAGS?=-bla -bla
There is also a third case. In this case these parameters will be 
appended to your default:

LDFLAGS+=-bla -bla

Gabor Kovesdan
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"