From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id CFTUKVs00l4FMQAA0tVLHw (envelope-from ) for ; Sat, 30 May 2020 10:24:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id ABiVJVs00l7KVwAA1q6Kng (envelope-from ) for ; Sat, 30 May 2020 10:24:27 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 32F7794042C for ; Sat, 30 May 2020 10:24:27 +0000 (UTC) Received: from localhost ([::1]:57990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeyfC-0007vk-0G for larch@yhetil.org; Sat, 30 May 2020 06:24:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56950) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeyf3-0007vX-Sn for guix-devel@gnu.org; Sat, 30 May 2020 06:24:17 -0400 Received: from mail2.protonmail.ch ([185.70.40.22]:25738) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeyf2-0005Ou-55 for guix-devel@gnu.org; Sat, 30 May 2020 06:24:17 -0400 Date: Sat, 30 May 2020 10:24:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech; s=protonmail; t=1590834250; bh=q6eZNt5Mzt7Febw6wdKbEpSZWvIqYW5SZpKz6jYojEM=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=sf0OfjlPb86GxbW+y+Wi6clcFg842YgyLsAvqGtOYXJYpP0APoDkl7lzZ4hgjrpwO 45JXIoQebV/T1ZvH168WrOIdGRRaHfJ7ndlgo5McFYa0XsxYkRRH6Pwa45PCKPhWUf LGlBfUsu/bUGAPlxjMA6neV1WSU9Z/BvLuAV4N1o= To: Hartmut Goebel From: Ekaitz Zarraga Subject: Re: Downloader for "wrapped" tarbar? Message-ID: <4x42Vm75a7a2zFErZhcAm9a9nYeo4wfJHNeswtSz2HSarPrxkU8AD0KVhHMOr65NPlCJPMBuGWfbxzg96ym_3j08VqR5KAWdBIM8J5QwITM=@elenq.tech> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.22; envelope-from=ekaitz@elenq.tech; helo=mail2.protonmail.ch X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/30 06:13:30 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Ekaitz Zarraga Cc: Guix-devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elenq.tech header.s=protonmail header.b=sf0OfjlP; dmarc=pass (policy=none) header.from=elenq.tech; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -0.71 X-TUID: T/OBbXVuHUyx =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Saturday, May 30, 2020 10:39 AM, Hartmut Goebel wrote: > Hi, > > was just written in another mail, I'm currently working on a > erlang/rebar build system. This includes an importer from hex.pm, a > package repository for elixir and erlang packages. (Since this is build > into rebar3 I assume it what PyPI is for Python and CPAN for Perl.) > > At hex.pm, packages are provided in a tarfile [1] wrapping the source > tar-file: > > -rw-r--r-- 0/0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1 2017-06-14 21:57 VERSION > -rw-r--r-- 0/0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 64 2017-06-14 21:57 CHECKSUM > -rw-r--r-- 0/0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 532 2017-06-14 21:57 metadata.config > -rw-r--r-- 0/0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 4744 2017-06-14 21:57 contents.tar.gz > > IMHO it does not make sense to keep this wrapping tar-file in the store. > > So my idea is to create a "hexpm-fetch" method, which downloads the > tar-file and only stores the "content.tar.gz" in the store (using a > proper name, of course). > > How can this be done? > > [1] https://github.com/hexpm/specifications/blob/master/package_tarball.m= d > > Hi, Probably you're able to reach the same conclusions as I did but anyway... I took a look to guix/download.scm I think you just need to check what url-= fetch/zipbomb does because the usecase is similar to what you are looking f= or. Hope this helps at least a little. Thanks for the work you are doing, I'm interested on it because I want to p= ackage Wings3D, so once you are done you'll probably have a tester :) Best, Ekaitz