Re: Problem with natively-built armhf bootstrap compiler

2015-01-07 Thread Ludovic Courtès
Mark H Weaver skribis: >> diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm >> index a7156bf..dd33a26 100644 >> --- a/gnu/packages/gcc.scm >> +++ b/gnu/packages/gcc.scm >> @@ -213,7 +213,7 @@ where the OS part is overloaded to denote a specific >> ABI---into GCC >> ;;

[PATCH] gnu: Add nss.

2015-01-07 Thread 宋文武
* gnu/packages/patches/nss.patch: New file. * gnu-system.scm (dist_patch_DATA): Add it. * gnu/packages/polkit.scm (nss): New variable. --- gnu-system.am | 1 + gnu/packages/patches/nss.patch | 241 + gnu/packages/polkit.scm| 84 ++

[PATCHES] gnu: bootstrap: Fix egrep and fgrep in bootstrap binaries

2015-01-07 Thread Mark H Weaver
The first of these two patches adds support for optional "snippets" to 'package-from-tarball', which is used to unpack the bootstrap tarballs. The second patch uses this new feature to patch the shebangs in 'egrep' and 'fgrep' immediately after unpacking the static-binaries bootstrap tarball. Obv

Re: Problem with natively-built armhf bootstrap compiler

2015-01-07 Thread Mark H Weaver
l...@gnu.org (Ludovic Courtès) writes: > Mark H Weaver skribis: > >>> diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm >>> index a7156bf..dd33a26 100644 >>> --- a/gnu/packages/gcc.scm >>> +++ b/gnu/packages/gcc.scm >>> @@ -213,7 +213,7 @@ where the OS part is overloaded to denote a specif

[PATCH] gnu: gmp: Apply fixes for armhf

2015-01-07 Thread Mark H Weaver
This is another patch needed for ARM. It depends on an earlier patch which moves 'nix-system->gnu-triplet' to (guix utils) and exports it (part of "'gcc-configure-flags-for-triplet' for native compilers too"). Mark >From 1e63fb1f2d7fa22bb9a009c055499e3c039a0bca Mon Sep 17 00:00:00 2001 From

[PATCHES] Use 'gcc-configure-flags-for-triplet' for native compilers too

2015-01-07 Thread Mark H Weaver
Hello Guix, These two patches change the 'gcc' packages so that the result of 'gcc-configure-flags-for-triplet' is passed to GCC's configure in all cases. Previously, they were only used when building cross compilers. On ARM, these extra flags are always needed to specify the hard-float ABI and t

[PATCH] gnu: gcc-static: Remove -lgcc_s from GNU_USER_TARGET_LIB_SPEC

2015-01-07 Thread Mark H Weaver
Here's my proposed patch to fix our generated bootstrap gcc to not try to link with the nonexistent -lgcc_s. I used this to create the current set of 'armhf-linux' bootstrap tarballs and to bootstrap my initial system (including 'emacs'). What do you think? Mark >From 108a59f3b2ec5d3551c5

[PATCH] gnu: patchelf: On ARM, apply experimental patch to get it working

2015-01-07 Thread Mark H Weaver
The upstream 'patchelf' doesn't work on ARM, and apparently the problems are non-trivial to fix. See: https://github.com/NixOS/patchelf/issues/8 This commit applies the only patch I was able to find to get it (mostly) working. Unfortunately, I found that this modified 'patchelf' corrupted one

libtool and libltdl are now separate packages

2015-01-07 Thread Ludovic Courtès
Just a heads-up: in core-updates, with commit 3246cc9, libtool and libltdl are now two separate packages. Packages have been updated to refer to (hopefully) the right one. Ludo’.

Re: [PATCH] gnu: Add nss.

2015-01-07 Thread Mark H Weaver
宋文武 writes: > * gnu/packages/patches/nss.patch: New file. > * gnu-system.scm (dist_patch_DATA): Add it. > * gnu/packages/polkit.scm (nss): New variable. polkit.scm seems like the wrong place for 'nss', although admittedly it's not obvious where it should go. > --- > gnu-system.am

Re: [PATCH] gnu: gcc-static: Remove -lgcc_s from GNU_USER_TARGET_LIB_SPEC

2015-01-07 Thread Ludovic Courtès
Mark H Weaver skribis: > Here's my proposed patch to fix our generated bootstrap gcc to not try > to link with the nonexistent -lgcc_s. I used this to create the current > set of 'armhf-linux' bootstrap tarballs and to bootstrap my initial > system (including 'emacs'). > > What do you think? I

Re: [PATCH 3/4] gnu: libcanberra: Add propagated-input.

2015-01-07 Thread Federico Beffa
On Sun, Dec 21, 2014 at 4:33 PM, Federico Beffa wrote: > On Sun, Dec 21, 2014 at 12:06 PM, Ludovic Courtès wrote: >> Federico Beffa skribis: >> >>> I propose to make sound-theme-freedesktop a propagated input of >>> libcanberra. This is because, according to the XDG sound theme >>> specification

Re: [PATCH] gnu: gmp: Apply fixes for armhf

2015-01-07 Thread Ludovic Courtès
Mark H Weaver skribis: > From 1e63fb1f2d7fa22bb9a009c055499e3c039a0bca Mon Sep 17 00:00:00 2001 > From: Mark H Weaver > Date: Wed, 31 Dec 2014 04:17:45 -0500 > Subject: [PATCH] gnu: gmp: Apply fixes for armhf. > > * gnu/packages/patches/gmp-arm-asm-nothumb.patch: New file. > * gnu-system.am (dis

Re: [PATCHES] Use 'gcc-configure-flags-for-triplet' for native compilers too

2015-01-07 Thread Ludovic Courtès
Mark H Weaver skribis: > From ed1644c06ce49658ba7399928512eaaaefcdffb3 Mon Sep 17 00:00:00 2001 > From: Mark H Weaver > Date: Wed, 31 Dec 2014 03:47:40 -0500 > Subject: [PATCH 1/2] Move 'nix-system->gnu-triplet' to (guix utils) and > export it. > > * gnu/packages/commencement.scm (nix-system->g

Re: [PATCH 1/4] guix: build/glib-or-gtk-build-system: Add support for GIO and XDG theming.

2015-01-07 Thread Federico Beffa
On Sun, Dec 21, 2014 at 11:54 AM, Ludovic Courtès wrote: > Federico Beffa skribis: > >> On Fri, Dec 19, 2014 at 1:56 PM, 宋文武 wrote: >>> FYI, every apps will install icons into 'hicolor-icon-theme', >>> for it to work, we need regenerated the 'icon-theme.cache' >>> by `gtk-update-icon-cache`. >>

Re: [PATCHES] gnu: bootstrap: Fix egrep and fgrep in bootstrap binaries

2015-01-07 Thread Ludovic Courtès
Mark H Weaver skribis: > From 00e491bc64f6aa1fcebd19d1aa7370d1708d9d3a Mon Sep 17 00:00:00 2001 > From: Mark H Weaver > Date: Wed, 31 Dec 2014 03:38:26 -0500 > Subject: [PATCH 1/2] gnu: bootstrap: Add support for snippets to > 'package-from-tarball'. > > * gnu/packages/bootstrap.scm (package-fr

Re: [PATCH] gnu: patchelf: On ARM, apply experimental patch to get it working

2015-01-07 Thread Ludovic Courtès
Mark H Weaver skribis: > The upstream 'patchelf' doesn't work on ARM, and apparently the problems > are non-trivial to fix. See: > > https://github.com/NixOS/patchelf/issues/8 > > This commit applies the only patch I was able to find to get it (mostly) > working. > > Unfortunately, I found tha

[PATCH] gnu: Add support for the 'armhf-linux' system

2015-01-07 Thread Mark H Weaver
Hello Guix, This patch adds support for the 'armhf-linux' system. It is for core-updates. The attached patch is excerpted, for review purposes. It is missing the bootstrap binaries, since they are quite large. Comments and suggestions welcome! Mark >From 4a9d9c327b501b43c96cb42859

Re: [PATCH] gnu: Add support for the 'armhf-linux' system

2015-01-07 Thread Ludovic Courtès
Mark H Weaver skribis: > From 4a9d9c327b501b43c96cb42859329a7d1a9520b5 Mon Sep 17 00:00:00 2001 > From: Mark H Weaver > Date: Wed, 31 Dec 2014 04:23:12 -0500 > Subject: [PATCH] gnu: Add support for the 'armhf-linux' system. > > Based on preliminary work by John Darrington . > > * gnu/packages/bo

Re: [PATCH 3/4] gnu: libcanberra: Add propagated-input.

2015-01-07 Thread Ludovic Courtès
(Sorry for the delay.) Federico Beffa skribis: > On Sun, Dec 21, 2014 at 12:06 PM, Ludovic Courtès wrote: >> Federico Beffa skribis: >> >>> I propose to make sound-theme-freedesktop a propagated input of >>> libcanberra. This is because, according to the XDG sound theme >>> specification, thos

Re: [PATCH] gnu: luajit: Add -fPIC into CFLAGS.

2015-01-07 Thread Ludovic Courtès
Tomas Cech skribis: > /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: > > /gnu/store/ij22m0lalbagkm4fflnxc9691ax4bpvk-luajit-2.0.3/lib/libluajit-5.1.a(lj_err.o): > relocation R_X86_64_32S against `.rodata' can not be used when making a > shared object; recompile