bug#24442: gettext: No PO mode for Emacs (or wrong description)

2016-09-25 Thread Alex Kost
Ludovic Courtès (2016-09-24 10:55 +0900) wrote:

> Hi!
>
> Alex Kost  skribis:
>
>> Ivan Vilata i Balaguer (2016-09-15 09:04 +0200) wrote:
>>
>>> The description for ``gettext@0.19.8`` (current) includes this sentence:
>>>
>>> It provides translators with the means to create message catalogs,
>>> as well as an Emacs mode to work with them, and a runtime library to
>>> load translated messages from the catalogs.
>>>
>>> However, no output of the package includes the files for Emacs.
>>
>> Thanks for the report!  This happens because there is no emacs
>> dependency (input) in 'gettext' package definition, so Emacs is not
>> found during 'configure' phase (as can be seen in the log¹: «checking
>> for emacs... no»), so elisp files are not compiled and installed.
>>
>> I would say this can simply be fixed by adding:
>>
>>   (native-inputs `(("emacs" ,emacs-minimal)))
>>
>> to the gettext package definition (also (gnu packages emacs) module
>> should be used), and I checked it by making a variant of the gettext
>> package with this line; however when I tried it on a real gettext
>> package, I saw that a whole world will be rebuilt (apparently it is a
>> 'core-updates' thing).  And I realized that emacs (even its minimal
>> variant) will probably be a too heavy dependency for such a core thing.
>>
>> So perhaps it is time to make 'gettext-minimal' and to use it as the
>> dependency for other packages and 'gettext' (with Emacs tools) intended
>> to be installed by users (as it is done for bash/bash-minimal).  WDYT?
>> (this is a question for Guix developers)
>
> I think it’s a good idea; in commencement.scm, we’ll need to inherit
> from gettext-minimal to avoid the Emacs dependency.
>
> Most of the packages that currently depend on gettext will have to be
> changed to gettext-minimal, as you wrote.
>
> When that it’s done, we can happily add all sorts of dependencies to
> gettext, including additional languages for which it provides bindings.
>
> Sounds like a plan no?

Yes, I'm sending 2 patches to guix-devel for adding 'gettext-minimal'
and for adding missing *.el files to 'gettext'.

> Another option would be to hack a phase that copies the .el files to the
> output, without compiling them, but I don’t think it’s as nice as the
> above plan.

I agree, it doesn't look so nice.

-- 
Alex





bug#20067: fix interpretation of grub configuration

2016-09-25 Thread Ludovic Courtès
Hi,

Tomáš Čech  skribis:

> Configuration excerpt...
>
> (bootloader (grub-configuration
>  (device "/dev/sda")
>  (menu-entries
>   (list
>(menu-entry
> (label "openSUSE")
> (linux "(hd0,msdos1)/vmlinuz")
> (linux-arguments (list
>   "root=/dev/venom/opensuse"
>   "init=/usr/lib/systemd/systemd"))
> (initrd "(hd0,msdos1)/initrd"))
>
>
> ...transforms into
>
> menuentry "openSUSE" {
>   search --file --set (hd0,msdos1)/vmlinuz
>   linux (hd0,msdos1)/vmlinuz root=/dev/venom/opensuse 
> init=/usr/lib/systemd/systemd
>   initrd (hd0,msdos1)/initrd
> }
>
> I think that if linux contains prefix '(.*)/', there should be no
> search for kernel.

Oh, right.  I believe this is fixed by
5babe521c8adc722c2411b255cbeeef308339d06.

Please let me know if anything’s missing now.

Thanks!

Ludo’.





bug#24433: [PATCH] gnu: fish: Add input bc.

2016-09-25 Thread Arun Isaac

To reproduce this bug, run `math 1 + 1` in the fish shell. You should
get an error saying that 'bc' is an unknown command. With the patch I
supplied, this error will not occur.


signature.asc
Description: PGP signature