Re: [PATCH] gnu: Add SDL extension libraries

2013-11-23 Thread Ludovic Courtès
David Thompson dthomps...@worcester.edu skribis:

 Updated patch attached. If you think it looks good I can push it to master.

Looks good to me, please push!

Ludo’.



Re: [PATCH] gnu: Add SDL extension libraries

2013-11-23 Thread David Thompson
On 11/23/2013 05:42 AM, Ludovic Courtès wrote:
 Looks good to me, please push!
 
 Ludo’. 

Pushed!



PATCH: Detect missing pkg.m4

2013-11-23 Thread John Darrington
configure.ac depends on pkg-config 

I try to avoid pkg-config if at all possible.  It is a source of constant 
aggrevation.

However, if it is absolutely unavoidable I recommend the attached patch.  It 
detects
pkg-config problems early in the bootstrap process, rather than delaying their 
discovery
till halfway through the build.

J'

-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.

From ed23edf3a6020c87af7030a722a4705af10e2939 Mon Sep 17 00:00:00 2001
From: John Darrington j...@darrington.wattle.id.au
Date: Sat, 23 Nov 2013 13:43:33 +0100
Subject: [PATCH] configure.ac: Added macros to help detect missing pkg.m4

---
 configure.ac |3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure.ac b/configure.ac
index 7a67efa..2590435 100644
--- a/configure.ac
+++ b/configure.ac
@@ -41,6 +41,9 @@ AC_ARG_ENABLE([daemon],
 guix_localstatedir=`eval echo $localstatedir | sed -e s|NONE|/usr/local|g`
 AC_SUBST([guix_localstatedir])
 
+PKG_PROG_PKG_CONFIG
+m4_pattern_forbid([PKG_CHECK_MODULES])
+
 PKG_CHECK_MODULES([GUILE], [guile-2.0 = 2.0.5])
 AC_PATH_PROG([GUILE], [guile])
 AC_PATH_PROG([GUILD], [guild])
-- 
1.7.10.4



signature.asc
Description: Digital signature


Re: Seg fault when building from git

2013-11-23 Thread Ludovic Courtès
John Darrington j...@darrington.wattle.id.au skribis:

 Trying to build guix from the git repository:

 make[2]: Entering directory `/Scratch/john/guix-dev'
 /bin/mkdir -p `dirname guix/scripts/build.go` ;   \
 LC_ALL=C\
 ./pre-inst-env  \
 /usr/bin/guild compile -L . -L /home/john/guix  \
   -Wformat -Wunbound-variable -Warity-mismatch  \
   --target=i686-pc-linux-gnu
   \
   -o guix/scripts/build.go /home/john/guix/guix/scripts/build.scm
 /bin/bash: line 6: 26023 Segmentation fault  LC_ALL=C ./pre-inst-env 
 /usr/bin/guild compile -L . -L /home/john/guix -Wformat 
 -Wunbound-variable -Warity-mismatch --target=i686-pc-linux-gnu -o 
 guix/scripts/build.go /home/john/guix/guix/scripts/build.scm
 make[2]: *** [guix/scripts/build.go] Error 139

Could you do:

  ulimit -c unlimited
  rm -f guix/scripts/build.go
  make guix/scripts/build.go

and then, assuming it segfaulted again:

  gdb $(which guile) core
  (gdb) bt full

What does ‘guile --version’ say?

Thanks,
Ludo’.



Re: Seg fault when building from git

2013-11-23 Thread John Darrington
On Sat, Nov 23, 2013 at 04:27:34PM +0100, Ludovic Court??s wrote:
 
 Could you do:
 
   ulimit -c unlimited
   rm -f guix/scripts/build.go
   make guix/scripts/build.go
 
 and then, assuming it segfaulted again:
 
   gdb $(which guile) core
   (gdb) bt full

Backtrace is attached.
 
 What does ???guile --version??? say?

guile (GNU Guile) 2.0.5-deb+1-3
 

Also,  the problem appears to be related to lack of space in /tmp

-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.

john@jocasta:/Scratch/john/guix-dev$ ulimit -c unlimited
john@jocasta:/Scratch/john/guix-dev$ rm -rf guix/scripts/build.go 
john@jocasta:/Scratch/john/guix-dev$ make !$
make guix/scripts/build.go
/bin/mkdir -p `dirname guix/scripts/build.go` ;   \
LC_ALL=C\
./pre-inst-env  \
/usr/bin/guild compile -L . -L /home/john/guix  \
  -Wformat -Wunbound-variable -Warity-mismatch  \
  --target=i686-pc-linux-gnu  
\
  -o guix/scripts/build.go /home/john/guix/guix/scripts/build.scm
;;; note: source file /Scratch/john/guix-dev/srfi/srfi-37.scm
;;;   newer than compiled /usr/lib/guile/2.0/ccache/srfi/srfi-37.go
;;; found fresh local cache at 
/home/john/.cache/guile/ccache/2.0-LE-4-2.0/Scratch/john/guix-dev/srfi/srfi-37.scm.go
/bin/bash: line 6: 32675 Segmentation fault  (core dumped) LC_ALL=C 
./pre-inst-env /usr/bin/guild compile -L . -L /home/john/guix -Wformat 
-Wunbound-variable -Warity-mismatch --target=i686-pc-linux-gnu -o 
guix/scripts/build.go /home/john/guix/guix/scripts/build.scm
make: *** [guix/scripts/build.go] Error 139
john@jocasta:/Scratch/john/guix-dev$ ls core 
core
john@jocasta:/Scratch/john/guix-dev$ gdb $(which guile) core
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as i486-linux-gnu.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/bin/guile...(no debugging symbols found)...done.
[New LWP 32675]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library 
/lib/i386-linux-gnu/i686/cmov/libthread_db.so.1.
Core was generated by `/usr/bin/guile -e (@@ (guild) main) -s /usr/bin/guild 
compile -L . -L /home/joh'.
Program terminated with signal 11, Segmentation fault.
#0  0x408701e5 in scm_init_gnutls () from 
/usr/lib/i386-linux-gnu/libguile-gnutls-v-1.so
(gdb) bt full
#0  0x408701e5 in scm_init_gnutls () from 
/usr/lib/i386-linux-gnu/libguile-gnutls-v-1.so
No symbol table info available.
#1  0x4012aee2 in scm_dynamic_call () from /usr/lib/libguile-2.0.so.22
No symbol table info available.
#2  0x40093949 in ?? () from /usr/lib/libguile-2.0.so.22
No symbol table info available.
#3  0x40093980 in scm_load_extension () from /usr/lib/libguile-2.0.so.22
No symbol table info available.
#4  0x401282ce in ?? () from /usr/lib/libguile-2.0.so.22
No symbol table info available.
#5  0x40129afa in ?? () from /usr/lib/libguile-2.0.so.22
No symbol table info available.
#6  0x4008f887 in scm_primitive_eval () from /usr/lib/libguile-2.0.so.22
No symbol table info available.
#7  0x400b61f3 in scm_primitive_load () from /usr/lib/libguile-2.0.so.22
No symbol table info available.
#8  0x400b66cc in scm_primitive_load_path () from /usr/lib/libguile-2.0.so.22
No symbol table info available.
#9  0x401282dc in ?? () from /usr/lib/libguile-2.0.so.22
No symbol table info available.
#10 0x40129afa in ?? () from /usr/lib/libguile-2.0.so.22
No symbol table info available.
#11 0x4008f21c in scm_call_3 () from /usr/lib/libguile-2.0.so.22
No symbol table info available.
#12 0x400bac4a in scm_module_variable () from /usr/lib/libguile-2.0.so.22
No symbol table info available.
#13 0x400baafc in scm_module_variable () from /usr/lib/libguile-2.0.so.22
No symbol table info available.
#14 0x401282ce in ?? () from /usr/lib/libguile-2.0.so.22
No symbol table info available.
#15 0x40129afa in ?? () from /usr/lib/libguile-2.0.so.22
No symbol table info available.
#16 0x4008f887 in scm_primitive_eval () from /usr/lib/libguile-2.0.so.22
No symbol table info available.
#17 0x400b61f3 in scm_primitive_load () from /usr/lib/libguile-2.0.so.22
No symbol table info available.
#18 0x400b66cc in scm_primitive_load_path () from /usr/lib/libguile-2.0.so.22
No symbol table info available.
#19 0x401282dc in ?? () from /usr/lib/libguile-2.0.so.22
No symbol 

Re: Seg fault when building from git

2013-11-23 Thread Ludovic Courtès
John Darrington j...@darrington.wattle.id.au skribis:

 guile (GNU Guile) 2.0.5-deb+1-3

OK.  (It should work, but that’s very old.)

 Also,  the problem appears to be related to lack of space in /tmp

Not sure.

 Program terminated with signal 11, Segmentation fault.
 #0  0x408701e5 in scm_init_gnutls () from 
 /usr/lib/i386-linux-gnu/libguile-gnutls-v-1.so
 (gdb) bt full
 #0  0x408701e5 in scm_init_gnutls () from 
 /usr/lib/i386-linux-gnu/libguile-gnutls-v-1.so
 No symbol table info available.
 #1  0x4012aee2 in scm_dynamic_call () from /usr/lib/libguile-2.0.so.22
 No symbol table info available.
 #2  0x40093949 in ?? () from /usr/lib/libguile-2.0.so.22
 No symbol table info available.
 #3  0x40093980 in scm_load_extension () from /usr/lib/libguile-2.0.so.22
 No symbol table info available.

What does ‘ldd /usr/lib/i386-linux-gnu/libguile-gnutls-v-1.so’ report?

It may be that it’s linked against libguile.so from Guile 1.8, which
would obviously break the whole thing.

Thanks,
Ludo’.



Re: core-updates merge imminent

2013-11-23 Thread Ludovic Courtès
l...@gnu.org (Ludovic Courtès) skribis:

 It seems we can soon merge ‘core-updates’.  So far Hydra has been
 building the core packages of that branch, and the only problem left is
 the cross-compilation of the bootstrap GCC (‘%gcc-static’ in
 make-bootstrap.scm), which is annoying but not blocking (see
 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59217 for details.)
 Mark has also been building some of it on the Loongson.

I’ve just merged the core-updates branch.  There’s little breakage
AFAICS ;-), but please do check your packages and report anything
suspicious.

Also, the good news is that the cross-compilation issue reported above
is fixed by 0ece707.

Ludo’.



[PATCH] gnu:add SLiM v2

2013-11-23 Thread Guy Grant
Second version of the patch to add SLiM, the Desktop/Session Manager.
As always, any questions or concerns -- feel free to mention them.

- GGFrom 264c0bd3633eb325e33a07511b1233b5e27b05ce Mon Sep 17 00:00:00 2001
From: gzg g...@riseup.net
Date: Sat, 23 Nov 2013 10:48:47 -0600
Subject: [PATCH] Add SLiM to packages.

---
 gnu/packages/slim.scm | 81 +++
 1 file changed, 81 insertions(+)
 create mode 100644 gnu/packages/slim.scm

diff --git a/gnu/packages/slim.scm b/gnu/packages/slim.scm
new file mode 100644
index 000..19d8deb
--- /dev/null
+++ b/gnu/packages/slim.scm
@@ -0,0 +1,81 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2013 Guy Grant g...@riseup.net
+;;;
+;;; 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 http://www.gnu.org/licenses/.
+
+(define-module (gnu packages slim)
+  #:use-module ((guix licenses) 
+#:renamer (symbol-prefix-proc 'l:)) 
+  #:use-module (guix packages)
+  #:use-module (guix download)
+  #:use-module (guix build-system cmake)
+  #:use-module (guix packages)
+  #:use-module (gnu packages gl)
+  #:use-module (gnu packages xorg)
+  #:use-module (gnu packages libpng)
+  #:use-module (gnu packages libjpeg)
+  #:use-module (gnu packages fontutils)
+  #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages linux))
+
+(define-public slim
+  (package
+(name slim)
+(version 1.3.3)
+(source (origin
+	 (method url-fetch)
+	 (uri (string-append mirror://sourceforge/project/slim.berlios/slim-
+  version .tar.gz))
+	 (sha256
+	  (base32 1fdvipj3658s8dm78djmfr8xhg6l8rr7kc4qcb34bjrnkkclhln1
+(build-system cmake-build-system)
+(inputs `((linux-pam ,linux-pam)
+  (libpng ,libpng)
+  (libjpeg ,libjpeg)
+  (freeglut ,freeglut)
+  (libxrandr ,libxrandr)
+  (libxrender ,libxrender)
+  (freetype ,freetype)
+  (fontconfig ,fontconfig)
+  (pkg-config ,pkg-config)
+  (libx11 ,libx11)
+  (libxft ,libxft)
+  (libxmu ,libxmu)
+  (xauth ,xauth)))
+(arguments 
+ '(#:phases (alist-cons-before
+ 'configure 'set-new-etc-location
+ (lambda _ 
+   (substitute* CMakeLists.txt 
+ '((/etc) 
+  (string-append
+   (assoc-ref %outputs out) /etc
+ %standard-phases)
+   #:configure-flags '(-DUSE_PAM=yes -DUSE_CONSOLEKIT=no)
+   #:tests? #f))  
+(home-page http://www.slim.berlios.de/;)
+(synopsis Desktop-independent graphcal login manager for X11)
+(description
+ SLiM is a Desktop-independent graphical login manager for X11, derived 
+from Login.app. It aims to be light and simple, although completely configurable 
+through themes and an option file; is suitable for machines on which remote login 
+functionalities are not needed. 
+
+Features included: PNG and XFT support for alpha transparency and antialiased fonts,
+External themes support, Configurable runtime options: X server -- login / shutdown / reboot 
+commands, Single (GDM-like) or double (XDM-like) input control, Can load predefined user at 
+startup, Configurable welcome / shutdown messages, Random theme selection)
+(license l:gpl2)))
-- 
1.8.4.2