File: remove_cdo_flag_from_script_not_used.patch

package info (click to toggle)
kpatch 0.9.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,716 kB
  • sloc: ansic: 9,716; sh: 2,592; makefile: 260; asm: 35
file content (24 lines) | stat: -rw-r--r-- 1,127 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Remove CDO_FLAGS variable from create-diff-object call
 During the kpatch-build execution the create-diff-object is called and it used the
 CDO_FLAGS as parameter, but in Debian this is empty and make it fail in runtime.
 This is a quick solution, need a better fix.
 .
 UPDATE: Currently, to create the object diff need to be set the --klp-arch, this
 patch force to use this parameter until to figure out why CDO_FLAGS is not fill with
 this parameter.
Author: Emmanuel Arias <eamanu@debian.org>
Forwarded: no
Last-Update: 2024-12-11
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/kpatch-build/kpatch-build
+++ b/kpatch-build/kpatch-build
@@ -1483,7 +1483,7 @@
 
 		# create-diff-object orig.o patched.o parent-name parent-symtab
 		#		     Module.symvers patch-mod-name output.o
-		"$TOOLSDIR"/create-diff-object "${CDO_FLAGS[@]}" "orig/$i" "patched/$i" "$KOBJFILE_NAME" \
+		"$TOOLSDIR"/create-diff-object --klp-arch "orig/$i" "patched/$i" "$KOBJFILE_NAME" \
 			"$SYMTAB" "$SYMVERS_FILE" "${MODNAME//-/_}" \
 			"output/$i" 2>&1 | logger 1
 		check_pipe_status create-diff-object