From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: [PATCH] distro: Add file. Date: Thu, 17 Jan 2013 22:12:40 +0100 Message-ID: <201301172212.40141.andreas@enge.fr> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_IlG+QSori1usv2N" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvwlY-0003DC-0I for bug-guix@gnu.org; Thu, 17 Jan 2013 16:12:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvwlR-0002x8-6K for bug-guix@gnu.org; Thu, 17 Jan 2013 16:12:51 -0500 Received: from moutng.kundenserver.de ([212.227.126.171]:51580) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvwlQ-0002vv-Rz for bug-guix@gnu.org; Thu, 17 Jan 2013 16:12:45 -0500 List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: bug-guix@gnu.org --Boundary-00=_IlG+QSori1usv2N Content-Type: multipart/alternative; boundary="Boundary-01=_IlG+QyMcyZx2tIm" Content-Transfer-Encoding: 7bit --Boundary-01=_IlG+QyMcyZx2tIm Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Patch for "file" attached. Strangely, it uses "file" in its configure script, but this does not seem to be crucial: case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) etc. Andreas --Boundary-01=_IlG+QyMcyZx2tIm Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit

Patch for "file" attached. Strangely, it uses "file" in its configure script, but this does not seem to be crucial:

 

case `/usr/bin/file conftest.o` in

*32-bit*)

case $host in

x86_64-*kfreebsd*-gnu)

LD="${LD-ld} -m elf_i386_fbsd"

;;

x86_64-*linux*)

LD="${LD-ld} -m elf_i386"

;;

ppc64-*linux*|powerpc64-*linux*)

LD="${LD-ld} -m elf32ppclinux"

;;

s390x-*linux*)

LD="${LD-ld} -m elf_s390"

;;

sparc64-*linux*)

LD="${LD-ld} -m elf32_sparc"

;;

esac

;;

*64-bit*)

case $host in

x86_64-*kfreebsd*-gnu)

 

etc.

 

Andreas

 

--Boundary-01=_IlG+QyMcyZx2tIm-- --Boundary-00=_IlG+QSori1usv2N Content-Type: text/x-patch; charset="UTF-8"; name="0001-distro-Add-file.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0001-distro-Add-file.patch" =46rom 5ec3cc8062a4079d80c2231c9c91e04cbca8e26c Mon Sep 17 00:00:00 2001 =46rom: Andreas Enge Date: Thu, 17 Jan 2013 22:09:15 +0100 Subject: [PATCH] distro: Add file. * distro/packages/file.scm: New file. * Makefile.am (MODULES): Add it. =2D-- Makefile.am | 2 ++ distro/packages/file.scm | 44 ++++++++++++++++++++++++++++++++++++++++++= ++ 2 files changed, 46 insertions(+) create mode 100644 distro/packages/file.scm diff --git a/Makefile.am b/Makefile.am index beba7df..3efe369 100644 =2D-- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,6 @@ # GNU Guix --- Functional package management for GNU # Copyright =C2=A9 2012, 2013 Ludovic Court=C3=A8s +# Copyright =C2=A9 2013 Andreas Enge # # This file is part of GNU Guix. # @@ -63,6 +64,7 @@ MODULES =3D \ distro/packages/ddrescue.scm \ distro/packages/ed.scm \ distro/packages/emacs.scm \ + distro/packages/file.scm \ distro/packages/flex.scm \ distro/packages/gawk.scm \ distro/packages/gdb.scm \ diff --git a/distro/packages/file.scm b/distro/packages/file.scm new file mode 100644 index 0000000..61bdd71 =2D-- /dev/null +++ b/distro/packages/file.scm @@ -0,0 +1,44 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright =C2=A9 2013 Andreas Enge +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (distro packages file) + #:use-module (distro) + #:use-module (guix licenses) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix build-system gnu)) + +(define-public file + (package + (name "file") + (version "5.12") + (source (origin + (method url-fetch) + (uri (string-append "ftp://ftp.astron.com/pub/file/file-" + version ".tar.gz")) + (sha256 (base32 + "08ix4xrvan0k80n0l5lqfmc4azjv5lyhvhwdxny4r09j5smhv78r= ")))) + (build-system gnu-build-system) + (synopsis "file, a file type guesser") + (description + "The file command is a file type guesser, a command-line tool that tel= ls +you in words what kind of data a file contains. It does not rely on filena= me +extentions to tell you the type of a file, but looks at the actual contents +of the file.") + (license bsd-2) + (home-page "http://www.darwinsys.com/file/"))) =2D-=20 1.7.10.4 --Boundary-00=_IlG+QSori1usv2N-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] distro: Add file. Date: Thu, 17 Jan 2013 22:55:58 +0100 Message-ID: <87mww75v9t.fsf@gnu.org> References: <201301172212.40141.andreas@enge.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56350) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvxRN-0008AJ-GI for bug-guix@gnu.org; Thu, 17 Jan 2013 16:56:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvxRL-0005s4-Cm for bug-guix@gnu.org; Thu, 17 Jan 2013 16:56:05 -0500 Received: from mail4-relais-sop.national.inria.fr ([192.134.164.105]:45081) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvxRL-0005ro-6I for bug-guix@gnu.org; Thu, 17 Jan 2013 16:56:03 -0500 In-Reply-To: <201301172212.40141.andreas@enge.fr> (Andreas Enge's message of "Thu, 17 Jan 2013 22:12:40 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Andreas Enge Cc: bug-guix@gnu.org Andreas Enge skribis: > Patch for "file" attached. Strangely, it uses "file" in its configure=20 > script, but this does not seem to be crucial: > > case `/usr/bin/file conftest.o` in I think this bit is automatically added by Autoconf everywhere. Nothing to worry about, it seems. > From 5ec3cc8062a4079d80c2231c9c91e04cbca8e26c Mon Sep 17 00:00:00 2001 > From: Andreas Enge > Date: Thu, 17 Jan 2013 22:09:15 +0100 > Subject: [PATCH] distro: Add file. > > * distro/packages/file.scm: New file. > * Makefile.am (MODULES): Add it. Fine with me! Thanks, Ludo=E2=80=99. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: Re: [PATCH] distro: Add file. Date: Thu, 17 Jan 2013 23:17:01 +0100 Message-ID: <201301172317.01798.andreas@enge.fr> References: <201301172212.40141.andreas@enge.fr> <87mww75v9t.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="Boundary-01=_dhH+QflLkcSVngI" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35223) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tvxqg-0007jR-3Q for bug-guix@gnu.org; Thu, 17 Jan 2013 17:22:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvxmB-0003Ai-Mp for bug-guix@gnu.org; Thu, 17 Jan 2013 17:17:39 -0500 In-Reply-To: <87mww75v9t.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Ludovic =?utf-8?q?Court=C3=A8s?= Cc: bug-guix@gnu.org --Boundary-01=_dhH+QflLkcSVngI Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Am Donnerstag, 17. Januar 2013 schrieb Ludovic Court=C3=A8s: > Andreas Enge skribis: > > Patch for "file" attached. Strangely, it uses "file" in its configure > > script, but this does not seem to be crucial: > > case `/usr/bin/file conftest.o` in > I think this bit is automatically added by Autoconf everywhere. Nothing > to worry about, it seems. I added it as an input to libtiff. I suppose this is the right thing to do,= =20 or should I drop it there as well? Andreas --Boundary-01=_dhH+QflLkcSVngI Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Am Donnerst= ag, 17. Januar 2013 schrieb Ludovic Court=C3=A8s:

> Andrea= s Enge <andreas@enge.fr> skribis:

> > P= atch for "file" attached. Strangely, it uses "file" in = its configure

> > s= cript, but this does not seem to be crucial:

> > = case `/usr/bin/file conftest.o` in

> I thin= k this bit is automatically added by Autoconf everywhere. Nothing

> to wor= ry about, it seems.

&nb= sp;

I added it = as an input to libtiff. I suppose this is the right thing to do, or should = I drop it there as well?

&nb= sp;

Andreas

&nb= sp;

--Boundary-01=_dhH+QflLkcSVngI-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] distro: Add file. Date: Fri, 18 Jan 2013 00:18:33 +0100 Message-ID: <8738xz5rg6.fsf@gnu.org> References: <201301172212.40141.andreas@enge.fr> <87mww75v9t.fsf@gnu.org> <201301172317.01798.andreas@enge.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvyjF-0001EN-12 for bug-guix@gnu.org; Thu, 17 Jan 2013 18:18:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvyjD-0002D0-V0 for bug-guix@gnu.org; Thu, 17 Jan 2013 18:18:36 -0500 Received: from mail4-relais-sop.national.inria.fr ([192.134.164.105]:49386) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvyjD-0002Cc-Oi for bug-guix@gnu.org; Thu, 17 Jan 2013 18:18:35 -0500 In-Reply-To: <201301172317.01798.andreas@enge.fr> (Andreas Enge's message of "Thu, 17 Jan 2013 23:17:01 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Andreas Enge Cc: bug-guix@gnu.org Andreas Enge skribis: > Am Donnerstag, 17. Januar 2013 schrieb Ludovic Court=C3=A8s: >> Andreas Enge skribis: >> > Patch for "file" attached. Strangely, it uses "file" in its configure >> > script, but this does not seem to be crucial: >> > case `/usr/bin/file conftest.o` in >> I think this bit is automatically added by Autoconf everywhere. Nothing >> to worry about, it seems. > > I added it as an input to libtiff. I suppose this is the right thing to d= o,=20 > or should I drop it there as well? Well, since /usr/bin/file is hard-coded, adding =E2=80=98file=E2=80=99 as a= n input would not be enough: you=E2=80=99d also need to patch =E2=80=98configure=E2=80=99. However, this /usr/bin/file stanza in =E2=80=98configure=E2=80=99 scripts d= oesn=E2=80=99t seem to have any practical impact since we=E2=80=99ve been building without it f= or ages. So I would just keep ignoring it. :-) Ludo=E2=80=99. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: Re: [PATCH] distro: Add file. Date: Fri, 18 Jan 2013 00:21:18 +0100 Message-ID: <201301180021.19084.andreas@enge.fr> References: <201301172212.40141.andreas@enge.fr> <201301172317.01798.andreas@enge.fr> <8738xz5rg6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="Boundary-01=_udI+QEa7OQjkHhA" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47193) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tvym1-0001gg-4K for bug-guix@gnu.org; Thu, 17 Jan 2013 18:21:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tvyly-0003Hr-Oh for bug-guix@gnu.org; Thu, 17 Jan 2013 18:21:29 -0500 In-Reply-To: <8738xz5rg6.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Ludovic =?utf-8?q?Court=C3=A8s?= Cc: bug-guix@gnu.org --Boundary-01=_udI+QEa7OQjkHhA Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Am Freitag, 18. Januar 2013 schrieb Ludovic Court=C3=A8s: > Well, since /usr/bin/file is hard-coded, adding =E2=80=98file=E2=80=99 as= an input would > not be enough: you=E2=80=99d also need to patch =E2=80=98configure=E2=80= =99. Yes, this is what I did indeed. > However, this /usr/bin/file stanza in =E2=80=98configure=E2=80=99 scripts= doesn=E2=80=99t seem > to have any practical impact since we=E2=80=99ve been building without it= for > ages. So I would just keep ignoring it. :-) Okay, next time! Andreas --Boundary-01=_udI+QEa7OQjkHhA Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Am Freitag,= 18. Januar 2013 schrieb Ludovic Court=C3=A8s:

> Well, = since /usr/bin/file is hard-coded, adding =E2=80=98file=E2=80=99 as an inpu= t would

> not be= enough: you=E2=80=99d also need to patch =E2=80=98configure=E2=80=99.

&nb= sp;

Yes, this i= s what I did indeed.

&nb= sp;

> Howeve= r, this /usr/bin/file stanza in =E2=80=98configure=E2=80=99 scripts doesn= =E2=80=99t seem

> to hav= e any practical impact since we=E2=80=99ve been building without it for

> ages. = So I would just keep ignoring it. :-)

&nb= sp;

Okay, next = time!

&nb= sp;

Andreas

&nb= sp;

--Boundary-01=_udI+QEa7OQjkHhA--