Lintian Fixes - r-cran-tiff

Ready changes

Summary

Diff

diff --git a/debian/changelog b/debian/changelog
index 7ea1156..87600e4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+r-cran-tiff (0.1-11-2) UNRELEASED; urgency=medium
+
+  * Update standards version to 4.6.2, no changes needed.
+  * Add patch ac-path-pkgconfig.patch: Use cross-build compatible macro for
+    finding pkg-config.
+
+ -- Debian Janitor <janitor@jelmer.uk>  Thu, 11 May 2023 22:58:43 -0000
+
 r-cran-tiff (0.1-11-1) unstable; urgency=medium
 
   * Team upload.
diff --git a/debian/control b/debian/control
index e21286c..f1406ac 100644
--- a/debian/control
+++ b/debian/control
@@ -8,7 +8,7 @@ Build-Depends: debhelper-compat (= 13),
                dh-r,
                r-base-dev,
                libtiff-dev
-Standards-Version: 4.6.0
+Standards-Version: 4.6.2
 Vcs-Browser: https://salsa.debian.org/r-pkg-team/r-cran-tiff
 Vcs-Git: https://salsa.debian.org/r-pkg-team/r-cran-tiff.git
 Homepage: https://cran.r-project.org/package=tiff
diff --git a/debian/patches/ac-path-pkgconfig.patch b/debian/patches/ac-path-pkgconfig.patch
new file mode 100644
index 0000000..af33a3d
--- /dev/null
+++ b/debian/patches/ac-path-pkgconfig.patch
@@ -0,0 +1,38 @@
+Description: Use cross-build compatible macro for finding pkg-config.
+ .
+ The package uses AC_PATH_PROG to discover the location of pkg-config(1). This
+ macro fails to select the correct version to support cross-compilation.
+ .
+ This patch changes it to use PKG_PROG_PKG_CONFIG macro from pkg.m4.
+ .
+ Refer to https://bugs.debian.org/884798 for details.
+Origin: other
+Last-Update: 2023-05-11
+
+=== modified file 'configure.ac'
+--- a/configure.ac	2021-11-09 13:53:03 +0000
++++ b/configure.ac	2023-05-11 22:58:43 +0000
+@@ -23,7 +23,7 @@
+ # since we'll set PKG_CPPFLAGS with this, but that shouldn't hurt
+ CPPFLAGS="${CPPFLAGS} ${PKG_CPPFLAGS}"
+ 
+-AC_PATH_PROG([PKG_CONFIG], [pkg-config])
++PKG_PROG_PKG_CONFIG
+ AC_LANG(C)
+ AC_CHECK_HEADERS([unistd.h])
+ 
+
+=== modified file 'debian/control'
+--- a/debian/control	2023-05-11 22:58:43 +0000
++++ b/debian/control	2023-05-11 22:58:43 +0000
+@@ -7,7 +7,8 @@
+ Build-Depends: debhelper-compat (= 13),
+                dh-r,
+                r-base-dev,
+-               libtiff-dev
++               libtiff-dev,
++               pkg-config
+ Standards-Version: 4.6.2
+ Vcs-Browser: https://salsa.debian.org/r-pkg-team/r-cran-tiff
+ Vcs-Git: https://salsa.debian.org/r-pkg-team/r-cran-tiff.git
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..cb99cc8
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+ac-path-pkgconfig.patch

Run locally

More details

Full run details

Historical runs