From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Vong Subject: Re: 'package-name-version' and 'strip-store-file-name' does the same thing with different ways Date: Wed, 17 Oct 2018 06:04:52 +0800 Message-ID: <87a7ndfszf.fsf@gmail.com> References: <875zy3j9k9.fsf@gmail.com> <874ldmgl8p.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48078) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCXT6-0005ce-W3 for guix-devel@gnu.org; Tue, 16 Oct 2018 18:05:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCXSt-0007p7-3S for guix-devel@gnu.org; Tue, 16 Oct 2018 18:05:30 -0400 In-Reply-To: <874ldmgl8p.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 16 Oct 2018 13:54:30 +0200") 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@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Ludo, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Hello Alex, > > Alex Vong skribis: > >> I think we should remove the ones not defined in (guix build utils) and >> provide 'package-name-version' as alias for 'strip-store-file-name' in >> (guix build utils). What do you think? > > I think we can simply keep =E2=80=98strip-store-file-name=E2=80=99, witho= ut the alias, > and modify existing code to use it. > OK. > (That may trigger a lot of rebuilds though, so we=E2=80=99ll have to see = which > branch to apply it to.) > > Thanks for noticing! > You're welcomed! > Ludo=E2=80=99. Btw, I also noticed that the procedure 'flatten' are defined in (gnu services telephony), (gnu services web) and (guix import utils). [I was about to define my own version of it...] I like the version using 'fold-right' together with 'match-lambda*' the most. Should we move it (guix build utils) and remove the rest? Similarly, 'file-sans-extension' are defined in both (guix utils) and (guix build guile-build-system). They are both the same. Should we move them to (guix build utils) as well? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQSof2ZdXkE0FM5aU4XzrkvbI+zaGwUCW8ZghQAKCRDzrkvbI+za G8WFAQC0SVFPpq1tqT4WPOmGbE/PGDUL63KeONFBagdTMPXJTwEAnsjiHKlmx5za XTIW8oUTVNMHWuxW5umk+mQxuKbkTQ4= =xCkN -----END PGP SIGNATURE----- --=-=-=--