[Slackbuilds-users] gdal tarball possibly changed layout

Luiz Carlos Ramos lramos.prof at yahoo.com.br
Mon Apr 4 23:22:25 UTC 2022


Hello,

these days I tried to build some packages which changed the SlackBuild
script, among them, gdal.

In the first run, it failed.

Searching a little bit, it seemed that the tarball has a slightly
different layout. In fact, everything that was supposed to be in the
root level is actually in the "./gdal" subdirectory.

Also, the "configure" script was not there. It was rebuilt running
"autoreconf -fi" in the right time.

I managed to tweak the slackbuild script and could ultimately build the
package. A patch is provided below.

Anyway, it's wise to check whether these findings happen in other
environments before taking any measure. One other possible cause would
be the tarball URL be incorrect.

Many thanks,

Luiz Ramos
lramos dot prof at yahoo dot com dot br
São Paulo - Brazil


===
>From 031fd83c1fb76a855bc423c4b113829f5595fd4b Mon Sep 17 00:00:00 2001
From: Luiz Ramos <lramos.prof at yahoo.com.br>
Date: Sun, 3 Apr 2022 19:46:55 -0300
Subject: [PATCH] gis/gdal: fixed build

Appearently the tarball downloaded changed its layout and so the build directory
has to be changed. Also, there is no "configure" file: it has to be build using
"autoreconf -fi".
---
 gis/gdal/gdal.SlackBuild | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gis/gdal/gdal.SlackBuild b/gis/gdal/gdal.SlackBuild
index 4f83453333..056874624f 100644
--- a/gis/gdal/gdal.SlackBuild
+++ b/gis/gdal/gdal.SlackBuild
@@ -119,6 +119,9 @@ else
    WITHLIST+=" --with-jpeg=yes"
 fi
 
+cd gdal
+autoreconf -fi
+
 # The CPPFLAGS are for the newer mariadb (thanks pprkut!)
 CPPFLAGS="-I/usr/include/mysql/server" \
 CFLAGS="$SLKCFLAGS" \
@@ -154,13 +157,17 @@ CXXFLAGS="$SLKCFLAGS" \
 make
 make install DESTDIR=$PKG
 
+cd ..
+
 find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
   | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
 
 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cd gdal && \
 cp -a \
   COMMITTERS HOWTO-RELEASE LICENSE.TXT MIGRATION_GUIDE.TXT NEWS.md PROVENANCE.TXT VERSION \
-  $PKG/usr/doc/$PRGNAM-$VERSION
+  $PKG/usr/doc/$PRGNAM-$VERSION && \
+cd ..
 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
 
 rm -f $PKG/usr/lib*/*.la
-- 
2.35.1



More information about the SlackBuilds-users mailing list