From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Sturmfels Subject: Re: Overriding PostGIS install directories Date: Sat, 20 Jan 2018 11:32:41 +1100 Message-ID: <87po65nzdi.fsf@sturm.com.au> References: <87r2qm5t7o.fsf@sturm.com.au> <8737325679.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48904) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ech61-0005MW-CY for guix-devel@gnu.org; Fri, 19 Jan 2018 19:33:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ech5Z-0000mZ-Dw for guix-devel@gnu.org; Fri, 19 Jan 2018 19:33:21 -0500 In-reply-to: <8737325679.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: Guix-devel --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Ludo, On Fri, 19 Jan 2018, Ludovic Court=C3=A8s wrote: > However, I=E2=80=99d recommend simply patching =E2=80=98configure=E2=80= =99 itself in a snippet, > using =E2=80=98substitute*=E2=80=99. That way, you won=E2=80=99t have to= add these dependencies > and extra phase. Thanks, substitute* is much neater and changing configure directly is working. I've just discovered though that the build includes makefile templates from the input postgres package, eg ...-postgresql-10.1/lib/pgxs/src/makefiles/pgxs.mk and parents. These makefiles are created from a separate run of `pg_config --sharedir` when building postgresql. I wonder whether it would be simpler to mock the "pg_config" program to return the paths I want, rather than patch out all the calls to it. Is that possible to do for a package and its inputs? What do you think? Regards, Ben --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEPn825zvdanEG+SAhAjwF4snAaPAFAlpijioACgkQAjwF4snA aPDTtA/7BPk2vIiTNY5AIWESg0mICggKUGDW4B7BVypFRYvy0FFH8NXnHOrS+74t 4RB8xOQHZ3+5BS5SgCBojL2ajSuY858kU2eL+hWGVhhUxYHB+e1iU36OMI1igO7B Em7xXXBCAS1MTDnarqO+dkqAZAIukdhjE/QcinLEFYCBqrJU3NGC6ghk04fGYOCe s3bXsdrJbfP8c1qCtEN0vq7sQUuT97yUDpsAVmWYp+zvGAcvgxpYa2egF5Yzb9D1 uEKfoXNAMg94MzXBkr2OTuMlkAWaKjKnODnGYZz4S5JVKnC6tUMABMtAqAPotMfk 4zw1B2o4+OXCIyQfOlBRZsJqESjC/jU9P3imk8IdjENtJ/L4rracTXlAVaDnwWS9 iaPdEZDxvV1YIgz93jIiJtyXEXplqThql2B9RGKn7g1mnFbAsuuxsAGWCqY/G5RT P3wKSu7OA0kmBEB5nFcOQajlRR2mQTeN5o0vmBULC6DCt7VRV0lOfWZdyzx3+Bpq 0can12K0Tf0K6aAJk4zI1i30FBWJTpawHHo9YT4ptnU08qrlXl3M9e2zCowEPTTE NNlh7kuZSkTZKekisXBmEbTyLphFbhC+aVuTqxLOrnLw4BuD+HpEohLAEzN9ZVmZ igQatNaL8gU89DJ0lM3748GRgmBpykMwCTnjPIwW/X5RJrSvHGs= =nsQs -----END PGP SIGNATURE----- --=-=-=--