Ken Moffat wrote:
> On Thu, Sep 12, 2013 at 08:25:00PM +0100, Ken Moffat wrote:
>>   I've now got the postgresql testsuite working for a normal user,
>> using the attached patch (based on gentoo, but simplified - they
>> make one other change, which seems unnecessary, and use @SOCKETDIR@
>> then sed that to /tmp after applying the patch.
>>

I think my first sed is a little shorter and easier to understand.  The 
results are the same.


>   Really attached, in case we come back to this method.

Would the following work for the patch?

sed -i -e 's@psql\\"@& -h /tmp@' src/test/regress/pg_regress{,_main}.c
sed -i -e 's@gres\\"@& -h /tmp@' src/test/regress/pg_regress.c

The following might also work (not checked):

sed -i -r 's@(psql|gres)\\"@& -h /tmp@' \
     src/test/regress/pg_regress{,_main}.c

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to