all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob c36fe5f2d79e3f98bf4d1bf150bef781f5689dfc 894 bytes (raw)
name: gnu/packages/patches/ddcutil-modules-location.patch 	 # note: path name is non-authoritative(*)

 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
 
From https://github.com/NixOS/nixpkgs/blob/nixos-21.05/pkgs/tools/misc/ddcutil/nixos-paths.diff

--- a/src/util/linux_util.c
+++ b/src/util/linux_util.c
@@ -125,6 +125,7 @@
                   "lib64",
                   "lib32",
                   "usr/lib",  // needed for arch?
+                  "run/booted-system/kernel/lib",  // Guix System
                   NULL};
    int result = -1;
    int ndx = 0;
@@ -204,14 +205,15 @@
    if (debug)
       printf("(%s) machine: %s", __func__, utsbuf.machine);

-   char * libdirs[3];
+   char * libdirs[4];
    libdirs[0] = "lib";
+   libdirs[1] = "run/booted-system/kernel/lib";
    if (streq(utsbuf.machine, "amd_64")){
-      libdirs[1] = "lib64";
-      libdirs[2] = NULL;
+      libdirs[2] = "lib64";
+      libdirs[3] = NULL;
    }
    else
-      libdirs[1] = NULL;
+      libdirs[2] = NULL;

    int libsndx = 0;
    bool found = false;

debug log:

solving c36fe5f2d7 ...
found c36fe5f2d7 in https://yhetil.org/guix/20210612212422.13271-1-brice@waegenei.re/

applying [1/1] https://yhetil.org/guix/20210612212422.13271-1-brice@waegenei.re/
diff --git a/gnu/packages/patches/ddcutil-modules-location.patch b/gnu/packages/patches/ddcutil-modules-location.patch
new file mode 100644
index 0000000000..c36fe5f2d7

Checking patch gnu/packages/patches/ddcutil-modules-location.patch...
Applied patch gnu/packages/patches/ddcutil-modules-location.patch cleanly.

index at:
100644 c36fe5f2d79e3f98bf4d1bf150bef781f5689dfc	gnu/packages/patches/ddcutil-modules-location.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.