File: 0003-config-h.patch

package info (click to toggle)
json-c 0.16-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,348 kB
  • sloc: ansic: 8,304; sh: 497; javascript: 82; cpp: 16; makefile: 12
file content (19 lines) | stat: -rw-r--r-- 683 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
From: Nicolas Mora
Date: Thu, 23 Jul 2020 10:31:12 -0400
Subject: config.h: remove macro PACKAGE_NAME
Forwarded: not-needed

---
--- a/cmake/config.h.in
+++ b/cmake/config.h.in
@@ -180,7 +180,9 @@
 #define PACKAGE_BUGREPORT "@JSON_C_BUGREPORT@"
 
 /* Define to the full name of this package. */
-#define PACKAGE_NAME "@PROJECT_NAME@"
+// Macro disabled to avoid collisions with other libraries
+// Lintian warning: package-name-defined-in-config-h
+//#define PACKAGE_NAME_ "@PROJECT_NAME@"
 
 /* Define to the full name and version of this package. */
 #define PACKAGE_STRING "@PROJECT_NAME@ @CPACK_PACKAGE_VERSION_MAJOR@.@CPACK_PACKAGE_VERSION_MINOR@.@CPACK_PACKAGE_VERSION_PATCH@"