File: only-install-sharedlib-if-built

package info (click to toggle)
calc 2.12.7.2-4
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 7,644 kB
  • sloc: ansic: 53,991; makefile: 11,702; awk: 96; sed: 33; sh: 20
file content (18 lines) | stat: -rw-r--r-- 837 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Don't try to install shared libraries if they were not built
Forwarded: yes
Author: Martin Buck <mbuck@debian.org>
---
--- a/Makefile
+++ b/Makefile
@@ -4648,7 +4648,10 @@
 	${Q}# NOTE: The this makefile installs libcustcalc${LIB_EXT_VERSION}
 	${Q}#       because we only want to perform one ${LDCONFIG} for both
 	${Q}#       libcalc${LIB_EXT_VERSION} and libcustcalc${LIB_EXT_VERSION}.
-	-${Q} if ${CMP} -s libcalc${LIB_EXT_VERSION} \
+	-${Q} if ! [ -f libcalc${LIB_EXT_VERSION} ]; then \
+	    echo "not installing libcalc${LIB_EXT_VERSION} and libcustcalc${LIB_EXT_VERSION} (not built)"; \
+	    ${TRUE}; \
+	elif ${CMP} -s libcalc${LIB_EXT_VERSION} \
 		     ${T}${LIBDIR}/libcalc${LIB_EXT_VERSION} && \
 	   ${CMP} -s custom/libcustcalc${LIB_EXT_VERSION} \
 		     ${T}${LIBDIR}/libcustcalc${LIB_EXT_VERSION}; then \