From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: [PATCH] gnu: Add TuxGuitar. Date: Sun, 20 Sep 2015 17:39:30 +0200 Message-ID: <87fv295cct.fsf@elephly.net> References: <874mob2zaf.fsf@mango.localdomain> <87383th3kn.fsf@gnu.org> <87k2x51cta.fsf@mango.localdomain> <87h9s7zy4z.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42161) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdgiO-0002Mx-AT for guix-devel@gnu.org; Sun, 20 Sep 2015 11:39:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZdgiN-0001Ry-B6 for guix-devel@gnu.org; Sun, 20 Sep 2015 11:39:44 -0400 In-reply-to: <87h9s7zy4z.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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: Guix-devel Ludovic Courtès writes: > Ricardo Wurmus skribis: > >> The >> SWT tarball does include jars but these are binaries of the library. >> The package recipe ignores them and only works on the sources in src.zip > > OK. What about adding a snippet that removes all these jars anyway, > mostly “to be safe” and to not convey the impression that we’re bundling > pre-built binaries? I just tried to do this, but I get stuck as Guix seems to think that the sources are located in the “about_files” directory: ~~~~~~ ... Archive: /gnu/store/lkk22318a7mrj5m7mx0s574raa4kj7h0-swt-4.4.2-gtk-linux-x86.zip creating: about_files/ inflating: .classpath inflating: .project inflating: about.html inflating: about_files/IJG_README inflating: about_files/lgpl-v21.txt inflating: about_files/mpl-v11.txt inflating: about_files/mpl-v20.txt inflating: about_files/webkit-bsd.txt inflating: src.zip inflating: swt-debug.jar inflating: swt.jar source is under 'about_files' ... ~~~~~~ In fact, the sources are in the “src.zip” archive. Currently, I just replace the “unpack” phase to take care of this, but I don’t know how to fix this in a snippet. I’d like to repackage just the contents of “src.zip” as the source tarball, but ‘patch-and-repack’ doesn’t make it easy. ~~ Ricardo