unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob e96997799aa4654f6525774b8bcef673395311c4 2251 bytes (raw)
name: gnu/packages/patches/linux-libre-scripts-6.10-gnu-6.10-gnua.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
33
34
35
36
37
38
39
40
41
42
43
 
diff --git scripts/linux-libre-6.10-gnu/deblob-6.10 scripts/linux-libre-6.10-gnu/deblob-6.10
index b8e39342b47a..ecdb90efcf58 100755
--- linux-libre-6.10-gnu/linux-libre-deblob-6.10-gnu
+++ linux-libre-6.10-gnu/linux-libre-deblob-6.10-gnu
@@ -927,7 +927,11 @@ reject_firmware drivers/gpu/drm/i915/display/intel_dmc.c
 clean_blob drivers/gpu/drm/i915/display/intel_dmc.c
 reject_firmware drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
 clean_sed '/uc_fw->file_selected\.path = blob->path/ i\
-		else if (blob->path == NONFREE_FIRMWARE)\
+		/* If the compiler unifies string literals, as expected,\
+		   do not bother with strcmp.  */\
+		else if ((char const *)NONFREE_FIRMWARE == (char const *)NONFREE_FIRMWARE\
+			 ? blob->path == (char const *)NONFREE_FIRMWARE\
+			 : !strcmp (blob->path, NONFREE_FIRMWARE))\
 			/* Never select an entry we would refuse to load.\
 			   If we find nothing, loading is disabled but the card\
 			   initialization proceeds as if the user had disabled\
@@ -937,7 +941,11 @@ clean_sed '/uc_fw->file_selected\.path = blob->path/ i\
 
 ' drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c 'disable non-Free firmware'
 clean_sed '/Versionless file names must be unique/ i\
-	    if (fw_blobs[i].blob.path != NONFREE_FIRMWARE)
+		/* If the compiler unifies string literals, as expected,\
+		   do not bother with strcmp.  */\
+		if ((char const *)NONFREE_FIRMWARE == (char const *)NONFREE_FIRMWARE\
+		    ? fw_blobs[i].blob.path != (char const *)NONFREE_FIRMWARE\
+		    : strcmp (fw_blobs[i].blob.path, NONFREE_FIRMWARE))
 ' drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c 'avoid validation fails'
 clean_blob drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
 clean_blob drivers/gpu/drm/i915/gt/uc/intel_uc_fw.h
@@ -3294,9 +3302,9 @@ announce SCSI_QLA_FC - "QLogic QLA2XXX Fibre Channel Support"
 reject_firmware drivers/scsi/qla2xxx/qla_os.c
 clean_sed '
 /^config SCSI_QLA_FC$/,/^config /{
-  /By default, firmware/i\
-	/*(DEBLOBBED)*/
-  /By default, firmware/,/linux-firmware tree/d
+  /^	  By default, firmware/i\
+	  /*(DEBLOBBED)*/
+  /^	  By default, firmware/,/linux-firmware tree/d
 }' drivers/scsi/qla2xxx/Kconfig 'removed firmware notes'
 clean_blob drivers/scsi/qla2xxx/qla_os.c
 clean_kconfig drivers/scsi/qla2xxx/Kconfig SCSI_QLA_FC

debug log:

solving e96997799a ...
found e96997799a in https://yhetil.org/guix-patches/Zpho8WL5gCqArpjW@jasmine.lan/

applying [1/1] https://yhetil.org/guix-patches/Zpho8WL5gCqArpjW@jasmine.lan/
diff --git a/gnu/packages/patches/linux-libre-scripts-6.10-gnu-6.10-gnua.patch b/gnu/packages/patches/linux-libre-scripts-6.10-gnu-6.10-gnua.patch
new file mode 100644
index 0000000000..e96997799a

1:21: space before tab in indent.
 			/* Never select an entry we would refuse to load.\
1:22: space before tab in indent.
 			   If we find nothing, loading is disabled but the card\
1:23: space before tab in indent.
 			   initialization proceeds as if the user had disabled\
1:25: trailing whitespace.
 
Checking patch gnu/packages/patches/linux-libre-scripts-6.10-gnu-6.10-gnua.patch...
Applied patch gnu/packages/patches/linux-libre-scripts-6.10-gnu-6.10-gnua.patch cleanly.
warning: 4 lines add whitespace errors.

index at:
100644 e96997799aa4654f6525774b8bcef673395311c4	gnu/packages/patches/linux-libre-scripts-6.10-gnu-6.10-gnua.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).