[GPGME PATCH] install cmake files without executable bit set

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Oct 12 15:56:29 CEST 2016


* lang/cpp/src/Makefile.am, lang/qt/src/Makefile.am: set permissions
  on installed cmake files to 644.

---

cmake is exciting but it's not *that* exciting, and besides lintian
complains:

W: libgpgme-dev: executable-not-elf-or-script
     usr/lib/x86_64-linux-gnu/cmake/Gpgmepp/QGpgmeConfig.cmake

none of the other cmake files on a debian system appear to be intalled
with executable provisiona either.

Signed-off-by: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
---
 lang/cpp/src/Makefile.am | 4 ++--
 lang/qt/src/Makefile.am  | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lang/cpp/src/Makefile.am b/lang/cpp/src/Makefile.am
index 0500dbf..342bdf8 100644
--- a/lang/cpp/src/Makefile.am
+++ b/lang/cpp/src/Makefile.am
@@ -82,9 +82,9 @@ GpgmeppConfig.cmake: GpgmeppConfig.cmake.in
 
 install-cmake-files: GpgmeppConfig.cmake GpgmeppConfigVersion.cmake
 	-$(INSTALL) -d $(DESTDIR)$(libdir)/cmake/Gpgmepp
-	$(INSTALL) GpgmeppConfig.cmake \
+	$(INSTALL) -m 644 GpgmeppConfig.cmake \
         $(DESTDIR)$(libdir)/cmake/Gpgmepp/GpgmeppConfig.cmake
-	$(INSTALL) GpgmeppConfigVersion.cmake \
+	$(INSTALL) -m 644 GpgmeppConfigVersion.cmake \
         $(DESTDIR)$(libdir)/cmake/Gpgmepp/GpgmeppConfigVersion.cmake
 
 uninstall-cmake-files:
diff --git a/lang/qt/src/Makefile.am b/lang/qt/src/Makefile.am
index e09e0d9..dde8e83 100644
--- a/lang/qt/src/Makefile.am
+++ b/lang/qt/src/Makefile.am
@@ -233,9 +233,9 @@ $(camelcase_headers): Makefile.am
 
 install-cmake-files: QGpgmeConfig.cmake QGpgmeConfigVersion.cmake
 	-$(INSTALL) -d $(DESTDIR)$(libdir)/cmake/Gpgmepp
-	$(INSTALL) QGpgmeConfig.cmake \
+	$(INSTALL) -m 644 QGpgmeConfig.cmake \
         $(DESTDIR)$(libdir)/cmake/Gpgmepp/QGpgmeConfig.cmake
-	$(INSTALL) QGpgmeConfigVersion.cmake \
+	$(INSTALL) -m 644 QGpgmeConfigVersion.cmake \
         $(DESTDIR)$(libdir)/cmake/Gpgmepp/QGpgmeConfigVersion.cmake
 
 uninstall-cmake-files:
-- 
2.9.3




More information about the Gnupg-devel mailing list