Re: [PATCH] New package: Seren

2016-07-03 Thread Alex Kost
Francesco Frassinelli (2016-05-05 17:34 +0300) wrote:

> I'm a new Guix user and I created a package for Seren, a P2P VoIP
> conference program which uses Opus as codec.

Ping!  Hello again, are you willing to send an updated patch, putting
'seren' in "gnu/packages/telephony.scm" and making other changes
according to
?

Sorry for bothering, your patch is mostly OK, but it would be nice if
seren was in (gnu packages telephony) module, thanks!

-- 
Alex



Re: [PATCH] gnu: Add di.

2016-07-03 Thread Alex Kost
John J Foerch (2016-07-04 06:47 +0300) wrote:

> John J Foerch  writes:
>
>> Leo Famulari  writes:
>>
>>> On Sat, Jul 02, 2016 at 03:13:52PM -0400, John J Foerch wrote:
 * gnu/packages/admin.scm (di): New variable.
>>>
>>> Thanks!
>>>
 +(arguments
 + `(#:phases
 +   (modify-phases %standard-phases
 + (delete 'configure)
 + (delete 'check)
>>>
>>> Did you try setting `#:test-target "test"` in the arguments? The
>>> Makefile has a test target.
>>>
>>
>> I didn't know about that.  I'll try it out.
>>
> A test relating to an included perl module Filesys::di fails.  I hadn't
> intended to include that module in the package, as all I'm interested in
> is the 'di' binary.  Given that, I would suggest that we bypass the
> tests.

As for me, I would also disable the tests.  All these handmade Makefiles
in all sub-directories are a nightmare.  I think trying to figure out
what is needed to run the tests doesn't worth it.

Also don't forget to add a copyright line for yourself in the beginning
of "admin.scm".

-- 
Alex



Re: Container howto for X11?

2016-07-03 Thread Pjotr Prins
Awesome, it works a charm :)

On Sun, Jul 03, 2016 at 06:12:07PM -0400, Thompson, David wrote:
> On Sun, Jul 3, 2016 at 2:40 PM, Pjotr Prins  wrote:
> > Is there a container howto for X11 applications? I would like to run
> > the browser in a Guix container. Fun with a serious note.
> 
> If you share the X11 socket file and set $DISPLAY to the right value,
> then you should be able to make that happen:
> 
> guix environment --container --network --share=/tmp/.X11-unix
> --ad-hoc icecat
> export DISPLAY=":0.0"
> icecat
> 
> Do note that the above code gives icecat full access to the X11 server
> and the host's network interfaces, so it's not exactly a locked down
> environment.
> 
> Perhaps we could use a command line switch to automatically do this
> sort of thing.
> 
> - Dave
> 

-- 



Re: [PATCH] gnu: Add fontconfig-path-max.

2016-07-03 Thread rennes

Hello,

thanks for the explanation.



Now regarding the patch, what is the status on upstream? Are those
fontconfig patches present in fontconfig upstream?



The current release is 2.12.0, and still uses the constant PATH_MAX.
And I have not found any related patch for this detail.

Thanks



Re: [PATCH] gnu: Add di.

2016-07-03 Thread John J Foerch
John J Foerch  writes:

> Leo Famulari  writes:
>
>> On Sat, Jul 02, 2016 at 03:13:52PM -0400, John J Foerch wrote:
>>> * gnu/packages/admin.scm (di): New variable.
>>
>> Thanks!
>>
>>> +(arguments
>>> + `(#:phases
>>> +   (modify-phases %standard-phases
>>> + (delete 'configure)
>>> + (delete 'check)
>>
>> Did you try setting `#:test-target "test"` in the arguments? The
>> Makefile has a test target.
>>
>
> I didn't know about that.  I'll try it out.
>

A test relating to an included perl module Filesys::di fails.  I hadn't
intended to include that module in the package, as all I'm interested in
is the 'di' binary.  Given that, I would suggest that we bypass the
tests.

--
John Foerch




Re: [PATCH 0/5] Sphinx reproducibility update

2016-07-03 Thread Leo Famulari
On Sun, Jul 03, 2016 at 11:54:02PM +0200, Ludovic Courtès wrote:
> iyzs...@member.fsf.org (宋文武) skribis:
> 
> > Leo Famulari  writes:
> >> [...]
> >>
> >> With this change, many Python 2 packages will become reproducible, at
> >> least on a single machine; the only thing holding them back was the
> >> manpage timestamps.
> > Cool!
> >
> >>
> >> These changes will require 142 rebuilds, mostly of Python packages, but
> >> also of libreoffice (libreoffice seems to depend on *everything*) and a
> >> few others. If the patches are good, should they go to master or to
> >> another branch?
> >>
> > I prefer master, and I guess people who use libreoffice don't update it
> > frequently (we have a old version, but no one complain so far).
> 
> (Oops, I replied before seeing your message.)  I have a slight
> preference for ‘core-updates’, which I hope can be merged within a few
> days.  Sounds good?

I incorporated the reviewers' comments and applied to core-updates,
bringing it to 98529948.

Thank you!



Re: [PATCH] gnurl: Update to 7.48.0.

2016-07-03 Thread ng0
I hope this works now.

>From 09b306ffa62d9555dc835dfb933a5ad4434a641e Mon Sep 17 00:00:00 2001
From: ng0 
Date: Fri, 1 Jul 2016 18:21:45 +
Subject: [PATCH] gnu: gnurl: Update to 7.48.0.

* gnu/packages/gnunet.scm (gnurl): Update to 7.48.0.
---
 gnu/packages/gnunet.scm | 11 +++
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/gnunet.scm b/gnu/packages/gnunet.scm
index bea05db..f052eab 100644
--- a/gnu/packages/gnunet.scm
+++ b/gnu/packages/gnunet.scm
@@ -153,13 +153,16 @@ and support for SSL3 and TLS.")
 (define-public gnurl
   (package
(name "gnurl")
-   (version "7.45.0")
+   (version "7.48.0")
(source (origin
 (method url-fetch)
-(uri (string-append "https://gnunet.org/sites/default/files/gnurl-";
-version ".tar.bz2"))
+(uri (let ((version-with-underscores
+(string-join (string-split version #\.) "_")))
+   (string-append "https://gnunet.org/sites/default/files/";
+  name "-" version-with-underscores 
".tar.bz2")))
 (sha256
- (base32 "0hd8w4wyjwagd4k6vm6srphqbmysz08rcwf8z7f4b2d6d2yrn3mm"
+ (base32
+  "14gch4rdibrc8qs4mijsczxvl45dsclf234g17dk6c8nc2s4bm0a"
(build-system gnu-build-system)
(inputs `(("gnutls" ,gnutls)
  ("libidn" ,libidn)
-- 
2.9.0


-- 
♥Ⓐ  ng0
For non-prism friendly talk find me on
psyced.org / loupsycedyglgamf.onion



Re: [PATCH] gnurl: Update to 7.48.0.

2016-07-03 Thread ng0
Updated patch is coming as the next message after I built it.

Efraim Flashner writes:

> I also got an error about a missing name, not sure what that's about.
>
> Applying: This updates libgnurl to 7.48.0.
> fatal: empty ident name (for <>) not allowed

This error is weird. As you can see from my patches, I have
name+email set, so git merge should complaint about a missing
name unless I was using a bad configuration, but
user.name and user.email are set.

-- 
♥Ⓐ  ng0
For non-prism friendly talk find me on
psyced.org / loupsycedyglgamf.onion



Re: [PATCH] gnu: Add fontconfig-path-max.

2016-07-03 Thread Manolis Ragkousis
Hello Rennes,

I am sorry for the long delay, I somehow missed the patch. Leo thank you
for telling me.

On 06/18/16 22:02, ren...@openmailbox.org wrote:
> Hello Guix team,
> 
> i'm doing tests whith GNU Guix on GNU Hurd, compiling fontconfig and
> there is an error during compilation:

Once again thank you :-)
> 
> a) fontconfig uses the constant PATH_MAX.
> 
> Reviewing the documentation about the treatment of constant for Hurd;
> i've attached a patch for review.
> 
> References:
> https://www.gnu.org/software/hurd/community/gsoc/project_ideas/maxpath.html
> https://www.gnu.org/software/hurd/hurd/porting/guidelines.html
> 
> and i've a couple of questions about:
> 
> a) How Guix identify if it is a Linux or Hurd system at compile or
> install the package?.
> b) i searches in ML an example, but i not found.

Currently we apply patches regardless of where it is running.

But one way to check the system is like in (gnu packages base)

(define* (glibc-for-target #:optional
   (target (or (%current-target-system)
   (%current-system
  "Return the glibc for TARGET, GLIBC/LINUX for a Linux host or
GLIBC/HURD for a Hurd host"
  (match target
((or "i586-pc-gnu" "i586-gnu") glibc/hurd)
(_ glibc/linux)))

If %current-target-system is not #f then we are cross-building for the
value inside it. %current-system has the value of the system we are
running on.

Now regarding the patch, what is the status on upstream? Are those
fontconfig patches present in fontconfig upstream?

Other than that, it looks good to me.

Thank you for helping on this,
Manolis.




gexps and ‘with-imported-modules’

2016-07-03 Thread Ludovic Courtès
Hello!

The ‘wip-gexp-imported-modules’ branch changes gexps so that each gexp
embeds information about which modules need to be imported into its
execution environment.

Before you would do:

  (gexp->derivation "foo"
#~(begin
(use-modules (guix build utils))
…)
#:modules '((guix build utils)))

to specify that (guix build utils) must be imported in the build
environment of “foo”.  After, it becomes:

  (gexp->derivation "foo"
(with-imported-modules '((guix build utils))
  #~(begin
  (use-modules (guix build utils))
  …)))

The gain (not visible here) is that when you nest gexps, the outermost
gexp now contains all the info about modules that need to be imported.
That way, no side channel is needed to carry the imported module info
(by “side channel”, I mean things like the ‘imported-modules’ field
currently found in  and several other places.)  Thus,
it should be easier to compose gexps.

I plan to merge it within a day or two.

Comments welcome!

Ludo’.



Re: Container howto for X11?

2016-07-03 Thread Thompson, David
On Sun, Jul 3, 2016 at 2:40 PM, Pjotr Prins  wrote:
> Is there a container howto for X11 applications? I would like to run
> the browser in a Guix container. Fun with a serious note.

If you share the X11 socket file and set $DISPLAY to the right value,
then you should be able to make that happen:

guix environment --container --network --share=/tmp/.X11-unix
--ad-hoc icecat
export DISPLAY=":0.0"
icecat

Do note that the above code gives icecat full access to the X11 server
and the host's network interfaces, so it's not exactly a locked down
environment.

Perhaps we could use a command line switch to automatically do this
sort of thing.

- Dave



Re: [PATCH] gnu: conkeror: Update to 1.0.3

2016-07-03 Thread John J Foerch
Efraim Flashner  writes:

> On Sun, Jul 03, 2016 at 11:50:37AM -0400, John J Foerch wrote:
>> From 71dd8a5b721a952dbe583922caef0a91b1a559cf Mon Sep 17 00:00:00 2001
>> From: "John J. Foerch" 
>> Date: Sun, 3 Jul 2016 11:46:20 -0400
>> Subject: [PATCH] gnu: conkeror: Update to 1.0.3.
>> 
>> * gnu/packages/conkeror.scm (conkeror): Update to 1.0.3.
>> ---
>>  gnu/packages/conkeror.scm | 9 -
>>  1 file changed, 4 insertions(+), 5 deletions(-)
>> 
>> diff --git a/gnu/packages/conkeror.scm b/gnu/packages/conkeror.scm
>> index cfeb22e..0c247e8 100644
>> --- a/gnu/packages/conkeror.scm
>> +++ b/gnu/packages/conkeror.scm
>> @@ -28,16 +28,15 @@
>>  (define-public conkeror
>>(package
>>  (name "conkeror")
>> -(version "1.0pre1.20150730")
>> +(version "1.0.3")
>>  (source (origin
>>(method url-fetch)
>>(uri
>> -   (string-append "http://repo.or.cz/w/conkeror.git/snapshot/";
>> -  "a1f7e879b129df5cf14ea4ce80a9c1407380ed58"
>> -  ".tar.gz")) ; tag: 
>> debian-1.0--pre-1+git150730-1
>> +   (string-append "http://repo.or.cz/conkeror.git/snapshot/";
>> +  version ".tar.gz"))
>>(sha256
>> (base32
>> -"1q45hc30733gz3ca2ixvw0rzzcbi7rlay7gx7kvzjv17a030nyk0"
>> +"0ybmincxw3msnrfpby9gnckbq2x94c7fra2m66zham54cjc7mav3"
>>  (build-system gnu-build-system)
>>  (inputs `(("icecat" ,icecat)))
>>  (arguments
>> -- 
>> 2.9.0
>> 
>
> Looks good! I added a copyright line for you at the top and a (file-name
> for the source.

Thank you

--
John Foerch




Re: [PATCH] gnu: Add di.

2016-07-03 Thread John J Foerch
Leo Famulari  writes:

> On Sat, Jul 02, 2016 at 03:13:52PM -0400, John J Foerch wrote:
>> * gnu/packages/admin.scm (di): New variable.
>
> Thanks!
>
>> +(arguments
>> + `(#:phases
>> +   (modify-phases %standard-phases
>> + (delete 'configure)
>> + (delete 'check)
>
> Did you try setting `#:test-target "test"` in the arguments? The
> Makefile has a test target.
>

I didn't know about that.  I'll try it out.

>> + (add-before 'build 'setup-environment
>> +   (lambda* (#:key outputs #:allow-other-keys)
>> + (setenv "CC" "gcc")
>> + (setenv "prefix" (assoc-ref outputs "out"))
>> + #t)))
>
> Can you move these variables into #:make-flags?
>
>> +   #:make-flags (list "-e")))

I don't think so.  The main Makefile calls make in the 'C' directory,
which has its own Makefile, so for the variables to be visible in that
second make process, they need to be environment variables.

>
>> +(description
>> + "'di' is a disk information utility, displaying everything
>> +(and more) that your 'df' command does.  It features the ability to display
>
> How about wrapping 'df' in texinfo like this? @code{df}

Okay, will do.

Thank you,

--
John Foerch




Re: [PATCH] import: cpan: Use our mirrors for 'https' URLs.

2016-07-03 Thread Ludovic Courtès
Alex Sassmannshausen  skribis:

> * guix/import/cpan.scm (fix-source-url): New procedure.
>   (cpan-module->sexp): Use it to construct our source-url.
> * tests/cpan.scm: Add tests for fix-source-url.

Applied, thanks!

Ludo’.



Re: [PATCH 5/5] gnu: python-sphinx-rtd-theme: Update to 0.1.9.

2016-07-03 Thread Ludovic Courtès
Leo Famulari  skribis:

> * gnu/packages/python.scm (python-sphinx-rtd-theme, python2-sphinx-rtd-theme):
> Update to 0.1.9.

OK!



Re: [PATCH 4/5] gnu: python-sphinx: Update to 1.4.4.

2016-07-03 Thread Ludovic Courtès
Leo Famulari  skribis:

> * gnu/packages/python.scm (python-sphinx, python2-sphinx): Update to 1.4.4.
> [source]: Use pypi-uri.
> [inputs]: Add python-alabaster, python-babel, python-imagesize, python-six.
> [propagated-inputs]: New field.

[...]

> +(propagated-inputs
> + `(("python-pytz" ,python-pytz)
> +   ("python-snowballstemmer" ,python-snowballstemmer)))

Please put the explanation for the propagation as a comment here (I
assume installed .py files “import” modules from these two packages.)

OK with this change!

Ludo’.



Re: pybitmessage, python2-pyqt-4 - strace and packages

2016-07-03 Thread ng
Hi,

thanks for taking the time to look into this.

Ricardo Wurmus writes:

> n...@we.make.ritual.n0.is writes:
>
>> The strace output is very long, but I hope someone can help me
>> with more experience with python.
>> The visible error is that pyqt-4 is not found, but strace throws
>> many more.
> […]
>
>> insert-file: (pybitmessage) in gnu/packages/python.scm:
>
> It would be easier for others to test this if this were simply a patch
> that we could apply on master.  Much easier than following manual
> instructions.

You are right. There are some local issues and workflows I have
to get better at, it's not the creation of the patch itself I
have problems with. Next time I'll send a patch when I have
questions about wip'ish things.

>> (define-public python-pyqt-4
>>   (package (inherit python-pyqt)
>> (name "python-pyqt")
>> (version "4.11.4")
>> (source
>>   (origin
>> (method url-fetch)
>> (uri
>>   (string-append "mirror://sourceforge/pyqt/PyQt4/"
>>  "PyQt-" version "/PyQt-x11-gpl-"
>>  version ".tar.gz"))
>> (sha256
>>  (base32
>>   "01zlviy5lq8g6db84wnvvpsrfnip9lbcpxagsyqa6as3jmsff7zw"
>> (native-inputs
>>  `(("python-sip" ,python-sip)
>>("qt" ,qt-4)))
>> (arguments
>>  `(#:tests? #f ; no check target
>>#:modules ((srfi srfi-1)
>>   ,@%gnu-build-system-modules)
>>#:phases
>>  (alist-replace
>>  'configure
>>  (lambda* (#:key inputs outputs #:allow-other-keys)
>>(let* ((out (assoc-ref outputs "out"))
>>   (bin (string-append out "/bin"))
>>   (sip (string-append out "/share/sip"))
>>   (python (assoc-ref inputs "python"))
>>   (python-version
>> (last (string-split python #\-)))
>>   (python-major+minor
>> (string-join
>>   (take (string-split python-version #\.) 2)
>>   "."))
>>   (lib (string-append out "/lib/python"
>>   python-major+minor
>>   "/site-packages")))
>>  (zero? (system* "python" "configure.py"
>>  "--confirm-license"
>>  "--bindir" bin
>>  "--destdir" lib
>>  "--sipdir" sip
>>  %standard-phases)))
>> (license (list gpl2 gpl3 ; choice of either license
>>
>> (define-public python2-pyqt-4
>>   (package (inherit python-pyqt-4)
>> (name "python2-pyqt-4")
>> (native-inputs
>>  `(("python-sip" ,python2-sip)
>>("qt" ,qt-4)))
>> (inputs
>>  `(("python" ,python-2)
>
> […]
>> open("/gnu/store/2mz84alls2i314x4506wdw15zwmz82n8-python-2.7.10/lib/python2.7/site-packages/PyQt4.so",
>> O_RDONLY) = -1 ENOENT (No such file or directory)
>> open("/gnu/store/2mz84alls2i314x4506wdw15zwmz82n8-python-2.7.10/lib/python2.7/site-packages/PyQt4module.so",
>> O_RDONLY) = -1 ENOENT (No such file or directory)
>> open("/gnu/store/2mz84alls2i314x4506wdw15zwmz82n8-python-2.7.10/lib/python2.7/site-packages/PyQt4.py",
>> O_RDONLY) = -1 ENOENT (No such file or directory)
>> open("/gnu/store/2mz84alls2i314x4506wdw15zwmz82n8-python-2.7.10/lib/python2.7/site-packages/PyQt4.pyc",
>> O_RDONLY) = -1 ENOENT (No such file or directory)
>> write(1, "ERROR: The PyQt4 package is not "..., 104ERROR: The PyQt4
>> package is not available. PyBitmessage requires PyQt 4.8 or later
>> and Qt 4.7 or later.
>
> Have you checked what files are installed by your pyqt-4 package?  Do
> any of the files that are searched for appear in the output of that
> package?

tree level 3 looks like this of python2-pyqt-4:
(shadowwalker) ng0
/gnu/store/y0r1d5sgskvpxi2k64afjrc35c8l3bqs-python2-pyqt-4-4.11.4$
tree -L 3
.
├── bin
│   ├── pylupdate4
│   ├── pyrcc4
│   └── pyuic4
├── lib
│   └── python2.7
│   └── site-packages
└── share
└── sip
├── Qt
├── QtCore
├── QtDBus
├── QtDeclarative
├── QtDesigner
├── QtGui
├── QtHelp
├── QtMultimedia
├── QtNetwork
├── QtOpenGL
├── QtScript
├── QtScriptTools
├── QtSql
├── QtSvg
├── QtTest
├── QtXml
└── QtXmlPatterns

So packages are in python2.7 ... i don't know the consensus for
Guix, should it be 2.7.10 or 2.7 in folder structure? 2.7 makes
more sense to me.

>> write(1, "ERROR: The curses interface can "..., 88ERROR: The curses 
>> interface can not be used. The pythondialog package is not available.
>
> You haven’t finished packaging all dependencies.  The “pythondialog”
> package is also required.

I notices this and the ncurses dependency is optional. Generally
you are exposed only to the pyqt client. I would package
pythondialog later, for a func

Re: [PATCH 2/5] gnu: Add python-alabaster.

2016-07-03 Thread Ludovic Courtès
Leo Famulari  skribis:

> * gnu/packages/python.scm (python-alabaster, python2-alabaster): New 
> variables.

[...]

> +Sphinx documentation system. It is compatible with Python 2 and 3, and it is 
> the
  ^^
Two spaces after period, but otherwise LGTM.

Ludo’.



Re: [PATCH 1/5] gnu: Add python-imagesize.

2016-07-03 Thread Ludovic Courtès
Leo Famulari  skribis:

> * gnu/packages/python.scm (python-imagesize, python2-imagesize): New 
> variables.

[...]

> +(description "This Python module returns the size of an image. It 
> supports

Two spaces after period.  :-)

Otherwise LGTM, thanks.

Ludo’.



Re: [PATCH 0/5] Sphinx reproducibility update

2016-07-03 Thread Ludovic Courtès
iyzs...@member.fsf.org (宋文武) skribis:

> Leo Famulari  writes:
>> [...]
>>
>> With this change, many Python 2 packages will become reproducible, at
>> least on a single machine; the only thing holding them back was the
>> manpage timestamps.
> Cool!
>
>>
>> These changes will require 142 rebuilds, mostly of Python packages, but
>> also of libreoffice (libreoffice seems to depend on *everything*) and a
>> few others. If the patches are good, should they go to master or to
>> another branch?
>>
> I prefer master, and I guess people who use libreoffice don't update it
> frequently (we have a old version, but no one complain so far).

(Oops, I replied before seeing your message.)  I have a slight
preference for ‘core-updates’, which I hope can be merged within a few
days.  Sounds good?

Ludo’.



Re: [PATCH 0/5] Sphinx reproducibility update

2016-07-03 Thread Ludovic Courtès
Hello,

Leo Famulari  skribis:

> Since version 1.4.0, Sphinx has respected the SOURCE_DATE_EPOCH
> environment variable for the timestamps it puts in generated
> documentation [0].

Awesome!

> This patch series updates Sphinx to the latest version, 1.4.4, and
> provides all the new dependencies. The final commit in the series
> requires the new Sphinx.
>
> Why propagate pytz and snowballstemmer? Otherwise, many packages that
> use Sphinx started failing due to pytz or snowballstemmer not being
> avaiable. Rather than provide pytz and snowballstemmer to all those
> packages, I propagated them from Sphinx itself. I can add pytz and
> snowballstemmer to the Sphinx users if desired.

Makes sense.

> With this change, many Python 2 packages will become reproducible, at
> least on a single machine; the only thing holding them back was the
> manpage timestamps.
>
> These changes will require 142 rebuilds, mostly of Python packages, but
> also of libreoffice (libreoffice seems to depend on *everything*) and a
> few others. If the patches are good, should they go to master or to
> another branch?

You could push them to ‘core-updates’ as a way to save a little bit of
build time.

Thank you!

Ludo’.



Re: [PATCH 1/3] gnu: Reorder imports alphabetically.

2016-07-03 Thread David Craven
Totally agree, it was my intention to follow convention.

On Sun, Jul 3, 2016 at 11:31 PM, Leo Famulari  wrote:
> On Sun, Jul 03, 2016 at 04:05:39AM +0200, David Craven wrote:
>> * gnu/packages/linux.scm: Refactor.
>
> Thanks for doing this housekeeping! Hopefully we can maintain the order
> in the future :)
>
> In the interest of consistency, I re-wrote the commit message in the
> style of the only related commit I could find, f0644195. It's easier to
> read the commit log when we establish conventions and stick to them.



Re: [PATCH] Update name for ng0

2016-07-03 Thread Ludovic Courtès
n...@we.make.ritual.n0.is skribis:

> This trivial patch fixes occurences of my name to
> this name and updates .mapmap accordingly.

Applied!

Ludo’.



Re: [PATCH] Add python2-protobuf

2016-07-03 Thread Leo Famulari
On Sun, Jul 03, 2016 at 03:48:18PM -0300, Daniel Pimentel wrote:
> Hi Guix,
> 
> Add python2-protobuf
> 
> * gnu/packages/python.scm (python2-protobuf): New variables.

Thanks for this! Can you try building the python-3 version as well, and
then using package-with-python2 to make python2-protobuf?



Re: [PATCH 2/2] gnu: guix: Add emacs-magit-popup to propagated-inputs.

2016-07-03 Thread Ludovic Courtès
Alex Kost  skribis:

> * gnu/packages/package-management.scm (guix-0.10.0): Add
> 'emacs-magit-popup' to make it possible to use "M-x guix" command.

OK!



Re: [PATCH 1/2] gnu: Add emacs-magit-popup.

2016-07-03 Thread Ludovic Courtès
Alex Kost  skribis:

> * gnu/packages/emacs.scm (emacs-magit-popup): New variable.

LGTM, thanks!

Ludo’.



Re: [PATCH 2/3] gnu: Add rng-tools 5.

2016-07-03 Thread Leo Famulari
On Sun, Jul 03, 2016 at 04:26:28AM +0200, David Craven wrote:
> * gnu/packages/linux.scm: New package.

Thanks for this rng-tools package!

I made some cosmetic changes, added some details about the licensing,
cleaned up the commit message, added you to the list of authors, and
pushed as 9b0942c1b0.



Re: [PATCH 1/3] gnu: Reorder imports alphabetically.

2016-07-03 Thread Leo Famulari
On Sun, Jul 03, 2016 at 04:05:39AM +0200, David Craven wrote:
> * gnu/packages/linux.scm: Refactor.

Thanks for doing this housekeeping! Hopefully we can maintain the order
in the future :)

In the interest of consistency, I re-wrote the commit message in the
style of the only related commit I could find, f0644195. It's easier to
read the commit log when we establish conventions and stick to them.



Re: [PATCH] gnu: Add di.

2016-07-03 Thread Leo Famulari
On Sat, Jul 02, 2016 at 03:13:52PM -0400, John J Foerch wrote:
> * gnu/packages/admin.scm (di): New variable.

Thanks!

> +(arguments
> + `(#:phases
> +   (modify-phases %standard-phases
> + (delete 'configure)
> + (delete 'check)

Did you try setting `#:test-target "test"` in the arguments? The
Makefile has a test target.

> + (add-before 'build 'setup-environment
> +   (lambda* (#:key outputs #:allow-other-keys)
> + (setenv "CC" "gcc")
> + (setenv "prefix" (assoc-ref outputs "out"))
> + #t)))

Can you move these variables into #:make-flags?

> +   #:make-flags (list "-e")))

> +(description
> + "'di' is a disk information utility, displaying everything
> +(and more) that your 'df' command does.  It features the ability to display

How about wrapping 'df' in texinfo like this? @code{df}



Re: [PATCH] gnu: Add alot and python-urwidtrees

2016-07-03 Thread Leo Famulari
Thanks for the updated patches!

On Sat, Jul 02, 2016 at 02:43:44PM -0400, Troy Sankey wrote:
> Finally, I'll say that I do use it, and it does build and work correctly.

Great!

I found that setuptools was not required for urwidtrees, so I removed
it, added changelogs to the commit messages, and pushed as a2cb16b0c.



Re: [PATCH 2/2] gnu: testdisk: Update to 7.0.

2016-07-03 Thread Leo Famulari
On Sun, Jul 03, 2016 at 06:25:55PM +0200, Ricardo Wurmus wrote:
> * gnu/packages/admin.scm (testdisk): Update to 7.0.

It builds for me on x86_64.



Re: [PATCH 1/2] gnu: testdisk: Add optional dependencies.

2016-07-03 Thread Leo Famulari
On Sun, Jul 03, 2016 at 06:25:54PM +0200, Ricardo Wurmus wrote:
> * gnu/packages/admin.scm (testdisk)[inputs]: Add ntfs-3g and libjpeg.
> ---
>  gnu/packages/admin.scm | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
> index 415a35a..2014ecb 100644
> --- a/gnu/packages/admin.scm
> +++ b/gnu/packages/admin.scm
> @@ -1149,9 +1149,11 @@ characters can be replaced as well, as can UTF-8 
> characters.")
>  "0v1jap83f5h99zv01v3qmqm160d36n4ysi0gyq7xzb3mqgmw75x5"
>  (build-system gnu-build-system)
>  (inputs
> - `(;; ("ntfs" ,ntfs)
> + `(("ntfs-3g" ,ntfs-3g)
> ("util-linux" ,util-linux)
> ("openssl" ,openssl)
> +   ;; FIXME: add reiserfs
> +   ("libjpeg" ,libjpeg)

It already includes libjpeg ...

> ("zlib" ,zlib)
> ("e2fsprogs" ,e2fsprogs)
> ("libjpeg" ,libjpeg)

... here ;)

So it should add ntfs-3g and the comment about reiserfs, right?



Re: [PATCH 0/6] Pytest update

2016-07-03 Thread Leo Famulari
On Sun, Jul 03, 2016 at 08:58:39AM +0300, Efraim Flashner wrote:
> The patch-set looks good to me. For the curious, I checked python-pytest
> and python2-pytest and ended up with 81 packages and 235 dependants, but
> some of those are from my WIP tree in GUIX_PACKAGE_PATH

What branch should it go on?

Also, it would be good to push this series and the Sphinx series
together.

$ guix refresh -l python-sphinx python2-sphinx python-pytest python2-pytest
Building the following 84 packages would ensure 229 dependent packages are 
rebuilt:
[...]

So, it's basically the same set of packages that would need to be
re-built.



[PATCH] Add python2-protobuf

2016-07-03 Thread Daniel Pimentel

Hi Guix,

Add python2-protobuf

* gnu/packages/python.scm (python2-protobuf): New variables.

Thanks,

--
Daniel Pimentel (aka d4n1)From 6584dd0d96fcef9e93c8285b074a9cf41c3d2efc Mon Sep 17 00:00:00 2001
From: Daniel Pimentel 
Date: Sun, 3 Jul 2016 15:45:17 -0300
Subject: [PATCH 3/3] gnu: Add python2-protobuf * gnu/packages/python.scm
 (python2-protobuf): New variables.

---
 gnu/packages/python.scm | 27 +++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 529da2c..35fa16b 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9342,3 +9342,30 @@ function PBKDF2.")
 Response (QR) images.  It is recommended that the pillow library be used to
 generate images, though the default Python imaging library can also be used.")
 (license bsd-3)))
+
+(define-public python2-protobuf
+  (package
+(name "python2-protobuf")
+(version "3.0.0b3")
+(source
+ (origin
+   (method url-fetch)
+   (uri (pypi-uri "protobuf" version))
+   (sha256
+(base32
+ "098mnxzd3y67j44y3fdpfszphhljp88flfr4a90qfvvpy4ka7w5l"
+(build-system python-build-system)
+(inputs
+ `(("gcc" ,gcc)
+   ("zlib" ,zlib)
+   ("python2-six" ,python2-six)))
+(native-inputs
+ `(("python2-setuptools" ,python2-setuptools)))
+(arguments
+ `(#:python ,python-2))
+(home-page "https://github.com/google/protobuf";)
+(synopsis "Protocol buffers is a data interchange format.")
+(description
+ "Protocol buffers are a language-neutral, platform-neutral extensible 
+mechanism for serializing structured data.")
+(license bsd-3)))
-- 
2.7.4



Container howto for X11?

2016-07-03 Thread Pjotr Prins
Is there a container howto for X11 applications? I would like to run
the browser in a Guix container. Fun with a serious note.

Pj.



[PATCH 3/4] services: Add rngd-service.

2016-07-03 Thread David Craven
* gnu/services/base.scm: New service.
* doc/guix.texi: Add documentation.
---
 doc/guix.texi |  6 ++
 gnu/services/base.scm | 43 +--
 2 files changed, 47 insertions(+), 2 deletions(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index 62c0d34..ce28182 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -7494,6 +7494,12 @@ created by @command{guix archive --generate-key} 
(@pxref{Invoking guix
 archive}).  If that is not the case, the service will fail to start.
 @end deffn
 
+@anchor{rngd-service}
+@deffn {Scheme Procedure} rngd-service [#:rng-tools @var{rng-tools}] @
+  [#:rng-device "/dev/hwrng"]
+Return a service that adds @var{rng-device} to the kernel entropy pool. This
+service will fail if if the device doesn't exist.
+@end deffn
 
 @node Scheduled Job Execution
 @subsubsection Scheduled Job Execution
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index f304bf8..67f3961 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -31,7 +31,7 @@
   #:use-module (gnu system mapped-devices)
   #:use-module (gnu packages admin)
   #:use-module ((gnu packages linux)
-#:select (eudev kbd e2fsprogs lvm2 fuse alsa-utils crda gpm))
+#:select (alsa-utils crda eudev e2fsprogs fuse gpm kbd lvm2 
rng-tools))
   #:use-module ((gnu packages base)
 #:select (canonical-package glibc))
   #:use-module (gnu packages package-management)
@@ -97,6 +97,7 @@
 
 urandom-seed-service-type
 urandom-seed-service
+rngd-service
 
 %base-services))
 
@@ -486,7 +487,45 @@ stopped before 'kill' is called."
 (define (urandom-seed-service)
   (service urandom-seed-service-type #f))
 
-
+
+;;;
+;;; Add hardware random number generator to entropy pool
+;;;
+
+(define-record-type* 
+  rngd-configuration make-rngd-configuration
+  rngd-configuration?
+  (rng-tools rngd-configuration-rng-tools)
+  (rng-device rngd-configuration-rngd-device))
+
+(define rngd-service-type
+  (shepherd-service-type
+'rngd
+(lambda (config)
+  (define rng-tools (rngd-configuration-rng-tools config))
+  (define rng-device (rngd-configuration-rngd-device config))
+
+  (define rngd-command
+(list #~(string-append #$rng-tools "/sbin/rngd") "-f" "-r" rng-device))
+
+  (shepherd-service
+(documentation "Add TRNG to entropy pool.")
+(requirement '(udev))
+(provision '(trng))
+(start #~(make-forkexec-constructor #$@rngd-command))
+(stop #~(make-kill-destructor))
+
+(define* (rngd-service #:key
+  (rng-tools rng-tools)
+  (rng-device "/dev/hwrng"))
+  "Run the @command{rngd} program from @var{rng-tools} to add @var{rng-device}
+to the kernel's entropy pool."
+  (service rngd-service-type
+(rngd-configuration
+  (rng-tools rng-tools)
+  (rng-device rng-device
+
+
 ;;;
 ;;; System-wide environment variables.
 ;;;
-- 
2.9.0



[PATCH 4/4] build: Ignore texi2pdf temporary files.

2016-07-03 Thread David Craven
* .gitignore: Modify.
---
 .gitignore | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.gitignore b/.gitignore
index 003412e..6e892ca 100644
--- a/.gitignore
+++ b/.gitignore
@@ -35,6 +35,7 @@
 /doc/guix.ky
 /doc/guix.pg
 /doc/guix.toc
+/doc/guix.t2p
 /doc/guix.tp
 /doc/guix.vr
 /doc/guix.vrs
-- 
2.9.0



Re: [PATCH] gnu: Add python2-pbkdf2 and update python2-jsonrpclib

2016-07-03 Thread d4n1
i will try and report it. thanks



Daniel Pimentel (aka d4n1)On Leo Famulari , Jul 1, 2016 5:50 PM wrote:On Thu, Jun 23, 2016 at 01:07:26PM -0300, Daniel Pimentel wrote:
> * gnu/packages/python.scm: add new package and update variable

The program claims to support Python 3 and Python 2. It also has a test
suite in the 'test/' directory. So, I changed your patch as attached.
But, it fails the test suite.

Can you try to make it work?



Re: [PATCH] gnu: conkeror: Update to 1.0.3

2016-07-03 Thread Efraim Flashner
On Sun, Jul 03, 2016 at 11:50:37AM -0400, John J Foerch wrote:
> From 71dd8a5b721a952dbe583922caef0a91b1a559cf Mon Sep 17 00:00:00 2001
> From: "John J. Foerch" 
> Date: Sun, 3 Jul 2016 11:46:20 -0400
> Subject: [PATCH] gnu: conkeror: Update to 1.0.3.
> 
> * gnu/packages/conkeror.scm (conkeror): Update to 1.0.3.
> ---
>  gnu/packages/conkeror.scm | 9 -
>  1 file changed, 4 insertions(+), 5 deletions(-)
> 
> diff --git a/gnu/packages/conkeror.scm b/gnu/packages/conkeror.scm
> index cfeb22e..0c247e8 100644
> --- a/gnu/packages/conkeror.scm
> +++ b/gnu/packages/conkeror.scm
> @@ -28,16 +28,15 @@
>  (define-public conkeror
>(package
>  (name "conkeror")
> -(version "1.0pre1.20150730")
> +(version "1.0.3")
>  (source (origin
>(method url-fetch)
>(uri
> -   (string-append "http://repo.or.cz/w/conkeror.git/snapshot/";
> -  "a1f7e879b129df5cf14ea4ce80a9c1407380ed58"
> -  ".tar.gz")) ; tag: 
> debian-1.0--pre-1+git150730-1
> +   (string-append "http://repo.or.cz/conkeror.git/snapshot/";
> +  version ".tar.gz"))
>(sha256
> (base32
> -"1q45hc30733gz3ca2ixvw0rzzcbi7rlay7gx7kvzjv17a030nyk0"
> +"0ybmincxw3msnrfpby9gnckbq2x94c7fra2m66zham54cjc7mav3"
>  (build-system gnu-build-system)
>  (inputs `(("icecat" ,icecat)))
>  (arguments
> -- 
> 2.9.0
> 

Looks good! I added a copyright line for you at the top and a (file-name
for the source.


-- 
Efraim Flashner  אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted


signature.asc
Description: PGP signature


Re: gnunet-fs integration

2016-07-03 Thread ng0
Hi,

read an update inline commented.

ng0 writes:

> Hi,
>
> Ludovic Courtès writes:
>
>> Hello,
>>
>> n...@we.make.ritual.n0.is skribis:
>>
>>> While I'm still new to guile and guix, one of my main motivations
>>> since I started contributing to guix was an item on the end of
>>> the roadmap, using a decentralized system to distribute updates.
>>
>> I think many of us dream of such a thing.  :-)
>>
>>> At the moment I assume that the following items and steps are
>>> what's left to get closer to this system:
>>>
>>> 1. an up to date GNUnet
>>>a. 0.10.1 of gnunet-fs is not compatible to 0.9,
>>>   gnunet-svn of gnunet-fs is not compatible to 0.10.1
>>>   https://gnunet.org/bot/log/gnunet/2016-06-23#T1067897
>>
>> Unfortunately GNUnet hasn’t seen any release since April 2014, which I
>> find worrying.
>
> Work is done towards 0.10.2, there are just some bugtickets left
> but I can assure you that work is happening regulary and its
> alive and well :)
> I take the current incompabilities between 0.10.1 and svn in
> consideration with the writing of the distributing system. from
> what I know, I think it will be fixed with the release of 0.10.2
>
> https://gnunet.org/bugs/roadmap_page.php
> I'm fairly positive that 0.10.2 will be released soon, but I'll
> ask Christian if there's a new ETA now.
> Mantis says for gnunet 303 of 308 issue(s) resolved. Progress
> (98%). for gnunet-gtk: 100% for 0.10.2

Update: currently some refactoring is happening, grothf just
started refactoring the client api which requires every service
to be modified, which takes some time.
There's no guesstimated date, but we should not expect an release
before the end of summer.

>> It may be worth considering other options such as IPFS and Bittorrent,
>> even though they obviously have different properties.
>
> That's true, but I chose gnunet-fs because I have more insight
> and participation in gnunet than in bittorrent or ipfs.
> For bittorrent I'd even consider the trackerless torrent variant
> which is popular now.
> But my main motivation is gnunet, which I will base this upon.
>
>>> 2. GNUnet system service for shepherd
>>>a. it needs a basic service to start with, ideally we
>>>   provide what gnunet-setup does through an extended
>>>   system-service later on
>>
>> This would be could.  I discussed it with tg(x) in November but never
>> took the time to actually do it.
>>
>>> 3. stitching together the guile GNUnet bindings
>>>with additions to mechanisms which are
>>>at least guix {publish,pull,package}.
>>
>> Note that Rémi, who worked on this for GSoC, posted prototypes for the
>> publish and substitute code (along with the bindings themselves, which
>> are available as the ‘guile-gnunet’ package in Guix.)  It’s probably a
>> good idea to revive them and see how far you can get.
>
> Oh, I did not read everything of it all yet.
> I added one more optional item to my list, which is add a method
> for (source (origin)) to make use of the two relevant hash
> methods which gnunet-fs uses.
>
> If it was just for me, I'd not use 0.10.1 and go
> straight for -svn pinned to a version and switch to 0.10.2 once
> it is released, but I'd like to test and look for possibilities
> to stay compatible. Maybe an 0.10.2 release happens while I write
> this.
>
>> Glad to see more work in this area!
>>
>> Ludo’.
>
> --
> ♥Ⓐ  ng0
> For non-prism friendly talk find me on
> psyced.org / loupsycedyglgamf.onion
>

-- 
♥Ⓐ  ng0
For non-prism friendly talk find me on
psyced.org / loupsycedyglgamf.onion



[PATCH] gnu: Add emacs-eprime

2016-07-03 Thread Roel Janssen
Dear Guix,

Here's a fairly trivial patch to add an eprime-mode for Emacs.  The
author hasn't made a release (at least not on Github), so I grabbed
the source by the most recent commit (June 27, 2014), and used a version
number compatible with how it is used in MELPA.

Hopefully this is OK to push.
Thank you for your time.

Kind regards,
Roel Janssen


>From 725447eb40aad3be64d9caade294927d1a7877f1 Mon Sep 17 00:00:00 2001
From: Roel Janssen 
Date: Sun, 3 Jul 2016 18:53:33 +0200
Subject: [PATCH] gnu: Add emacs-eprime

* gnu/packages/emacs.scm (emacs-eprime): New variable.
---
 gnu/packages/emacs.scm | 22 ++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index f95e7b0..5291c2c 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -2052,6 +2052,28 @@ Emacs default configuration in uncontroversial ways that 
nearly everyone can
 agree upon.")
 (license license:gpl3+)))
 
+(define-public emacs-eprime
+  (let ((commit "17a481af26496be91c07139a9bfc05cfe722506f"))
+(package
+  (name "emacs-eprime")
+  (version (string-append "20140513-" (string-take commit 7)))
+  (source (origin
+(method url-fetch)
+(uri (string-append "https://raw.githubusercontent.com";
+"/AndrewHynes/eprime-mode/"
+commit "/eprime-mode.el"))
+(file-name (string-append "eprime-" version ".el"))
+(sha256
+ (base32
+  "0v68lggkyq7kbcr9zyi573m2g2x251xy3jadlaw8kx02l8krwq8d"
+  (build-system emacs-build-system)
+  (home-page "https://github.com/AndrewHynes/eprime-mode";)
+  (synopsis "E-prime checking mode for Emacs")
+  (description "This package provides an E-prime checking mode for Emacs
+that highlights non-conforming text.  The subset of the English language called
+E-Prime forbids the use of the \"to be\" form to strengthen your writing.")
+  (license license:gpl3+
+
 (define-public emacs-smex
   (package
 (name "emacs-smex")
-- 
2.9.0




Re: [PATCH 0/2] Add emacs-emms-player-mpv.

2016-07-03 Thread Ricardo Wurmus

Ludovic Courtès  writes:

>> Do you want me to define an alias for “emms” now in the manner you
>> suggested in your email from 2015?  Or should this be done once the UI
>> supports dealing with deprecated packages?
>
> Once the UI is done.  Currently this would have no effect.

Okay, pushed to master.  Thank you for the review.

~~ Ricardo




Cross-building GuixSD (and maybe using pre-built toolchains)

2016-07-03 Thread Paul Boddie
Hello,

I've been looking at FSF-endorsed Free Software distributions and found 
GuixSD, and I have a few questions about bootstrapping the distribution for 
another architecture.

I was looking at the documentation, which is rather more helpful than most 
distributions when it comes to describing how the actual distribution archives 
are built, and I figured a few things out about guix-daemon. However, I'm 
doing all my work in a chroot - I don't want to "make install" and populate 
various locations on my main system - and this doesn't seem to be entirely 
compatible with the recommended way the daemon is used. Specifically, the 
daemon does not seem to be able to build anything unless I specify the --
disable-chroot flag.

Are there any recommended methods of running guix-daemon in a chroot and have 
it create new chroots, or do I have to use some kind of virtualisation or 
container technology? Is any kind of fakeroot/fakechroot mechanism supported?

One thing that looks very promising is the ability to cross-bootstrap the 
system, and I did manage to get that started for a new architecture (mipsel) 
by performing some modifications suggested in the documentation [1], running 
guix-daemon with the --disable-chroot flag, and then running this:

guix build --target=mipsel-linux-gnu bootstrap-tarballs

However, not wanting to leave my computer switched on all night, I stopped the 
build after a while. I can understand the need to bootstrap things like 
toolchains, but given that I am running Debian which has cross-toolchains for 
mipsel, I wondered if I could short-circuit this process by employing pre-
built toolchains. Would this be possible?

Finally, it seems to be the case that the workflow involves building a 
bootstrapped minimal system and then natively building packages. Or have I 
misunderstood the process? Is it possible to cross-build all of the packages 
in the distribution?

I hope I haven't missed anything that tells me the answers to all of these 
questions.

Thanks in advance for any answers you may have!

Paul

[1] https://www.gnu.org/software/guix/manual/html_node/Porting.html#Porting



[PATCH 2/2] gnu: testdisk: Update to 7.0.

2016-07-03 Thread Ricardo Wurmus
* gnu/packages/admin.scm (testdisk): Update to 7.0.
---
 gnu/packages/admin.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 2014ecb..85c863b 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -1139,14 +1139,14 @@ characters can be replaced as well, as can UTF-8 
characters.")
 (define-public testdisk
   (package
 (name "testdisk")
-(version "6.14")
+(version "7.0")
 (source (origin
   (method url-fetch)
   (uri (string-append "http://www.cgsecurity.org/testdisk-";
   version ".tar.bz2"))
   (sha256
(base32
-"0v1jap83f5h99zv01v3qmqm160d36n4ysi0gyq7xzb3mqgmw75x5"
+"0ba4wfz2qrf60vwvb1qsq9l6j0pgg81qgf7fh22siaz649mkpfq0"
 (build-system gnu-build-system)
 (inputs
  `(("ntfs-3g" ,ntfs-3g)
-- 
2.8.4





[PATCH 1/2] gnu: testdisk: Add optional dependencies.

2016-07-03 Thread Ricardo Wurmus
* gnu/packages/admin.scm (testdisk)[inputs]: Add ntfs-3g and libjpeg.
---
 gnu/packages/admin.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 415a35a..2014ecb 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -1149,9 +1149,11 @@ characters can be replaced as well, as can UTF-8 
characters.")
 "0v1jap83f5h99zv01v3qmqm160d36n4ysi0gyq7xzb3mqgmw75x5"
 (build-system gnu-build-system)
 (inputs
- `(;; ("ntfs" ,ntfs)
+ `(("ntfs-3g" ,ntfs-3g)
("util-linux" ,util-linux)
("openssl" ,openssl)
+   ;; FIXME: add reiserfs
+   ("libjpeg" ,libjpeg)
("zlib" ,zlib)
("e2fsprogs" ,e2fsprogs)
("libjpeg" ,libjpeg)
-- 
2.8.4





[PATCH] gnu: conkeror: Update to 1.0.3

2016-07-03 Thread John J Foerch
>From 71dd8a5b721a952dbe583922caef0a91b1a559cf Mon Sep 17 00:00:00 2001
From: "John J. Foerch" 
Date: Sun, 3 Jul 2016 11:46:20 -0400
Subject: [PATCH] gnu: conkeror: Update to 1.0.3.

* gnu/packages/conkeror.scm (conkeror): Update to 1.0.3.
---
 gnu/packages/conkeror.scm | 9 -
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/conkeror.scm b/gnu/packages/conkeror.scm
index cfeb22e..0c247e8 100644
--- a/gnu/packages/conkeror.scm
+++ b/gnu/packages/conkeror.scm
@@ -28,16 +28,15 @@
 (define-public conkeror
   (package
 (name "conkeror")
-(version "1.0pre1.20150730")
+(version "1.0.3")
 (source (origin
   (method url-fetch)
   (uri
-   (string-append "http://repo.or.cz/w/conkeror.git/snapshot/";
-  "a1f7e879b129df5cf14ea4ce80a9c1407380ed58"
-  ".tar.gz")) ; tag: debian-1.0--pre-1+git150730-1
+   (string-append "http://repo.or.cz/conkeror.git/snapshot/";
+  version ".tar.gz"))
   (sha256
(base32
-"1q45hc30733gz3ca2ixvw0rzzcbi7rlay7gx7kvzjv17a030nyk0"
+"0ybmincxw3msnrfpby9gnckbq2x94c7fra2m66zham54cjc7mav3"
 (build-system gnu-build-system)
 (inputs `(("icecat" ,icecat)))
 (arguments
-- 
2.9.0





Re: netcat-openbsd implementations

2016-07-03 Thread Aron Xu
Hi,

See comment below,

On Wed, Jun 29, 2016 at 8:13 PM,  wrote:
>
> Hi,
>
> I've seen you as the last person commiting to netcat-openbsd
> for Debian in 2012[2].
>
> I have written a package definition for netcat-openbsd for Guix.
>
> At Guix we don't want to maintain forks through in-tree patchsets
> and avoid it whenever possible. Patches are usually for fixing
> CVEs and fixing severe build problems specific to guix.
>
> Now this is a problem which is reflected in the thread at [0]
> (discussing the netcat-openbsd package).
>
> Resulting from the discussion I have questions for you:
>
> 1. I'd like to know if Debian could merge the specific changes
>applied to the OpenBSD package, available in the patches set,
>into the OpenBSD GNU-linux port.
>If this is not possible, could you give us the reason for it?
>My impression is that at least Gentoo, Gentoo deriviates and
>based systems, Archlinux, and Debian use the orig-source +
>the patches tarball.
>

This is long overdue - my intention was to keep netcat-openbsd to
track the development of the openbsd one, but it appears not happened
that way.

> 2. Did you try to merge more generic changes back to OpenBSD?
>
>From what I've seen so far, those are bug fixes and a minority
>of feature fixes.
>

Some of them was sent, but getting few responses.

> 3. There's an initial statement in the README but as many of those
>are non-trivial patches, could you try and give an explanation
>on why they are needed,
>if they can't get merged into the Debian orig-source?
>

I don't treat this netcat-openbsd a full fork even if it's targeting
an older revision at the moment. Also, maintaining patches are very
easy using the git-buildpackage[1] tools for Debian packages.

[1]https://wiki.debian.org/PackagingWithGit

>
> Third option I thought of, could Debian provide a tarball of
> the orig-source with the patches applied, so there's no need
> to conflict with systems currently pulling one or both of the
> currently existing tarball.
>

I think it is hardly possible to provide another tarball because
there's no way of doing that with current Debian infrastructure. But
you can apply those patches easily using quilt[2]. In Debian, patches
are applied automatically when extracting the source package using
dpkg-source.

[2]https://wiki.debian.org/UsingQuilt

> We can apply all the patches in a way mentioned here [1], but
> because we collectively maintain all the packages/source instead
> of `n' specific packages per `n' specific developer(s) it would
> be good in case Debian can't merge the changes to be able to
> point to a reason.
> For this, I ask for your permission to quote parts you give me
> permission to use for, should for any reason this email
> discussion not end up completely CC'ed on guix-devel.
>

No problem.

> [0]: https://lists.gnu.org/archive/html/guix-devel/2016-06/msg00843.html
> [1]: https://lists.gnu.org/archive/html/guix-devel/2016-06/msg00909.html
> [2]: 
> http://anonscm.debian.org/cgit/collab-maint/netcat-openbsd.git/commit/debian?id=db2b1d9a8d4644ef892f47d84606ee96598d23fb
>
>
> thanks,
> --

Best,
Aron



[PATCH 0/2] Add 'magit-popup' dependency to the 'guix' package

2016-07-03 Thread Alex Kost
As discussed on help-guix list (somewhere near
), this is
to make it possible to use "M-x guix" by default (currently emacs gives an
error about missing 'magit-popup' unless a user explicitly installs magit).

[PATCH 1/2] gnu: Add emacs-magit-popup.
[PATCH 2/2] gnu: guix: Add emacs-magit-popup to propagated-inputs.



[PATCH 2/2] gnu: guix: Add emacs-magit-popup to propagated-inputs.

2016-07-03 Thread Alex Kost
* gnu/packages/package-management.scm (guix-0.10.0): Add
'emacs-magit-popup' to make it possible to use "M-x guix" command.
---
 gnu/packages/package-management.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/package-management.scm 
b/gnu/packages/package-management.scm
index f3a1cda..c3035c3 100644
--- a/gnu/packages/package-management.scm
+++ b/gnu/packages/package-management.scm
@@ -192,7 +192,8 @@
 (propagated-inputs
  `(("gnutls" ,gnutls) ;for 'guix download' & co.
("guile-json" ,guile-json)
-   ("geiser" ,geiser)))   ;for guix.el
+   ("geiser" ,geiser) ;for guix.el
+   ("emacs-magit-popup" ,emacs-magit-popup))) ;for "M-x guix" command
 
 (home-page "http://www.gnu.org/software/guix";)
 (synopsis "Functional package manager for installed software packages and 
versions")
-- 
2.8.3




[PATCH 1/2] gnu: Add emacs-magit-popup.

2016-07-03 Thread Alex Kost
* gnu/packages/emacs.scm (emacs-magit-popup): New variable.
---
 gnu/packages/emacs.scm | 25 +
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 0c0182d..0084093 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -562,6 +562,31 @@ operations.")
 support for Git-SVN.")
 (license license:gpl3+)))
 
+(define-public emacs-magit-popup
+  (package
+(name "emacs-magit-popup")
+(version (package-version magit))
+(source (origin
+  (method url-fetch)
+  (uri (string-append
+"https://raw.githubusercontent.com/magit/magit/";
+version "/lisp/magit-popup.el"))
+  (file-name (string-append "magit-popup-" version ".el"))
+  (sha256
+   (base32
+"144nl7j5mn86ccan6qxgg40bsxpkbc83vwnhd5y657gqki74972r"
+(build-system emacs-build-system)
+(propagated-inputs
+ `(("emacs-dash" ,emacs-dash)))
+(home-page "https://github.com/magit/magit";)
+(synopsis "Define prefix-infix-suffix command combos")
+(description
+ "This library implements a generic interface for toggling switches and
+setting options and then invoking an Emacs command which does something with
+these arguments.  The prototypical use is for the command to call an external
+process, passing on the arguments as command line arguments.")
+(license license:gpl3+)))
+
 (define-public haskell-mode
   (package
 (name "haskell-mode")
-- 
2.8.3




Re: pybitmessage, python2-pyqt-4 - strace and packages

2016-07-03 Thread Ricardo Wurmus

n...@we.make.ritual.n0.is writes:

> The strace output is very long, but I hope someone can help me
> with more experience with python.
> The visible error is that pyqt-4 is not found, but strace throws
> many more.
[…]

> insert-file: (pybitmessage) in gnu/packages/python.scm:

It would be easier for others to test this if this were simply a patch
that we could apply on master.  Much easier than following manual
instructions.

> (define-public python-pyqt-4
>   (package (inherit python-pyqt)
> (name "python-pyqt")
> (version "4.11.4")
> (source
>   (origin
> (method url-fetch)
> (uri
>   (string-append "mirror://sourceforge/pyqt/PyQt4/"
>  "PyQt-" version "/PyQt-x11-gpl-"
>  version ".tar.gz"))
> (sha256
>  (base32
>   "01zlviy5lq8g6db84wnvvpsrfnip9lbcpxagsyqa6as3jmsff7zw"
> (native-inputs
>  `(("python-sip" ,python-sip)
>("qt" ,qt-4)))
> (arguments
>  `(#:tests? #f ; no check target
>#:modules ((srfi srfi-1)
>   ,@%gnu-build-system-modules)
>#:phases
>  (alist-replace
>  'configure
>  (lambda* (#:key inputs outputs #:allow-other-keys)
>(let* ((out (assoc-ref outputs "out"))
>   (bin (string-append out "/bin"))
>   (sip (string-append out "/share/sip"))
>   (python (assoc-ref inputs "python"))
>   (python-version
> (last (string-split python #\-)))
>   (python-major+minor
> (string-join
>   (take (string-split python-version #\.) 2)
>   "."))
>   (lib (string-append out "/lib/python"
>   python-major+minor
>   "/site-packages")))
>  (zero? (system* "python" "configure.py"
>  "--confirm-license"
>  "--bindir" bin
>  "--destdir" lib
>  "--sipdir" sip
>  %standard-phases)))
> (license (list gpl2 gpl3 ; choice of either license
>
> (define-public python2-pyqt-4
>   (package (inherit python-pyqt-4)
> (name "python2-pyqt-4")
> (native-inputs
>  `(("python-sip" ,python2-sip)
>("qt" ,qt-4)))
> (inputs
>  `(("python" ,python-2)

[…]
> open("/gnu/store/2mz84alls2i314x4506wdw15zwmz82n8-python-2.7.10/lib/python2.7/site-packages/PyQt4.so",
>  O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/gnu/store/2mz84alls2i314x4506wdw15zwmz82n8-python-2.7.10/lib/python2.7/site-packages/PyQt4module.so",
>  O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/gnu/store/2mz84alls2i314x4506wdw15zwmz82n8-python-2.7.10/lib/python2.7/site-packages/PyQt4.py",
>  O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/gnu/store/2mz84alls2i314x4506wdw15zwmz82n8-python-2.7.10/lib/python2.7/site-packages/PyQt4.pyc",
>  O_RDONLY) = -1 ENOENT (No such file or directory)
> write(1, "ERROR: The PyQt4 package is not "..., 104ERROR: The PyQt4 package 
> is not available. PyBitmessage requires PyQt 4.8 or later and Qt 4.7 or later.

Have you checked what files are installed by your pyqt-4 package?  Do
any of the files that are searched for appear in the output of that
package?

> write(1, "ERROR: The curses interface can "..., 88ERROR: The curses interface 
> can not be used. The pythondialog package is not available.

You haven’t finished packaging all dependencies.  The “pythondialog”
package is also required.

The fact that it searches for libraries or packages in so many paths is
normal, because it only has a list of search paths.  It would be nice to
fix this in a general fashion one day (because all this searching takes
up time), but it’s harmless.  If the needed file is on a search path it
will eventually be found.

~~ Ricardo