[blfs-dev] postgresql, and policy

Bruce Dubbs bruce.dubbs at gmail.com
Thu Sep 12 14:17:17 PDT 2013


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 at psql\\"@& -h /tmp@' src/test/regress/pg_regress{,_main}.c
sed -i -e 's at 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



More information about the blfs-dev mailing list