Commit graph

180 commits

Author SHA1 Message Date
Leo Famulari
943d4b775b
gnu: linux-libre: Add linux-libre 5.17.
* gnu/packages/linux.scm (linux-libre-5.17-version,
linux-libre-5.17-gnu-revision, deblob-scripts-5.17,
linux-libre-5.17-pristine-source, linux-libre-5.17-source,
linux-libre-headers-5.17, linux-libre-5.17): New variables.
* gnu/packages/aux-files/linux-libre/5.17-arm.conf,
gnu/packages/aux-files/linux-libre/5.17-arm64.conf,
gnu/packages/aux-files/linux-libre/5.17-i686.conf,
gnu/packages/aux-files/linux-libre/5.17-x86_64.conf: New files.
* Makefile.am (AUX_FILES): Add them.
2022-03-26 17:59:57 -04:00
Tobias Geerinckx-Rice
f73af2f88e
gnu: linux-libre: Enable UTF-8 normalization and casefolding.
Without this it is apparently impossible to mount file systems with the
feature, which apparently some distributions do by default now.

  podiki[m]> I have an sdcard that was formatted with ext4 casefold
             [by Arch Linux], cannot be mounted

* gnu/packages/aux-files/linux-libre/5.10-arm.conf,
gnu/packages/aux-files/linux-libre/5.10-arm64.conf,
gnu/packages/aux-files/linux-libre/5.10-i686.conf,
gnu/packages/aux-files/linux-libre/5.10-x86_64.conf,
gnu/packages/aux-files/linux-libre/5.15-arm.conf,
gnu/packages/aux-files/linux-libre/5.15-arm64.conf,
gnu/packages/aux-files/linux-libre/5.15-i686.conf,
gnu/packages/aux-files/linux-libre/5.15-x86_64.conf,
gnu/packages/aux-files/linux-libre/5.16-arm.conf,
gnu/packages/aux-files/linux-libre/5.16-arm64.conf,
gnu/packages/aux-files/linux-libre/5.16-i686.conf,
gnu/packages/aux-files/linux-libre/5.16-x86_64.conf,
gnu/packages/aux-files/linux-libre/5.4-arm.conf,
gnu/packages/aux-files/linux-libre/5.4-arm64.conf,
gnu/packages/aux-files/linux-libre/5.4-i686.conf,
gnu/packages/aux-files/linux-libre/5.4-x86_64.conf:
Set CONFIG_UNICODE=y.
2022-03-13 01:00:00 +01:00
Efraim Flashner
e358706058
gnu: vim: Adjust autodetected plugin directories.
* gnu/packages/aux-files/guix.vim: Autodetect plugins installed with
guix-home. Add */after directories at the end of the runtimepath.
2022-02-16 09:57:40 +02:00
Leo Famulari
fd6cfbc05a
Revert kernel modules changes to support the Coreboot framebuffer
These changes broke the creation of the 'linux-modules-database' for all kernel
series besides 5.15, 5.4, and 5.10, like this:

------
gnu/build/linux-modules.scm:257:5: kernel module not found "framebuffer_coreboot" "/gnu/store/yff45fr6q93mw44zdql9ffr95zcvwxcn-linux-libre-4.9.299/lib/modules"
------

We should support the coreboot framebuffer, but we need to test that change more
completely before deploying it.

This effectively reverts the following commits:
1dfe8c3721 "gnu: linux-libre: Build simplefb into all x86{,_64} kernels."
bc09e7ab56 "gnu: linux-libre: Support the Coreboot framebuffer."

Fixes <https://issues.guix.gnu.org/52667> "System reconfiguration fails to build
linux-modules.drv".
2022-02-09 01:38:51 -05:00
Maxim Cournoyer
d5b4ca4445
gnu: linux-libre: Build the snd-emu10k1 kernel module.
Add the CONFIG_SND_EMU10K1=m and CONFIG_SND_EMU10K1_SEQ=m kernel options to
all of our x86 and ARM configurations.  The change automated via:

$ git grep -rl CONFIG_SND_INDIGODJX | xargs grep -rL CONFIG_SND_EMU10K1=m \
    | xargs sed '/CONFIG_SND_INDIGODJX=m/a\
CONFIG_SND_EMU10K1=m\nCONFIG_SND_EMU10K1_SEQ=m' -i
2022-02-07 16:22:37 -05:00
Maxim Cournoyer
6f80093b33
gnu: linux-libre: Enable CONFIG_ZONE_DMA in all configs.
ZONE_DMA is still used by some kernel drivers such as older sound and network
cards; it was already enabled on ARM and for some i686 kernels.  Enable it
everywhere for consistency.  The change was automated with:

  $ git grep -rl CONFIG_ZONE_DMA | \
      xargs sed 's/# CONFIG_ZONE_DMA is not set/CONFIG_ZONE_DMA=y/' -i

* gnu/packages/aux-files/linux-libre/4.14-x86_64.conf: Enable CONFIG_ZONE_DMA.
* gnu/packages/aux-files/linux-libre/4.19-x86_64.conf: Likewise.
* gnu/packages/aux-files/linux-libre/4.4-x86_64.conf: Likewise.
* gnu/packages/aux-files/linux-libre/4.9-x86_64.conf: Likewise.
* gnu/packages/aux-files/linux-libre/5.10-i686.conf: Likewise.
* gnu/packages/aux-files/linux-libre/5.10-x86_64.conf: Likewise.
* gnu/packages/aux-files/linux-libre/5.15-i686.conf: Likewise.
* gnu/packages/aux-files/linux-libre/5.15-x86_64.conf: Likewise.
* gnu/packages/aux-files/linux-libre/5.16-i686.conf: Likewise.
* gnu/packages/aux-files/linux-libre/5.16-x86_64.conf: Likewise.
* gnu/packages/aux-files/linux-libre/5.4-x86_64.conf: Likewise.
2022-02-07 16:22:37 -05:00
Leo Famulari
44c2211c64
gnu: Add linux-libre 5.16.2.
* gnu/packages/aux-files/linux-libre/5.16-arm.conf,
gnu/packages/aux-files/linux-libre/5.16-arm64.conf,
gnu/packages/aux-files/linux-libre/5.16-i686.conf,
gnu/packages/aux-files/linux-libre/5.16-x86_64.conf : New files.
* Makefile.am (AUX_FILES): Add them.
* gnu/packages/linux.scm (linux-libre-5.16-version,
linux-libre-5.16-gnu-revision, deblob-scripts-5.16,
linux-libre-5.16-pristine-source, linux-libre-5.16-source,
linux-libre-headers-5.16, linux-libre-5.16): New variables.
2022-01-26 13:17:41 -05:00
Leo Famulari
dbcf9a06c1
gnu: linux-libre: Include pinctrl driver for Cherryview / Braswell hardware.
Fixes <https://issues.guix.gnu.org/53329>, "Integrated keyboard doesn't work
(Lenovo N22)". Reported by Jack Ridehalgh <jack@ridehalgh.uk>.

* gnu/packages/aux-files/linux-libre/5.15-i686.conf,
gnu/packages/aux-files/linux-libre/5.15-x86_64.conf: Set
CONFIG_PINCTRL_CHERRYVIEW=y.
2022-01-18 20:02:22 -05:00
Maxim Cournoyer
276f40fdc3
Merge branch 'version-1.4.0'
With resolved conflicts in:
	gnu/packages/gnome.scm
	gnu/packages/openstack.scm
	gnu/packages/python-xyz.scm
2022-01-17 11:47:09 -05:00
Hartmut Goebel
c3c943055d
build/python: Improve error output in sanity check.
Instead of printing the "str()" representation of the excaption, print the
"repr()" representation. This will print the name of the exception and thus
ease understanding the actual error.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2022-01-10 11:47:03 -05:00
Maxim Cournoyer
223cc96e5b
sitecustomize.py: Honor .pth files.
Fixes <https://issues.guix.gnu.org/52269>.

* gnu/packages/aux-files/python/sitecustomize.py: Use site.addsitedirs to add
the site directories; this takes care of the .pth files.  Make sure the added
items still appear before Python's own 'site-packages' directory.
2022-01-10 11:44:26 -05:00
Liliana Marie Prikler
0f9e73841e
gnu: renpy: Move renpy command to aux-files.
* gnu/packages/aux-files/renpy/renpy.in: New file.
* gnu/packages/game-development.scm (renpy)[install]: Use renpy.in with
substitute*.
* Makefile.am (AUX_FILES): Add it here.
2022-01-15 09:41:59 +01:00
Leo Famulari
82d5c540b0
gnu: Fix typo in kernel configs.
This option defaults to "N", so this fix does not change the effective
kernel configuration.

* gnu/packages/aux-files/linux-libre/5.15-i686.conf,
nu/packages/aux-files/linux-libre/5.15-x86_64.conf: Replace "unset" with "not
set".
2022-01-11 15:47:42 -05:00
Tobias Geerinckx-Rice
1dfe8c3721
gnu: linux-libre: Build simplefb into all x86{,_64} kernels.
This attempts to mitigate <https://issues.guix.gnu.org/52667>.

It makes linux-libre@5.15 consistent with older versions which do not
support a modular simplefb, allowing a single %base-initrd-modules
simple list for all of them.

Unlike CONFIG_FB_SIMPLE=m, CONFIG_FB_SIMPLE=y conflicts with
CONFIG_DRM_SIMPLEDRM, so the latter is now disabled.  Let us hope it is
not missed.

* gnu/packages/aux-files/linux-libre/5.15-i686.conf,
gnu/packages/aux-files/linux-libre/5.15-x86_64.conf:
Unset CONFIG_DRM_SIMPLEDRM to build in CONFIG_FB_SIMPLE=y.
* gnu/system/linux-initrd.scm (default-initrd-modules):
Remove "simplefb".
2021-12-25 07:20:00 +01:00
Tobias Geerinckx-Rice via Guix-patches via
bc09e7ab56
gnu: linux-libre: Support the Coreboot framebuffer.
Without this, the kernel cannot write to the display until the
full-featured driver module (often i915) is loaded from the root file
system.

If the root file system is encrypted, the initrd's passphrase prompt
won't make it to the screen, and the fully responsive system will appear
frozen whilst waiting for user input.

* gnu/packages/aux-files/linux-libre/4.4-i686.conf,
gnu/packages/aux-files/linux-libre/4.4-x86_64.conf,
gnu/packages/aux-files/linux-libre/4.14-i686.conf,
gnu/packages/aux-files/linux-libre/4.14-x86_64.conf,
gnu/packages/aux-files/linux-libre/4.19-i686.conf,
gnu/packages/aux-files/linux-libre/4.19-x86_64.conf,
gnu/packages/aux-files/linux-libre/5.4-i686.conf,
gnu/packages/aux-files/linux-libre/5.4-x86_64.conf,
gnu/packages/aux-files/linux-libre/5.10-i686.conf,
gnu/packages/aux-files/linux-libre/5.10-x86_64.conf,
gnu/packages/aux-files/linux-libre/5.15-i686.conf,
gnu/packages/aux-files/linux-libre/5.15-x86_64.conf:
Mark simple framebuffers as generic system ones and enable ‘Google’
firmware drivers to enable Coreboot table support and its dependent
framebuffer driver module.
* gnu/system/linux-initrd.scm (default-initrd-modules):
Add the framebuffer_coreboot and simplefb modules on x86 systems.
2021-12-16 12:53:52 -05:00
Ricardo Wurmus
9bc0f45df5
Merge remote-tracking branch 'origin/master' into core-updates-frozen 2021-12-05 19:17:41 +01:00
Liliana Marie Prikler
15404ff19b
gnu: emacs: Load package descriptors from packages referenced by subdirs.el
* gnu/packages/aux-files/emacs/guix-emacs.el
(guix-emacs--non-core-load-path): New procedure.
(guix-emacs-autoload-packages): Use it here.
(guix-emacs-load-package-descriptors): New procedure.
* gnu/packages/emacs.scm (emacs)[install-site-start]: Install advice to run
‘guix-emacs-load-package-descriptors’.
2021-12-03 21:39:50 +01:00
Leo Famulari
0384bceadb
gnu: Remove linux-libre 5.14.
* gnu/packages/linux.scm (linux-libre-5.14-version,
linux-libre-5.14-gnu-revision, deblob-scripts-5.14,
linux-libre-5.14-pristine-source, linux-libre-5.14-source,
linux-libre-headers-5.14, linux-libre-5.14): Remove variables.
* gnu/packages/aux-files/linux-libre/5.14-arm.conf,
gnu/packages/aux-files/linux-libre/5.14-arm64.conf,
gnu/packages/aux-files/linux-libre/5.14-i686.conf,
gnu/packages/aux-files/linux-libre/5.14-x86_64.conf: Delete files.
* Makefile.am (AUX_FILES): Remove them.
2021-11-26 16:54:47 -05:00
Leo Famulari
14f6c21077
gnu: Add linux-libre 5.15.5.
* gnu/packages/linux.scm (linux-libre-5.15-version,
linux-libre-5.15-gnu-revision, deblob-scripts-5.15,
linux-libre-5.15-pristine-source, linux-libre-5.15-source,
linux-libre-headers-5.15, linux-libre-5.15): New variables.
* gnu/packages/aux-files/linux-libre/5.15-arm.conf,
gnu/packages/aux-files/linux-libre/5.15-arm64.conf,
gnu/packages/aux-files/linux-libre/5.15-i686.conf,
gnu/packages/aux-files/linux-libre/5.15-x86_64.conf: New files.
* Makefile.am (AUX_FILES): Add them
2021-11-26 16:54:47 -05:00
Maxim Cournoyer
874188c0ab
aux-files: sitecustomize: Cleanup and add explanatory comments.
Fixes <https://issues.guix.gnu.org/50105>.

* gnu/packages/aux-files/python/sitecustomize.py: Add a comment explaining the
general idea, and use sys.prefix instead of sys.executable.

(major_minor): Use the unpacking operator (*) to provide the arguments.
(site_packages_prefix): Use os.path.join to form the path.
(python_site): Likewise.  Use sys.prefix instead of sys.executable.
(all_sites_raw): Split on os.path.pathsep.
(sys.path): Directly splice the result in the list.

Suggested-by: Hartmut Goebel <h.goebel@crazy-compilers.com>
Reported-by: Mathieu Othacehe <othacehe@gnu.org>
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2021-11-11 10:31:32 -05:00
Mathieu Othacehe
a1eca979fb
Merge remote-tracking branch 'origin/master' into core-updates-frozen. 2021-10-12 17:46:23 +00:00
Leo Famulari
3db282a161
gnu: linux-libre: Update to 5.14.7.
* gnu/packages/linux.scm (linux-libre-5.13-version,
linux-libre-5.13-gnu-revision, linux-libre-5.13-pristine-source,
linux-libre-5.13-source, linux-libre-headers-5.13, linux-libre-5.13): Remove
variables.
(linux-libre-version, linux-libre-gnu-revision, linux-libre-pristine-source,
linux-libre-source, linux-libre, linux-libre-with-bpf): Use 5.14.
* gnu/packages/aux-files/linux-libre/5.13-arm.conf,
gnu/packages/aux-files/linux-libre/5.13-arm64.conf,
gnu/packages/aux-files/linux-libre/5.13-i686.conf,
gnu/packages/aux-files/linux-libre/5.13-x86_64.conf: Delete files.
* Makefile.am (AUX_FILES): Remove them.
2021-09-22 14:47:56 -04:00
Marius Bakke
5c3cb22c9b
Merge branch 'master' into core-updates-frozen
Conflicts:
	gnu/packages/bioinformatics.scm
	gnu/packages/chez.scm
	gnu/packages/docbook.scm
	gnu/packages/ebook.scm
	gnu/packages/gnome.scm
	gnu/packages/linux.scm
	gnu/packages/networking.scm
	gnu/packages/python-web.scm
	gnu/packages/python-xyz.scm
	gnu/packages/tex.scm
	gnu/packages/version-control.scm
	gnu/packages/xml.scm
	guix/build-system/dune.scm
	guix/build-system/go.scm
	guix/build-system/linux-module.scm
	guix/packages.scm
2021-09-17 01:25:52 +02:00
Ludovic Courtès
d9dfbf886d
Merge branch 'master' into core-updates-frozen 2021-09-07 14:19:08 +02:00
Leo Famulari
8b2b027df9
gnu: Add linux-libre 5.14.1.
* gnu/packages/linux.scm (linux-libre-5.14-version, deblob-scripts-5.14,
linux-libre-5.14-pristine-source, linux-libre-5.14-source,
linux-libre-headers-5.14, linux-libre-5.14): New variables.
* gnu/packages/aux-files/linux-libre/5.14-arm.conf,
gnu/packages/aux-files/linux-libre/5.14-arm64.conf,
gnu/packages/aux-files/linux-libre/5.14-i686.conf,
gnu/packages/aux-files/linux-libre/5.14-x86_64.conf: New files.
* Makefile.am (AUX_FILES): Add them.
2021-09-06 22:27:43 -04:00
Marius Bakke
f8458a2282
build-system/python: Handle missing metadata on Python 2.
* gnu/packages/aux-files/python/sanity-check.py: Catch the less specific
EnvironmentError rather than FileNotFoundError as the latter is Python 3
only.
2021-07-30 15:54:31 +02:00
Marius Bakke
b029be2ee0
Merge branch 'master' into core-updates-frozen
Conflicts:
	gnu/packages/bioinformatics.scm
	gnu/packages/cmake.scm
	gnu/packages/curl.scm
	gnu/packages/emacs-xyz.scm
	gnu/packages/gpodder.scm
	gnu/packages/music.scm
	gnu/packages/patches/glibc-bootstrap-system.patch
	gnu/packages/python-xyz.scm
	gnu/packages/shells.scm
	gnu/packages/statistics.scm
2021-07-29 22:34:57 +02:00
Leo Famulari
4f108e4e5c
gnu: linux-libre: Update to 5.13.6.
* gnu/packages/linux.scm (linux-libre-5.12-version, deblob-scripts-5.12
linux-libre-5.12-pristine-source, linux-libre-5.12-source,
linux-libre-headers-5.12, linux-libre-5.12): Remove variables.
(linux-libre-version, linux-libre-pristine-source, linux-libre-source,
linux-libre): Update to the 5.13 kernel series.
(linux-libre-with-bpf): Update to 5.13 kernel series.
* gnu/packages/aux-files/linux-libre/5.12-arm.conf,
gnu/packages/aux-files/linux-libre/5.12-arm64.conf,
gnu/packages/aux-files/linux-libre/5.12-i686.conf,
gnu/packages/aux-files/linux-libre/5.12-x86_64.conf: Delete files.
* Makefile.am (AUX_FILES): Remove them.
2021-07-28 17:18:02 -04:00
Mathieu Othacehe
c0e782f0da
gnu: linux-libre: Add perf probe support.
* gnu/packages/aux-files/linux-libre/5.10-i686.conf: Enable
CONFIG_UPROBE_EVENTS option.
* gnu/packages/aux-files/linux-libre/5.10-x86_64.conf: Ditto.
* gnu/packages/aux-files/linux-libre/5.13-i686.conf: Ditto.
* gnu/packages/aux-files/linux-libre/5.13-x86_64.conf: Ditto.
* gnu/packages/aux-files/linux-libre/5.4-i686.conf: Ditto.
* gnu/packages/aux-files/linux-libre/5.4-x86_64.conf: Ditto.
2021-08-14 14:31:59 +02:00
Ludovic Courtès
0e47fcced4
Merge branch 'master' into core-updates 2021-07-18 19:50:01 +02:00
Leo Famulari
12763e4d3a
gnu: linux-libre: Default to the 'schedutil' CPU scaling governor.
For more information about these configuration options, read
<https://www.kernel.org/doc/Documentation/cpu-freq/governors.txt> or the
document 'Documentation/admin-guide/pm/cpufreq.rst' in the linux-libre
source distribution.

* gnu/packages/aux-files/linux-libre/4.14-arm.conf,
gnu/packages/aux-files/linux-libre/4.14-i686.conf,
gnu/packages/aux-files/linux-libre/4.14-x86_64.conf,
gnu/packages/aux-files/linux-libre/4.19-arm.conf,
gnu/packages/aux-files/linux-libre/4.19-arm64.conf,
gnu/packages/aux-files/linux-libre/4.19-i686.conf,
gnu/packages/aux-files/linux-libre/4.19-x86_64.conf,
gnu/packages/aux-files/linux-libre/4.9-i686.conf,
gnu/packages/aux-files/linux-libre/4.9-x86_64.conf,
gnu/packages/aux-files/linux-libre/5.10-i686.conf,
gnu/packages/aux-files/linux-libre/5.10-x86_64.conf,
gnu/packages/aux-files/linux-libre/5.12-i686.conf,
gnu/packages/aux-files/linux-libre/5.12-x86_64.conf,
gnu/packages/aux-files/linux-libre/5.13-i686.conf,
gnu/packages/aux-files/linux-libre/5.13-x86_64.conf,
gnu/packages/aux-files/linux-libre/5.4-arm.conf,
gnu/packages/aux-files/linux-libre/5.4-arm64.conf,
gnu/packages/aux-files/linux-libre/5.4-i686.conf,
gnu/packages/aux-files/linux-libre/5.4-x86_64.conf: Unset
'CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE' and set
'CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL=y'.
2021-07-15 01:54:26 -04:00
Leo Famulari
627db5611d
gnu: Add linux-libre 5.13.
* gnu/packages/linux.scm (linux-libre-5.13-version, deblob-scripts-5.13,
linux-libre-5.13-pristine-source, linux-libre-5.13-source,
linux-libre-headers-5.13, linux-libre-5.13): New variables.
* gnu/packages/aux-files/linux-libre/5.13-arm.conf,
gnu/packages/aux-files/linux-libre/5.13-arm64.conf,
gnu/packages/aux-files/linux-libre/5.13-i686.conf,
gnu/packages/aux-files/linux-libre/5.13-x86_64.conf: New files.
* Makefile.am (AUX_FILES): Add them.
2021-07-13 13:15:59 -04:00
Tobias Geerinckx-Rice
6243ad3812
gnu: linux-libre: Build the VMD driver module.
Requested by PsixisP on #guix:

  “I have a laptop that requires CONFIG_VMD (Intel's software RAID) in
   order for the kernel to see the internal NVMe drive.  This is not
   present in the default Guix kernel.”

* gnu/packages/aux-files/linux-libre/4.14-x86_64.conf,
gnu/packages/aux-files/linux-libre/4.19-x86_64.conf,
gnu/packages/aux-files/linux-libre/4.9-x86_64.conf,
gnu/packages/aux-files/linux-libre/5.10-x86_64.conf,
gnu/packages/aux-files/linux-libre/5.12-x86_64.conf,
gnu/packages/aux-files/linux-libre/5.4-x86_64.conf:
Enable modular CONFIG_VMD.
2021-07-02 16:56:12 +02:00
Ludovic Courtès
d92ee0a8bd
guile: Leave 'scm_install_gmp_memory_functions' unchanged.
Since the switch to Guile 3.0.7 using mini-GMP, we can leave
'scm_install_gmp_memory_functions' to its default value, which is to use
custom memory allocators; there is no interference with users of GMP
such as GnuTLS/Nettle.

* gnu/packages/aux-files/guile-launcher.c (main) [!SCM_ENABLE_MINI_GMP]:
Leave 'scm_install_gmp_memory_functions' unchanged.
2021-05-25 22:17:38 +02:00
Marius Bakke
4ea6852c5f
Merge branch 'master' into core-updates 2021-05-22 17:21:57 +02:00
Leo Famulari
ed5a75c730
gnu: linux-libre: Update to 5.12.5.
* gnu/packages/linux.scm (linux-libre-5.11-version, deblob-scripts-5.11,
linux-libre-5.11-pristine-source, linux-libre-5.11-source,
linux-libre-headers-5.11, linux-libre-5.11): Remove variables.
(linux-libre-version, linux-libre-pristine-source, linux-libre-source,
linux-libre): Update to the 5.12 kernel series.
(linux-libre-with-bpf): Update to the 5.12 kernel series.
* gnu/packages/aux-files/linux-libre/5.11-arm.conf,
gnu/packages/aux-files/linux-libre/5.11-arm64.conf,
gnu/packages/aux-files/linux-libre/5.11-i686.conf,
gnu/packages/aux-files/linux-libre/5.11-x86_64.conf: Delete files.
* Makefile.am (AUX_FILES): Remove them.
2021-05-21 11:40:12 -04:00
Marius Bakke
f034264204
Merge branch 'master' into core-updates
Conflicts:
	gnu/local.mk
	gnu/packages/bioinformatics.scm
	gnu/packages/django.scm
	gnu/packages/gtk.scm
	gnu/packages/llvm.scm
	gnu/packages/python-web.scm
	gnu/packages/python.scm
	gnu/packages/tex.scm
	guix/build-system/asdf.scm
	guix/build/emacs-build-system.scm
	guix/profiles.scm
2021-05-09 21:29:46 +02:00
Vagrant Cascadian
407e0af6aa
gnu: linux-libre@5.12: Update arm64 config to support Pinebook Pro.
* gnu/packages/aux-files/linux-libre/5.11-arm64.conf: Add
  configurations to support video, audio, USB-C and battery on
  Pinebook Pro.
2021-05-08 20:07:17 -07:00
Vagrant Cascadian
44eca34436
gnu: linux-libre@5.12: Default to schedutil cpufreq governor on arm
and arm64.

This has been the recommended default for arm and arm64 since v5.9
(upstream commit f259eab3ea0e7ed73db91f6358274dd3a9a27d79).

* gnu/packages/aux-files/linux-libre/5.12-arm.conf,
  gnu/packages/aux-files/linux-libre/5.12-arm64.conf: Enable
  CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL, disable
  CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE.
2021-05-08 19:59:21 -07:00
Leo Famulari
a21355bd10
gnu: Add linux-libre 5.12.2.
* gnu/packages/linux.scm (linux-libre-5.12-version, deblob-scripts-5.12,
linux-libre-5.12-pristine-source, linux-libre-5.12-source,
linux-libre-headers-5.12, linux-libre-5.12): New variables.
* gnu/packages/aux-files/linux-libre/5.12-arm.conf,
gnu/packages/aux-files/linux-libre/5.12-arm64.conf,
gnu/packages/aux-files/linux-libre/5.12-i686.conf,
gnu/packages/aux-files/linux-libre/5.12-x86_64.conf: New files.
* Makefile.am (AUX_FILES): Add them.
2021-05-08 18:41:45 -04:00
Vagrant Cascadian
b4ab965dfa
gnu: linux-libre: Default to schedutil cpufreq governor on arm and arm64.
This has been the recommended default for arm and arm64 since since
v5.9 (upstream commit f259eab3ea0e7ed73db91f6358274dd3a9a27d79).

* gnu/packages/aux-files/linux-libre/5.10-arm.conf,
  gnu/packages/aux-files/linux-libre/5.10-arm.conf,
  gnu/packages/aux-files/linux-libre/5.11-arm.conf,
  gnu/packages/aux-files/linux-libre/5.11-arm.conf: Enable
  CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL, disable
  CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE.
2021-05-07 15:23:42 -07:00
Vagrant Cascadian
d330d63a29
gnu: linux-libre: Update arm64 config to support Pinebook Pro.
* gnu/packages/aux-files/linux-libre/5.11-arm64.conf: Add
  configurations to support video, audio, USB-C and battery on
  Pinebook Pro.
2021-05-06 12:34:41 -07:00
Efraim Flashner
fcc39864db
Merge remote-tracking branch 'origin/master' into core-updates
Conflicts:
	gnu/local.mk
	gnu/packages/boost.scm
	gnu/packages/chez.scm
	gnu/packages/compression.scm
	gnu/packages/crates-io.scm
	gnu/packages/docbook.scm
	gnu/packages/engineering.scm
	gnu/packages/gcc.scm
	gnu/packages/gl.scm
	gnu/packages/gtk.scm
	gnu/packages/nettle.scm
	gnu/packages/python-check.scm
	gnu/packages/python-xyz.scm
	gnu/packages/radio.scm
	gnu/packages/rust.scm
	gnu/packages/sqlite.scm
	guix/build-system/node.scm
2021-04-16 14:39:48 +03:00
Leo Famulari
60dfd36fda
gnu: linux-libre 5.10: Update to 5.10.27.
* gnu/packages/linux.scm (linux-libre-5.10-version): Update to 5.10.27.
(linux-libre-5.10-pristine-source): Update hash.
* gnu/packages/aux-files/linux-libre/5.10-x86_64.conf: Update for
linux-libre@5.10.27.
2021-03-31 14:30:52 -04:00
Leo Famulari
c891799bc7
gnu: linux-libre: Update to 5.11.11.
* gnu/packages/linux.scm (linux-libre-5.11-version): Update to 5.11.11.
(linux-libre-5.11-pristine-source): Update hash.
* gnu/packages/aux-files/linux-libre/5.11-x86_64.conf: Update for
linux-libre@5.11.11.
2021-03-31 14:30:52 -04:00
Christopher Baines
a8448da0f4
Merge branch 'master' into core-updates 2021-03-06 00:18:30 +00:00
Marius Bakke
182d2ef510
gnu: ungoogled-chromium: Update default preferences.
* gnu/packages/aux-files/chromium/master-preferences.json: Adjust for upstream
changes.
2021-02-21 21:39:38 +01:00
Leo Famulari
b819512ca2
gnu: Add linux-libre 5.11.
* gnu/packages/linux.scm (linux-libre-5.11-version, deblob-scripts-5.11,
linux-libre-5.11-pristine-source, linux-libre-5.11-source, linux-libre-5.11):
New variables.
* gnu/packages/aux-files/linux-libre/5.11-x86_64.conf,
gnu/packages/aux-files/linux-libre/5.11-i686.conf,
gnu/packages/aux-files/linux-libre/5.11-arm.conf,
gnu/packages/aux-files/linux-libre/5.11-arm64.conf: New files.
* Makefile.am (AUX_FILES): Add them.
2021-02-16 16:01:48 -05:00
Danny Milosavljevic
abd318ff4b
Merge branch 'master' into core-updates 2021-02-11 19:12:36 +01:00
Ludovic Courtès
a53f711422
guile: Do not install Guile/libgc allocators for GMP.
Fixes <https://bugs.gnu.org/46330>.

* gnu/packages/aux-files/guile-launcher.c (main): Clear
'scm_install_gmp_memory_functions'.
2021-02-07 22:28:55 +01:00
Leo Famulari
2b17d2be69
gnu: Update linux-libre configurations for 5.10.13.
* gnu/packages/aux-files/linux-libre/5.10-arm.conf,
gnu/packages/aux-files/linux-libre/5.10-arm64.conf,
gnu/packages/aux-files/linux-libre/5.10-i686.conf,
gnu/packages/aux-files/linux-libre/5.10-x86_64.conf: Update for 5.10.13.
2021-02-04 15:40:49 -05:00
Maxim Cournoyer
bb557c9ac1
build/python: Handle FileNotFoundError exception in sanity-check.py.
This exception was thrown while running the sanity-check on the python-isort
package, which doesn't make use of a setuptools-based build system but rather
of a PEP 517 compliant one.

* gnu/packages/aux-files/python/sanity-check.py: Handle the FileNotFoundError
whe attempting to read the 'top_level.txt' metadata file of the package.
Remove extraneous 'continue' statement.
2021-02-03 21:56:53 -05:00
Leo Famulari
29daa4dfb8
gnu: Remove leftover kernel configurations for linux-libre 5.9.
This is a followup to commit 8727870ff4.

* gnu/packages/aux-files/linux-libre/5.9-arm.conf,
gnu/packages/aux-files/linux-libre/5.9-arm64.conf,
gnu/packages/aux-files/linux-libre/5.9-i686.conf,
gnu/packages/aux-files/linux-libre/5.9-x86_64.conf: Delete files.
* Makefile.am (AUX_FILES): Remove them.
2021-02-03 19:47:24 -05:00
Lars-Dominik Braun
09448c0994
build/python: Add a sanity check phase.
Add a new phase validating the usability of installed Python packages.

* gnu/packages/aux-files/python/sanity-check.py: New file.
* Makefile.am (AUX_FILES): Register it.
* guix/build-system/python.scm (sanity-check.py): New variable.
(lower): Add the script as an implicit input.
* guix/build/python-build-system.scm: Remove trailing #t.
(sanity-check): New phase.
(%standard-phases): Use it.
* tests/builders.scm: (make-python-dummy)
(dummy-ok, dummy-dummy-nosetuptools, dummy-fail-requirements)
(dummy-fail-import, dummy-fail-console-script): New variables.
("python-build-system: dummy-ok")
("python-build-system: dummy-dummy-nosetuptools")
("python-build-system: dummy-fail-requirements")
("python-build-system: dummy-fail-import")
("python-build-system: dummy-fail-console-script"): Add tests.
2021-02-01 11:53:43 -05:00
Maxim Cournoyer
cb72f9a773
gnu: python: Replace PYTHONPATH by GUIX_PYTHONPATH.
Using PYTHONPATH as a mean to discover the Python packages had the following
issues:

        1. It is not versioned, so different versions of Python would clash if
        installed in a shared profile.

        2. It would interfere with the host Python site on foreign
        distributions, sometimes preventing a a user to login their GDM
        session (!).

        3. It would take precedence over user installed Python packages
        installed through pip.

        4. It would leak into Python virtualenvs, which are supposed to create
        isolated Python environments.

This changes fixes the above issues by making use of a sitecustomize.py
module.  The newly introduced GUIX_PYTHONPATH environment variable is read
from the environment, filtered for the current Python version of the
interpreter, and spliced in 'sys.path' just before Python's own site location,
which provides the expected behavior.

* gnu/packages/aux-files/python/sitecustomize.py: New file.
* Makefile.am: Register it.
* gnu/packages/python.scm (customize-site)
(guix-pythonpath-search-path): New procedures.
(python-2.7)[phases]{install-sitecustomize.py}: New phase.
[native-inputs]{sitecustomize.py}: New input.
[native-search-paths]: Replace PYTHONPATH with GUIX_PYTHONPATH.
(python-3.9)[native-search-paths]: Likewise.
[phases]{install-sitecustomize}: Override with correct version.
[native-search-paths]: Replace PYTHONPATH with GUIX_PYTHONPATH.
* gnu/packages/commencement.scm (python-boot0):
[phases]{install-sitecustomize}: Likewise.
[native-inputs]{sitecustomize.py}: New input.
[native-search-paths]: Replace PYTHONPATH with GUIX_PYTHONPATH.
* guix/build/python-build-system.scm (site-packages): Do not add a trailing
'/'.

squash! gnu: python: Replace PYTHONPATH by GUIX_PYTHONPATH.
2021-02-01 11:53:42 -05:00
Efraim Flashner
53b51b44fd
gnu: vim: Automatically find vim plugins.
* gnu/packages/vim.scm (vim)[arguments]: Add new 'install-guix.vim phase
to install vendor specific vimrc.
* gnu/packages/aux-files/guix.vim: New file.
* Makefile.am (AUX_FILES): Register it.
2020-12-20 12:52:51 +02:00
Leo Famulari
66b5bc3191
gnu: linux-libre: Update to 5.10.1.
* gnu/packages/aux-files/linux-libre/5.10-arm.conf,
gnu/packages/aux-files/linux-libre/5.10-arm64.conf,
gnu/packages/aux-files/linux-libre/5.10-i686.conf,
gnu/packages/aux-files/linux-libre/5.10-x86_64.conf: New files.
* Makefile.am (AUX_FILES): Add them.
* gnu/packages/linux.scm (linux-libre-5.10-version, deblob-scripts-5.10,
linux-libre-5.10-pristine-source, linux-libre-5.10-source,
linux-libre-headers-5.10, linux-libre-5.10): New variables.
(linux-libre-version, linux-libre-pristine-source, linux-libre-source,
linux-libre, linux-libre-with-bpf): Update to 5.10.1.
2020-12-19 16:06:09 -05:00
Ludovic Courtès
d20665ecbf
guix: 'guile' executable ignores GUILE_LOAD_PATH during startup.
When starting the 'guix' command, this ensures Guile modules are
immediately found instead of being search for in other directories.
This reduces the number of 'stat' calls during startup when
GUILE_LOAD_PATH is set to (almost) that of "env -i $(type -P guix)".

* gnu/packages/aux-files/guile-launcher.c (load_path)
(load_compiled_path): New variables.
(inner_main): Restore GUILE_LOAD_PATH and GUILE_LOAD_COMPILED_PATH and
set %load-path and %load-compiled-path accordingly.
(main): Save GUILE_LOAD_PATH and GUILE_LOAD_COMPILED_PATH and unset them.
2020-12-11 19:06:53 +01:00
Ludovic Courtès
bfe82fe2f6
pack: Relocatable wrapper leaves root available to child processes.
Fixes <https://bugs.gnu.org/44261>.
Reported by Jan Nieuwenhuizen <janneke@gnu.org>.

* gnu/packages/aux-files/run-in-namespace.c (exec_in_user_namespace):
Add call to 'prctl'.  Call 'mount' for NEW_ROOT and define 'is_tmpfs'.
When IS_TMPFS is true, call 'umount' and 'rmdir' after 'waitpid';
otherwise, call 'rm_rf' only when 'waitpid' returns -1 the second time.
(exec_with_loader): Call 'prctl'.  Remove NEW_ROOT only when 'waitpid'
returns -1 the second time, otherwise leave it behind.
* tests/guix-pack-relocatable.sh (wait_for_file): New function.
Add test.
2020-10-31 23:16:43 +01:00
Leo Famulari
5d34acb756
gnu: linux-libre: Update to 5.9.2.
* gnu/packages/linux.scm (linux-libre-5.9-version): Update to 5.9.2.
(deblob-scripts-5.9, linux-libre-5.9-pristine-source): Update hashes.
* gnu/packages/aux-files/linux-libre/5.9-arm.conf,
gnu/packages/aux-files/linux-libre/5.9-arm64.conf,
gnu/packages/aux-files/linux-libre/5.9-i686.conf,
gnu/packages/aux-files/linux-libre/5.9-x86_64.conf: Update kernel configurations
for 5.9.2.
2020-10-30 15:17:48 -04:00
Eric Bavier
a73896425e
guix: pack: Fix offset calculation for store directory mount point.
Fixes wrapping of non-package things, where the target store directory may
differ in length from the original.

* guix/scripts/pack.scm (wrapped-package)<build-wrapper>: Define
WRAPPER_PROGRAM macro with wrapper's file name.
* gnu/packages/aux-files/run-in-namespace.c (main): Offset index by len of
that file name.
2020-10-30 10:00:29 -05:00
Leo Famulari
23a110aa53
gnu: linux-libre: Update to 5.9.1.
* gnu/packages/aux-files/linux-libre/5.8-arm.conf,
gnu/packages/aux-files/linux-libre/5.8-arm64.conf,
gnu/packages/aux-files/linux-libre/5.8-i686.conf,
gnu/packages/aux-files/linux-libre/5.8-x86_64.conf: Delete files.
* gnu/packages/aux-files/linux-libre/5.9-arm.conf,
gnu/packages/aux-files/linux-libre/5.9-arm64.conf,
gnu/packages/aux-files/linux-libre/5.9-i686.conf,
gnu/packages/aux-files/linux-libre/5.9-x86_64.conf: New files.
* Makefile.am (AUX_FILES): Adjust accordingly.
* gnu/packages/linux.scm (linux-libre-5.8-version, deblob-scripts-5.8,
linux-libre-5.8-pristine-source, linux-libre-5.8-source,
linux-libre-headers-5.8, linux-libre-5.8): Remove variables.
(linux-libre-5.9-version, deblob-scripts-5.9, linux-libre-5.9-pristine-source,
linux-libre-5.9-source, linux-libre-headers-5.9, linux-libre-5.9): New
variables.
(linux-libre-version, linux-libre-pristine-source, linux-libre-source,
linux-libre): Point to linux-libre-5.9*.
(linux-libre-with-bpf): Use linux-libre-5.9.
2020-10-24 17:21:29 -04:00
Tobias Geerinckx-Rice via Guix-patches via
f43287aff0
gnu: linux-libre: Enable XDP sockets and their monitoring.
* gnu/packages/aux-files/linux-libre/4.19-arm.conf: Enable AF_XDP
sockets and the associated monitor interface.
* gnu/packages/aux-files/linux-libre/4.19-arm64.conf: Likewise
* gnu/packages/aux-files/linux-libre/4.19-i686.conf: Likewise
* gnu/packages/aux-files/linux-libre/4.19-x86_64.conf: Likewise
* gnu/packages/aux-files/linux-libre/5.4-arm.conf: Likewise
* gnu/packages/aux-files/linux-libre/5.4-arm64.conf: Likewise
* gnu/packages/aux-files/linux-libre/5.4-i686.conf: Likewise
* gnu/packages/aux-files/linux-libre/5.4-x86_64.conf: Likewise
* gnu/packages/aux-files/linux-libre/5.8-arm.conf: Likewise
* gnu/packages/aux-files/linux-libre/5.8-arm64.conf: Likewise
* gnu/packages/aux-files/linux-libre/5.8-i686.conf: Likewise
* gnu/packages/aux-files/linux-libre/5.8-x86_64.conf: Likewise
2020-10-15 14:23:01 -04:00
Ludovic Courtès
1d4ab335b2
self: Use a 'guile' that doesn't complain about locales.
Since commit ba48895899, selected UTF-8
locales are bundled.  However, because 'guix-command' is itself a Guile
script, users would still see Guile's warning, particularly on foreign
distros:

  $ LC_ALL=sdf guix foo
  guile: warning: failed to install locale
  hint: Consider installing the `glibc-utf8-locales' [...]

User commands would print that warning, but more importantly, each
invocation of 'guix substitute' would print it, even though
'guix-daemon.service' explicitly chooses "en_US.utf8", which is in
'glibc-utf8-locales'.  This leads to confusion since users would keep
seeing this message unless/until they realize they also need to install
'glibc-utf8-locales' in root's profile.

This patch gets rid of "guile: warning: ..." for a guix-pulled 'guix'
command.

* guix/self.scm (specification->package): Add "gcc-toolchain".
(quiet-guile): New procedure.
(guix-command): Use it.
* gnu/packages/aux-files/guile-launcher.c: New file.
* Makefile.am (AUX_FILES): Add it.
2020-10-05 23:19:19 +02:00
Leo Famulari
b39541859d
gnu: Remove linux-libre 5.7.
The 5.7 kernel series is no longer supported upstream.

* gnu/packages/linux.scm (deblob-scripts-5.7, linux-libre-5.7-version,
linux-libre-5.7-pristine-source, linux-libre-5.7-source,
linux-libre-headers-5.7, linux-libre-5.7) Remove variables.
* gnu/packages/aux-files/linux-libre/5.7-arm.conf,
gnu/packages/aux-files/linux-libre/5.7-arm64.conf,
gnu/packages/aux-files/linux-libre/5.7-i686.conf,
gnu/packages/aux-files/linux-libre/5.7-x86_64.conf: Delete files.
* Makefile.am (AUX_FILES): Remove them.
2020-08-30 13:53:55 -04:00
Ludovic Courtès
28dce8f02d
pack: fakechroot: Honor $LD_LIBRARY_PATH.
Until now, when using the "fakechroot" engine, $LD_LIBRARY_PATH would
always be ignored.  However, it's useful in some cases to allow users to
specify LD_LIBRARY_PATH, so honor it.

* gnu/packages/aux-files/run-in-namespace.c (concat_paths): New function.
(exec_with_loader): Concatenante $LD_LIBRARY_PATH to the relocated
AUDIT_LIBRARY_PATH.
2020-08-27 19:58:16 +02:00
Mathieu Othacehe
41a190b8c6
linux-libre: Enable module compression for all versions.
This is a follow-up of 5fe12be0dd. It enables
module compression for all supported Linux versions.

*  gnu/packages/aux-files/linux-libre/4.14-arm.conf: Enable GZIP module compression.
*  gnu/packages/aux-files/linux-libre/4.14-i686.conf: Ditto.
*  gnu/packages/aux-files/linux-libre/4.14-x86_64.conf: Ditto.
*  gnu/packages/aux-files/linux-libre/4.19-arm.conf: Ditto.
*  gnu/packages/aux-files/linux-libre/4.19-arm64.conf: Ditto.
*  gnu/packages/aux-files/linux-libre/4.19-i686.conf: Ditto.
*  gnu/packages/aux-files/linux-libre/4.19-x86_64.conf: Ditto.
*  gnu/packages/aux-files/linux-libre/4.4-i686.conf: Ditto.
*  gnu/packages/aux-files/linux-libre/4.4-x86_64.conf: Ditto.
*  gnu/packages/aux-files/linux-libre/4.9-i686.conf: Ditto.
*  gnu/packages/aux-files/linux-libre/4.9-x86_64.conf: Ditto.
*  gnu/packages/aux-files/linux-libre/5.4-arm.conf: Ditto.
*  gnu/packages/aux-files/linux-libre/5.4-arm64.conf: Ditto.
*  gnu/packages/aux-files/linux-libre/5.4-i686.conf: Ditto.
*  gnu/packages/aux-files/linux-libre/5.4-x86_64.conf: Ditto.
*  gnu/packages/aux-files/linux-libre/5.7-arm.conf: Ditto.
*  gnu/packages/aux-files/linux-libre/5.7-arm64.conf: Ditto.
*  gnu/packages/aux-files/linux-libre/5.7-i686.conf: Ditto.
*  gnu/packages/aux-files/linux-libre/5.7-x86_64.conf: Ditto.
2020-08-27 10:41:51 +02:00
Mathieu Othacehe
5fe12be0dd
linux-libre: Enable module compression.
This commit enables GZIP compression for linux-libre kernel modules, reducing
the size of linux-libre by 63% (165MB).

* gnu/packages/aux-files/linux-libre/5.8-arm.conf: Enable GZ compression.
* gnu/packages/aux-files/linux-libre/5.8-arm64.conf: Ditto.
* gnu/packages/aux-files/linux-libre/5.8-i686.conf: Ditto.
* gnu/packages/aux-files/linux-libre/5.8-x86_64.conf: Ditto.
2020-08-25 11:53:21 +02:00
Leo Famulari
7bb0527cef
gnu: linux-libre: Update to 5.8.2.
* gnu/packages/aux-files/linux-libre/5.8-arm.conf,
gnu/packages/aux-files/linux-libre/5.8-arm64.conf,
gnu/packages/aux-files/linux-libre/5.8-i686.conf,
gnu/packages/aux-files/linux-libre/5.8-x86_64.conf: New files.
* Makefile.am (AUX_FILES): Add them.
* gnu/packages/linux.scm (linux-libre-5.8): New variable.
(linux-libre-version, linux-libre-pristine-source, linux-libre-source,
linux-libre): Point to linux-libre-5.8*.
2020-08-21 17:59:42 -04:00
Leo Famulari
6408f9f6b9
gnu: linux-libre: Fix typo in the configuration for 5.7 on x86_64.
* gnu/packages/aux-files/linux-libre/5.7-x86_64.conf: Fix typo.
2020-08-10 11:32:05 -04:00
Leo Famulari
843344273c
gnu: linux-libre: Update to 5.7.12.
* gnu/packages/aux-files/linux-libre/5.7-arm.conf,
gnu/packages/aux-files/linux-libre/5.7-arm64.conf,
gnu/packages/aux-files/linux-libre/5.7-i686.conf,
gnu/packages/aux-files/linux-libre/5.7-x86_64.conf: New files.
* Makefile.am (AUX_FILES): Update accordingly.
* gnu/packages/linux.scm: (linux-libre-5.7): New variable.
(linux-libre-version, linux-libre-pristine-source)
(linux-libre-source, linux-libre): Point to linux-libre-5.7*.
2020-08-05 13:22:41 -04:00
Ludovic Courtès
c088aa2988
pack: "fakechroot" engine always creates its store.
Previously it would silently fail to create the /gnu/store symlink when
the host has a read-only /gnu as is the case in these tests.

* gnu/packages/aux-files/run-in-namespace.c (exec_with_loader): Unlink
the ancestor of ORIGINAL_STORE under NEW_ROOT.  Check the return value
of 'symlink' when creating NEW_STORE.
* tests/guix-pack-relocatable.sh: Check the contents of the store as
seen by the wrapped executable, with all three engines, and with both
"/gnu" and "/gnu/store" erased.
2020-07-28 14:41:05 +02:00
Ludovic Courtès
c6c0d5a22c
pack: "fakechroot" execution engine can load its audit module.
Fixes <https://bugs.gnu.org/42558>.

Until now, loading 'pack-audit.so' in a truly non-Guix environment would
usually fail because 'pack-audit.so' depends on 'libgcc_s.so' and
'libc.so', none of which could be found.

Furthermore, the test was not working as expected: the trick

  unshare -mrf sh -c 'mount -t tmpfs none /gnu ; ...'

would allow the fakechroot engine to make its store available as
/gnu/store as a result of another bug.

* gnu/packages/aux-files/run-in-namespace.c (relocated_search_path): New
function.
(exec_with_loader): Pass "--library-path" to the loader.
* guix/scripts/pack.scm (wrapped-package)[build](runpath): New procedure.
(elf-loader-compile-flags): Pass "-DLOADER_AUDIT_RUNPATH".
* tests/guix-pack-relocatable.sh: Remove 'STORE_PARENT'.
(run_without_store): New function.  Erase $NIX_STORE_DIR instead of
$STORE_PARENT.
Use 'run_without_store' throughout.
2020-07-28 14:41:04 +02:00
Ludovic Courtès
6456232164
pack: Add relocation via ld.so and fakechroot.
* gnu/packages/aux-files/run-in-namespace.c (HAVE_EXEC_WITH_LOADER): New
macro.
(bind_mount): Rename to...
(mirror_directory): ... this.  Add 'firmlink' argument and use it
instead of calling mkdir/open/close/mount directly.
(bind_mount, make_symlink): New functions.
(exec_in_user_namespace): Adjust accordingly.
(exec_with_loader) [HAVE_EXEC_WITH_LOADER]: New function.
(exec_performance): New function.
(engines): Add them.
* guix/scripts/pack.scm (wrapped-package)[fakechroot-library]
[audit-module]: New procedures.
[audit-source]: New variable.
[build](elf-interpreter, elf-loader-compile-flags): New procedures.
(build-wrapper): Use them.
* tests/guix-pack-relocatable.sh: Test with
'GUIX_EXECUTION_ENGINE=fakechroot'.
* doc/guix.texi (Invoking guix pack): Document the 'performance' and
'fakechroot' engines.
* gnu/packages/aux-files/pack-audit.c: New file.
* Makefile.am (AUX_FILES): Add it.
2020-05-14 17:21:27 +02:00
Ludovic Courtès
0cd13e72f2
pack: Factorize store references in wrapper.
* gnu/packages/aux-files/run-in-namespace.c (original_store): New variable.
(exec_in_user_namespace, exec_with_proot, main): Use it instead of the
literal "@STORE_DIRECTORY@".
2020-05-14 17:21:27 +02:00
Ludovic Courtès
fde2aec3f4
pack: Wrapper honors 'GUIX_EXECUTION_ENGINE' environment variable.
* gnu/packages/aux-files/run-in-namespace.c (struct engine): New type.
(exec_default): New function.
(engines): New variable.
(execution_engine): New function.
(main): Use it instead of calling 'exec_in_user_namespace' and
'exec_with_proot' directly.
* tests/guix-pack-relocatable.sh: Add test with 'GUIX_EXECUTION_ENGINE'.
* doc/guix.texi (Invoking guix pack): Document 'GUIX_EXECUTION_ENGINE'.
2020-05-14 17:21:27 +02:00
Ludovic Courtès
bdb9b4e8d3
pack: Factorize 'exec_in_user_namespace' wrapper.
* gnu/packages/aux-files/run-in-namespace.c (exec_in_user_namespace):
New function, with code taken from...
(main): ... here.  Call it.
2020-05-07 23:52:25 +02:00
Ludovic Courtès
14928af2af
pack: Add 'xmalloc' in wrapper.
* gnu/packages/aux-files/run-in-namespace.c (xmalloc): New function.
(concat): Use it.
2020-05-07 23:52:25 +02:00
Ludovic Courtès
4a53c19a32
pack: Fix off-by-one in PRoot handling in the wrapper.
* gnu/packages/aux-files/run-in-namespace.c (exec_with_proot): Make
'proot_argv' one element larger to account for the terminating NULL.
2020-05-07 23:52:25 +02:00
Ludovic Courtès
2520059bdb
pack: 'guix pack -R' wrapper correctly reports exit code.
Fixes <https://bugs.gnu.org/40816>.
Reported by Jan (janneke) Nieuwenhuizen <janneke@gnu.org>.

* gnu/packages/aux-files/run-in-namespace.c (main): In the 'default'
case, check 'WIFEXITED (status)' and exit with the corresponding code in
that case.  Exit with 255 in other cases.
* tests/guix-pack-relocatable.sh: Add test.
2020-04-24 16:21:13 +02:00
Vagrant Cascadian
37f8c50cdc
gnu: linux-libre-arm-veyron: Deprecate package.
* gnu/packages/linux (linux-libre-arm-veyron): Mark as deprecated package.
  (kernel-config-veyron): Remove obsolete function.
* gnu/system/examples/asus-c201.tmpl: Update to use linux-libre-arm-generic.
* gnu/packages/aux-files/linux-libre/5.4-arm-veyron.conf: Delete file.
* Makefile.am (AUX_FILES): Update accordingly.
2020-03-22 20:55:37 -07:00
Maxim Cournoyer
155f9afde5
gnu: emacs: Remove obsolete FIXME comment.
* gnu/packages/aux-files/emacs/guix-emacs.el: Remove comment.
2020-03-22 21:17:38 -04:00
Maxim Cournoyer
9659459f06
emacs-build-system: Byte compile the autoload files.
* guix/build/emacs-build-system.scm (enable-autoloads-compilation)
(validate-compiled-autoloads): Add procedures.
(%standard-phases): Register the new procedures.
* gnu/packages/aux-files/emacs/guix-emacs.el (guix-emacs-find-autoloads):
Remove duplicates in the list of autoload files found.
* guix/build/emacs-utils.scm (expr->string): Add procedure.
(emacs-batch-eval, emacs-batch-edit-file): Use it.
2020-02-27 16:59:07 -05:00
Tobias Geerinckx-Rice
2c97c980a0
gnu: linux-libre: Include more framebuffer font sizes.
Add the 32x16 Terminus font for ‘high-DPI’ screens, and a 6x10 font that
allows for more (debugging) information to be displayed on standard-DPI
ones, while still being pleasant to read.

* gnu/packages/aux-files/linux-libre/4.14-arm.conf,
gnu/packages/aux-files/linux-libre/4.14-i686.conf,
gnu/packages/aux-files/linux-libre/4.14-x86_64.conf,
gnu/packages/aux-files/linux-libre/4.19-arm.conf,
gnu/packages/aux-files/linux-libre/4.19-arm64.conf,
gnu/packages/aux-files/linux-libre/4.19-i686.conf,
gnu/packages/aux-files/linux-libre/4.19-x86_64.conf,
gnu/packages/aux-files/linux-libre/4.4-i686.conf,
gnu/packages/aux-files/linux-libre/4.4-x86_64.conf,
gnu/packages/aux-files/linux-libre/4.9-i686.conf,
gnu/packages/aux-files/linux-libre/4.9-x86_64.conf,
gnu/packages/aux-files/linux-libre/5.4-arm-veyron.conf,
gnu/packages/aux-files/linux-libre/5.4-arm.conf,
gnu/packages/aux-files/linux-libre/5.4-arm64.conf,
gnu/packages/aux-files/linux-libre/5.4-i686.conf,
gnu/packages/aux-files/linux-libre/5.4-x86_64.conf:
Set CONFIG_FONTS=y, CONFIG_FONT_TER16x32=y, and CONFIG_FONT_6x10=y.
2020-01-15 14:31:21 +01:00
Mark H Weaver
952820c539
gnu: linux-libre: Update to 5.4.5.
* gnu/packages/aux-files/linux-libre/5.3-arm-veyron.conf,
gnu/packages/aux-files/linux-libre/5.3-arm.conf,
gnu/packages/aux-files/linux-libre/5.3-arm64.conf,
gnu/packages/aux-files/linux-libre/5.3-i686.conf,
gnu/packages/aux-files/linux-libre/5.3-x86_64.conf: Delete files.
* gnu/packages/aux-files/linux-libre/5.4-arm-veyron.conf,
gnu/packages/aux-files/linux-libre/5.4-arm.conf,
gnu/packages/aux-files/linux-libre/5.4-arm64.conf,
gnu/packages/aux-files/linux-libre/5.4-i686.conf,
gnu/packages/aux-files/linux-libre/5.4-x86_64.conf: New files.
* Makefile.am (AUX_FILES): Update accordingly.
* gnu/packages/patches/linux-libre-active-entropy.patch: Delete file.
* gnu/local.mk (dist_patch_DATA): Remove it.
* gnu/packages/linux.scm (deblob-scripts-5.3, linux-libre-5.3-version)
(linux-libre-5.3-pristine-source, linux-libre-5.3-source)
(linux-libre-headers-5.3, linux-libre-5.3): Remove variables.
(deblob-scripts-5.4, linux-libre-5.4-version)
(linux-libre-5.4-pristine-source, linux-libre-5.4-source)
(linux-libre-headers-5.4, linux-libre-5.4): New variables.
(linux-libre-version, linux-libre-pristine-source)
(linux-libre-source, linux-libre): Point to linux-libre-5.4*.
2019-12-18 23:07:44 -05:00
Mark H Weaver
812b0d497e
gnu: linux-libre: Remove orphaned 5.2.x kernel configurations.
This is a followup to commit 4845dee706.

* gnu/packages/aux-files/linux-libre/5.2-arm-veyron.conf,
gnu/packages/aux-files/linux-libre/5.2-arm.conf,
gnu/packages/aux-files/linux-libre/5.2-arm64.conf,
gnu/packages/aux-files/linux-libre/5.2-i686.conf,
gnu/packages/aux-files/linux-libre/5.2-x86_64.conf: Delete files.
* Makefile.am (AUX_FILES): Remove them.
2019-12-18 23:07:41 -05:00
Maxim Cournoyer
903765f0d9
gnu: emacs: Use load-path instead of EMACSLOADPATH.
This enables the use of the subdirs.el feature of Emacs, where specifying a
directory in EMACSLOADPATH translates into a `load-path' variable containing
the directory and all its sub-directories.

* gnu/packages/aux-files/emacs/guix-emacs.el (guix-emacs-autoload-packages):
Use `load-path' directly instead of parsing EMACSLOADPATH.

Reported-by: Leo Prikler <leo.prikler@student.tugraz.at>
Signed-off-by: Clément Lassieur <clement@lassieur.org>
2019-12-04 11:06:49 +01:00
Maxim Cournoyer
c320acd633
gnu: emacs: Fix guix-emacs.el indentation.
* gnu/packages/aux-files/emacs/guix-emacs.el: Fix indentation.

Signed-off-by: Clément Lassieur <clement@lassieur.org>
2019-12-04 11:06:49 +01:00
Maxim Cournoyer
47b3b4c2aa
gnu: emacs: Adapt the autoloads auxiliary code to use EMACSLOADPATH.
The Elisp directories to scan for autoloads are now taken from EMACSLOADPATH
instead of from the user profile, environment profile or system profile.
Manually adding the Elisp directories to the `load-path' is no longer
necessary, as this is covered by Emacs when they are in EMACSLOADPATH.  The
caching logic is also removed, as this code is not typically run often and the
gain is marginal (loading autoloads files is cheap).

* gnu/packages/aux-files/emacs/guix-emacs.el (guix-emacs-directory)
(guix-emacs-subdirs, guix-emacs-directories): Remove procedures.
(guix-emacs-find-autoloads): Filter the directory entries by passing the
regexp to `directory-files' directly, which is ten times faster.  Remove
deduplication.
(guix-emacs-autoloads-regexp): Remove the group, which used to filter out the
file extension; it no longer works this way due to passing the regexp to the
`directory-files' procedure directly, which doesn't care about groups.
(guix-emacs-autoload-packages): Update doc.  Search package directories from
EMACSLOADPATH.  Do not populate the load-path.  Remove cache.
2019-11-18 14:34:41 +09:00
Tobias Geerinckx-Rice
9e34a5f3b2
gnu: linux-libre: Add version 5.3.1.
* gnu/packages/linux.scm (linux-libre-5.3-version)
(linux-libre-5.3-pristine-source, linux-libre-5.3-source)
(linux-libre-headers-5.3, linux-libre-5.3): New public variables.
* gnu/packages/aux-files/linux-libre/5.3-arm.conf,
gnu/packages/aux-files/linux-libre/5.3-arm-veyron.conf,
gnu/packages/aux-files/linux-libre/5.3-arm64.conf,
gnu/packages/aux-files/linux-libre/5.3-i686.conf,
gnu/packages/aux-files/linux-libre/5.3-x86_64.conf: New files.
* Makefile.am (AUX_FILES): Add them.
2019-10-01 22:40:05 +02:00
宋文武
62790449e6
gnu: linux-libre: Enable all nftables families.
* gnu/packages/aux-files/linux-libre/4.19-arm.conf,
gnu/packages/aux-files/linux-libre/4.19-arm64.conf,
gnu/packages/aux-files/linux-libre/4.19-i686.conf,
gnu/packages/aux-files/linux-libre/4.19-x86_64.conf,
gnu/packages/aux-files/linux-libre/5.2-arm.conf,
gnu/packages/aux-files/linux-libre/5.2-arm64.conf,
gnu/packages/aux-files/linux-libre/5.2-i686.conf,
gnu/packages/aux-files/linux-libre/5.2-x86_64.conf: Set CONFIG_NF_TABLES_INET,
CONFIG_NF_TABLES_NETDEV, CONFIG_NF_TABLES_IPV4, CONFIG_NF_TABLES_IPV6 and
CONFIG_NF_TABLES_BRIDGE to 'y', and related options to 'm'.
2019-09-18 19:04:59 +08:00
Mathieu Othacehe
6202bb33eb
gnu: linux-libre: Enable built-in ext4 support.
When running qemu-img from (gnu system vm) with an aarch64 kernel, mounting
ext4 partitions fails because no modprobe of ext4 module is made. Like for
other kernel configs, provide built-in support for ext4 partitions.

* gnu/packages/aux-files/linux-libre/5.2-arm64.conf: Enable built-in ext4,
like in intel and armhf configs.
2019-09-04 18:17:45 +02:00
Marius Bakke
5ee1c0459e
gnu: ungoogled-chromium: Allow microphone access.
Fixes <https://bugs.gnu.org/36961>.

* gnu/packages/aux-files/chromium/master-preferences.json: Remove
"audio_capture_enabled" flag.
2019-09-04 13:17:39 +02:00
Mark H Weaver
be7eebe26d
gnu: linux-libre: Update to 5.2.
* gnu/packages/linux.scm (%linux-libre-version): Update to 5.2.
(%linux-libre-hash): Update hash.
* linux-libre-5.1: Rename to ...
* linux-libre-5.2: ... this.  Use %linux-libre-5.2-patches.
* linux-libre: Switch to linux-libre-5.2.
* linux-libre-arm-veyron, linux-libre-arm-generic, linux-libre-arm-omap2plus:
Use %linux-libre-5.2-patches.
* linux-libre-headers-5.1: Rename to ...
* linux-libre-headers-5.2: ... this.
* %linux-libre-5.1-patches: Rename to ...
* %linux-libre-5.2-patches: ... this.
* gnu/packages/aux-files/linux-libre/5.1-arm-veyron.conf,
gnu/packages/aux-files/linux-libre/5.1-arm.conf,
gnu/packages/aux-files/linux-libre/5.1-arm64.conf,
gnu/packages/aux-files/linux-libre/5.1-i686.conf,
gnu/packages/aux-files/linux-libre/5.1-x86_64.conf: Delete files.
* gnu/packages/aux-files/linux-libre/5.2-arm-veyron.conf,
gnu/packages/aux-files/linux-libre/5.2-arm.conf,
gnu/packages/aux-files/linux-libre/5.2-arm64.conf,
gnu/packages/aux-files/linux-libre/5.2-i686.conf,
gnu/packages/aux-files/linux-libre/5.2-x86_64.conf: New files.
* Makefile.am (AUX_FILES): Update accordingly.
2019-07-14 15:02:45 -04:00
Mark H Weaver
b40a36baff
gnu: linux-libre: Update to 5.1.
* gnu/packages/linux.scm (%linux-libre-version): Update to 5.1.
(%linux-libre-hash): Update hash.
(%linux-libre-5.0-patches): Rename to ...
(%linux-libre-5.1-patches): ... this.
(linux-libre, linux-libre-arm-generic, linux-libre-arm-veyron)
(linux-libre-arm-omap2plus): Use %linux-libre-5.1-patches.
(vhba-module): Move definition below the kernel packages.
* gnu/packages/aux-files/linux-libre/5.0-arm-veyron.conf,
gnu/packages/aux-files/linux-libre/5.0-arm.conf,
gnu/packages/aux-files/linux-libre/5.0-arm64.conf,
gnu/packages/aux-files/linux-libre/5.0-i686.conf,
gnu/packages/aux-files/linux-libre/5.0-x86_64.conf: Delete files.
* gnu/packages/aux-files/linux-libre/5.1-arm-veyron.conf,
gnu/packages/aux-files/linux-libre/5.1-arm.conf,
gnu/packages/aux-files/linux-libre/5.1-arm64.conf,
gnu/packages/aux-files/linux-libre/5.1-i686.conf,
gnu/packages/aux-files/linux-libre/5.1-x86_64.conf: New files.
* Makefile.am (AUX_FILES): Adjust accordingly.
2019-05-10 00:00:49 -04:00
Vagrant Cascadian
1dbb9302c2
gnu: Add linux-libre-arm-veyron.
* gnu/packages/linux (linux-libre-arm-veyron): New variable.
  (kernel-config-veyron): function to find veyron config.
* gnu/packages/aux-files/linux-libre/5.0-arm-veyron.conf: New file.
* Makefile.am (AUX_FILES): Adjust accordingly.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2019-04-03 18:21:42 +02:00
Ludovic Courtès
99aec37a78
pack: "-RR" produces PRoot-enabled relocatable binaries.
* gnu/packages/aux-files/run-in-namespace.c (exec_with_proot): New
function.
(main): When 'clone' fails, call 'rm_rf'.
[PROOT_PROGRAM]: When 'clone' fails, call 'exec_with_proot'.
* guix/scripts/pack.scm (wrapped-package): Add #:proot?.
[proot]: New procedure.
[build]: Compile with -DPROOT_PROGRAM when PROOT? is true.
* guix/scripts/pack.scm (%options): Set the 'relocatable?' value to
'proot when "-R" is passed several times.
(guix-pack): Pass #:proot? to 'wrapped-package'.
* tests/guix-pack-relocatable.sh: Use "-RR" on Intel systems that lack
user namespace support.
* doc/guix.texi (Invoking guix pack): Document -RR.
2019-03-15 23:27:59 +01:00
Mark H Weaver
274fa49100
gnu: linux-libre: Update to 5.0.
* gnu/packages/linux.scm (%linux-libre-version): Update to 5.0.
(%linux-libre-hash): Update hash.
(%linux-libre-4.20-patches): Rename to ...
(%linux-libre-5.0-patches): ... this.
(linux-libre, linux-libre-arm-generic, linux-libre-arm-omap2plus):
Use %linux-libre-5.0-patches instead of %linux-libre-4.20-patches.
* gnu/packages/aux-files/linux-libre/4.20-arm.conf,
gnu/packages/aux-files/linux-libre/4.20-arm64.conf,
gnu/packages/aux-files/linux-libre/4.20-i686.conf,
gnu/packages/aux-files/linux-libre/4.20-x86_64.conf: Delete files.
* gnu/packages/aux-files/linux-libre/5.0-arm.conf,
gnu/packages/aux-files/linux-libre/5.0-arm64.conf,
gnu/packages/aux-files/linux-libre/5.0-i686.conf,
gnu/packages/aux-files/linux-libre/5.0-x86_64.conf: New files.
* Makefile.am (AUX_FILES): Adjust accordingly.
2019-03-06 17:51:55 -05:00
Marius Bakke
f1e9de4d3a
gnu: Add ungoogled-chromium.
* gnu/packages/aux-files/chromium/master-preferences.json,
gnu/packages/chromium.scm: New files.
* gnu/local.mk (GNU_SYSTEM_MODULES): Adjust accordingly.
2019-02-18 23:41:56 +01:00
Mark H Weaver
ff0b73028c
gnu: linux-libre: Make CRYPTO_CRC32C a built-in on arm64.
Fixes <https://bugs.gnu.org/34162>
Reported by Vagrant Cascadian <vagrant@debian.org>

Note that CRYPTO_CRC32C was already a built-in in our default
configurations for other systems.

* gnu/packages/aux-files/linux-libre/4.20-arm64.conf,
gnu/packages/aux-files/linux-libre/4.19-arm64.conf
(CONFIG_CRYPTO_CRC32C): Change from 'm' to 'y'.
2019-01-23 21:32:14 -05:00