Thanks Greg. Worked Great !
OTB ( montevideo ) is running as expected without a rebuild with gdal 3.4.2 -- kjh On Tue, Apr 5, 2022 at 10:53 AM Konrad J Hambrick <kjhambr...@gmail.com> wrote: > Thanks Greg ! > > Building gdal 3.4.2 now :) > > -- kjh > > On Mon, Apr 4, 2022 at 6:47 PM Greg' Ar Tourter <artour...@gmail.com> > wrote: > >> Hi Luis, >> >> I submitted a fix a few days ago for this. in the meantime use the source >> url off the slackbuild website: >> https://github.com/OSGeo/gdal/releases/download/v3.4.2/gdal-3.4.2.tar.gz >> or look at the change in git: >> >> https://git.slackbuilds.org/slackbuilds/commit/?h=willysr&id=bf9481b91e81851503e8ae54d41022eb8bbbd666 >> >> Then you do not need to change anything to the slackbuild script. >> >> Hope this helps >> >> Cheers >> >> Greg >> >> On Tue, 5 Apr 2022 at 00:20, Luiz Carlos Ramos <lramos.p...@yahoo.com.br> >> wrote: >> >>> 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.p...@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 >>> >>> _______________________________________________ >> SlackBuilds-users mailing list >> SlackBuilds-users@slackbuilds.org >> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users >> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/ >> FAQ - https://slackbuilds.org/faq/ >> >>
_______________________________________________ SlackBuilds-users mailing list SlackBuilds-users@slackbuilds.org https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/ FAQ - https://slackbuilds.org/faq/