all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 3c051ddba8b578d13d44235692712150ffb4649a 2524 bytes (raw)
name: gnu/packages/patches/libjxr-fix-typos.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
 
Description: Fix typos and remove some warnings
Author: Mathieu Malaterre <malat@debian.org>

Index: jxrlib-1.1/CMakeLists.txt
===================================================================
--- jxrlib-1.1.orig/CMakeLists.txt
+++ jxrlib-1.1/CMakeLists.txt
@@ -91,7 +91,7 @@ add_library(jxrglue ${OBJ_GLUE} ${OBJ_TE
 set_property(TARGET jxrglue
   PROPERTY COMPILE_DEFINITIONS __ANSI__ DISABLE_PERF_MEASUREMENT ${DEF_ENDIAN}
 )
-set_property(TARGET jxrglue PROPERTY LINK_INTERFACE_LIBRARIES "")
+#set_property(TARGET jxrglue PROPERTY LINK_INTERFACE_LIBRARIES "")
 set_property(TARGET jxrglue PROPERTY COMPILE_FLAGS -w)
 # VERSION/SOVERSION
 set_property(TARGET jxrglue PROPERTY VERSION 1.1)
@@ -104,14 +104,15 @@ install(TARGETS jxrglue
 #if(HAVE_STRLCPY_BSD)
 #	target_link_libraries(jxrglue ${BSD_LIBRARY})
 #endif()
-target_link_libraries(jxrglue jpegxr m)
+#target_link_libraries(jxrglue m)
+target_link_libraries(jxrglue PRIVATE jpegxr m)
 # Enc app files
 set(ENCAPP JxrEncApp)
 add_executable(${ENCAPP} ${DIR_EXEC}/${ENCAPP}.c)
 set_property(TARGET ${ENCAPP}
   PROPERTY COMPILE_DEFINITIONS __ANSI__ DISABLE_PERF_MEASUREMENT ${DEF_ENDIAN}
 )
-set_property(TARGET ${ENCAPP} PROPERTY COMPILE_FLAGS -w)
+#set_property(TARGET ${ENCAPP} PROPERTY COMPILE_FLAGS -w)
 target_link_libraries(${ENCAPP} jxrglue) # jpegxr)
 install(TARGETS ${ENCAPP} RUNTIME DESTINATION ${JXRLIB_INSTALL_BIN_DIR})
 # Dec app files
Index: jxrlib-1.1/jxrencoderdecoder/JxrEncApp.c
===================================================================
--- jxrlib-1.1.orig/jxrencoderdecoder/JxrEncApp.c
+++ jxrlib-1.1/jxrencoderdecoder/JxrEncApp.c
@@ -578,7 +578,7 @@ main(int argc, char* argv[])
 
     //================================
     Call(PKCreateCodecFactory(&pCodecFactory, WMP_SDK_VERSION));
-    Call(pCodecFactory->CreateCodec(&IID_PKImageWmpEncode, &pEncoder));
+    Call(pCodecFactory->CreateCodec(&IID_PKImageWmpEncode, (void**)&pEncoder));
 
     //----------------------------------------------------------------
     Call(PKCreateTestFactory(&pTestFactory, WMP_SDK_VERSION));
Index: jxrlib-1.1/jxrgluelib/JXRMeta.h
===================================================================
--- jxrlib-1.1.orig/jxrgluelib/JXRMeta.h
+++ jxrlib-1.1/jxrgluelib/JXRMeta.h
@@ -34,7 +34,7 @@
 
 #ifndef UNREFERENCED_PARAMETER
 #define UNREFERENCED_PARAMETER(P) { (P) = (P); }
-#endif UNREFERENCED_PARAMETER
+#endif /*UNREFERENCED_PARAMETER*/
 
 //================================================================
 // Container

debug log:

solving 3c051dd ...
found 3c051dd in https://yhetil.org/guix/87eg39qvjh.fsf@openmailbox.org/

applying [1/1] https://yhetil.org/guix/87eg39qvjh.fsf@openmailbox.org/
diff --git a/gnu/packages/patches/libjxr-fix-typos.patch b/gnu/packages/patches/libjxr-fix-typos.patch
new file mode 100644
index 0000000..3c051dd

1:46: trailing whitespace.
 \r
1:47: trailing whitespace.
     //================================\r
1:48: trailing whitespace.
     Call(PKCreateCodecFactory(&pCodecFactory, WMP_SDK_VERSION));\r
1:49: trailing whitespace.
-    Call(pCodecFactory->CreateCodec(&IID_PKImageWmpEncode, &pEncoder));\r
1:50: trailing whitespace.
+    Call(pCodecFactory->CreateCodec(&IID_PKImageWmpEncode, (void**)&pEncoder));\r
Checking patch gnu/packages/patches/libjxr-fix-typos.patch...
Applied patch gnu/packages/patches/libjxr-fix-typos.patch cleanly.
warning: squelched 11 whitespace errors
warning: 16 lines add whitespace errors.

index at:
100644 3c051ddba8b578d13d44235692712150ffb4649a	gnu/packages/patches/libjxr-fix-typos.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.