aboutsummaryrefslogtreecommitdiff
path: root/etc/manifests/ungraft.scm
blob: 5caef65d4cd8a83f4a0ed6b5a5441f5397c03d09 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2024 Ludovic Courtès <ludo@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

;; This manifest "ungrafts" all the currently grafted packages and returns
;; said packages and all their dependents.

(use-modules (guix diagnostics)
             (guix i18n)
             (guix packages)
             (guix profiles)
             (guix store)
             ((guix scripts build) #:select (dependents))
             ((gnu packages) #:select (all-packages))
             (srfi srfi-1))

(define (grafted-packages)
  (info (G_ "enumerating grafted packages...~%"))
  (let ((result (filter package-replacement (all-packages))))
    (info (G_ "found ~d grafted packages:~{ ~a~}~%")
          (length result) (map package-full-name result))
    result))

(define ungraft
  (package-mapping (lambda (p)
                     (or (package-replacement p) p))
                   #:deep? #t))

(manifest
 (with-store store
   (let ((grafted (grafted-packages)))
     (map (lambda (package)
            (manifest-entry
              (inherit (package->manifest-entry (ungraft package)))
              (name (string-append (package-name package) "-ungrafted"))))
          (dependents store grafted)))))
gnu/packages/gnome.scm, gnu/packages/gnuzilla.scm, gnu/packages/golang.scm, gnu/packages/gpodder.scm, gnu/packages/graph.scm, gnu/packages/graphics.scm, gnu/packages/graphviz.scm, gnu/packages/groff.scm, gnu/packages/groovy.scm, gnu/packages/gtk.scm, gnu/packages/guile-xyz.scm, gnu/packages/guile.scm, gnu/packages/hardware.scm, gnu/packages/haskell-apps.scm, gnu/packages/haskell-xyz.scm, gnu/packages/hexedit.scm, gnu/packages/i2p.scm, gnu/packages/ibus.scm, gnu/packages/image-processing.scm, gnu/packages/image-viewers.scm, gnu/packages/image.scm, gnu/packages/ipfs.scm, gnu/packages/java-graphics.scm, gnu/packages/java-maths.scm, gnu/packages/java.scm, gnu/packages/javascript.scm, gnu/packages/jrnl.scm, gnu/packages/julia.scm, gnu/packages/jupyter.scm, gnu/packages/kodi.scm, gnu/packages/language.scm, gnu/packages/lego.scm, gnu/packages/less.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm, gnu/packages/lirc.scm, gnu/packages/lisp-xyz.scm, gnu/packages/llvm.scm, gnu/packages/logging.scm, gnu/packages/lolcode.scm, gnu/packages/lua.scm, gnu/packages/lxde.scm, gnu/packages/lxqt.scm, gnu/packages/machine-learning.scm, gnu/packages/mail.scm, gnu/packages/markup.scm, gnu/packages/maths.scm, gnu/packages/maven.scm, gnu/packages/mes.scm, gnu/packages/messaging.scm, gnu/packages/monitoring.scm, gnu/packages/mpd.scm, gnu/packages/music.scm, gnu/packages/networking.scm, gnu/packages/node-xyz.scm, gnu/packages/ocaml.scm, gnu/packages/ocr.scm, gnu/packages/onc-rpc.scm, gnu/packages/opencl.scm, gnu/packages/opencog.scm, gnu/packages/pantheon.scm, gnu/packages/password-utils.scm, gnu/packages/patchutils.scm, gnu/packages/pdf.scm, gnu/packages/perl6.scm, gnu/packages/phabricator.scm, gnu/packages/popt.scm, gnu/packages/printers.scm, gnu/packages/prolog.scm, gnu/packages/protobuf.scm, gnu/packages/pulseaudio.scm, gnu/packages/python-crypto.scm, gnu/packages/python-web.scm, gnu/packages/python-xyz.scm, gnu/packages/qt.scm, gnu/packages/radio.scm, gnu/packages/rails.scm, gnu/packages/rdf.scm, gnu/packages/rednotebook.scm, gnu/packages/rpc.scm, gnu/packages/rsync.scm, gnu/packages/ruby.scm, gnu/packages/rust.scm, gnu/packages/scheme.scm, gnu/packages/screen.scm, gnu/packages/security-token.scm, gnu/packages/selinux.scm, gnu/packages/serialization.scm, gnu/packages/shells.scm, gnu/packages/shellutils.scm, gnu/packages/simh.scm, gnu/packages/sml.scm, gnu/packages/ssh.scm, gnu/packages/statistics.scm, gnu/packages/stenography.scm, gnu/packages/sync.scm, gnu/packages/syncthing.scm, gnu/packages/synergy.scm, gnu/packages/telephony.scm, gnu/packages/terminals.scm, gnu/packages/tex.scm, gnu/packages/texinfo.scm, gnu/packages/text-editors.scm, gnu/packages/textutils.scm, gnu/packages/time.scm, gnu/packages/tmux.scm, gnu/packages/tor.scm, gnu/packages/toys.scm, gnu/packages/version-control.scm, gnu/packages/video.scm, gnu/packages/vim.scm, gnu/packages/virtualization.scm, gnu/packages/vlang.scm, gnu/packages/vnc.scm, gnu/packages/vpn.scm, gnu/packages/web-browsers.scm, gnu/packages/web.scm, gnu/packages/wireservice.scm, gnu/packages/wm.scm, gnu/packages/wxwidgets.scm, gnu/packages/xdisorg.scm, gnu/packages/xml.scm, gnu/packages/xorg.scm, tests/lint.scm: Remove trailing ".git" from 'git-reference' URL. Ludovic Courtès 2020-05-18gnu: python-mpsse: Update to 1.4.1....Follow-up to a7b20226b2bf1a73b8f0f6536e7fa43326f35e33. * gnu/packages/embedded.scm (python-libmpsse): Update to 1.4.1. Danny Milosavljevic 2020-05-15gnu: python-libmpsse: Update to 1.4.1....* gnu/packages/embedded.scm (python-libmpsse): Update to 1.4.1. [arguments]<#:phases>[set-environment-up]: Fix build with Python 3.8. Danny Milosavljevic 2020-05-14gnu: gcc-arm-none-eabi@7-2018-q2-update: Fix conflicting GCC headers....This is a follow-up of 7f6d3f395023ff430cf8b7a981d4780698e9d132 and merely a copy-and-paste of Marius Bakke's fix. * gnu/packages/embedded.scm (gcc-arm-none-eabi-7-2018-q2-update)[arguments]: Add phase to remove the default compiler from CPLUS_INCLUDE_PATH. [native-inputs]: Distinguish GCC-5. Björn Höfling 2020-05-13gnu: gcc-arm-none-eabi: Fix conflicting GCC headers....Fixes <https://bugs.gnu.org/41210>. Reported by Ricardo Wurmus <rekado@elephly.net>. * gnu/packages/embedded.scm (gcc-arm-none-eabi-4.9)[arguments]: Add phase to remove the default compiler from CPLUS_INCLUDE_PATH. [native-inputs]: Distinguish GCC-5. Marius Bakke 2020-03-17gnu: libjaylink: Use HTTPS home page....* gnu/packages/embedded.scm (libjaylink)[home-page]: Use HTTPS. Tobias Geerinckx-Rice 2020-03-12gnu: picprog: Use HTTPS home page....* gnu/packages/embedded.scm (picprog)[home-page]: Use HTTPS. Tobias Geerinckx-Rice 2020-02-17gnu: newlib: Use HTTPS home page....* gnu/packages/embedded.scm (newlib)[home-page]: Use HTTPS. Tobias Geerinckx-Rice 2020-01-24gnu: jimtcl: Update to 0.79....* gnu/packages/embedded.scm (jimtcl): Update to 0.79. [home-page]: Update home-page. Efraim Flashner 2020-01-24gnu: jimtcl: Don't use unstable tarball....* gnu/packages/embedded.scm (jimtcl)[source]: Download using git-fetch. Efraim Flashner 2020-01-24gnu: stlink: Don't use unstable tarball....* gnu/packages/embedded.scm (stlink)[source]: Download using git-fetch. Efraim Flashner 2020-01-24gnu: spin2cpp: Don't use unstable tarball....* gnu/packages/embedded.scm (spin2cpp)[source]: Download using git-fetch. Efraim Flashner 2020-01-24gnu: openspin: Don't use unstable tarball....* gnu/packages/embedded.scm (openspin)[source]: Download using git-fetch. Efraim Flashner 2020-01-15Avoid warnings for the 'delete' binding of (guix build utils)....On Guile 3, importing (guix build utils) leads to warnings such as: WARNING: (gnu packages embedded): imported module (guix build utils) overrides core binding `delete' * gnu/packages/embedded.scm: Select 'alist-replace' from (guix build utils). * guix/ui.scm: Hide 'delete' from (guix build utils). Ludovic Courtès 2019-12-25gnu: Add arm-none-eabi-nano-toolchain-7-2018-q2-update....* gnu/packages/embedded.scm (arm-none-eabi-nano-toolchain-7-2018-q2-update): New variable. Ricardo Wurmus 2019-12-25gnu: Add arm-none-eabi-toolchain-7-2018-q2-update....* gnu/packages/embedded.scm (arm-none-eabi-toolchain-7-2018-q2-update): New variable. Ricardo Wurmus 2019-12-25gnu: Add newlib-nano-arm-none-eabi-7-2018-q2-update....* gnu/packages/embedded.scm (newlib-nano-arm-none-eabi-7-2018-q2-update): New variable. Ricardo Wurmus 2019-12-25gnu: Add newlib-arm-none-eabi-7-2018-q2-update....* gnu/packages/embedded.scm (newlib-arm-none-eabi-7-2018-q2-update): New variable. Ricardo Wurmus 2019-12-25gnu: Add gcc-arm-none-eabi-7-2018-q2-update....* gnu/packages/embedded.scm (gcc-arm-none-eabi-7-2018-q2-update): New variable. * gnu/packages/patches/gcc-7-cross-environment-variables.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. Ricardo Wurmus 2019-12-05gnu: Add west....* gnu/packages/embedded.scm (west): New variable. Clément Lassieur