[Slackbuilds-users] gdal tarball possibly changed layout

Konrad J Hambrick kjhambrick at gmail.com
Thu Apr 7 20:27:08 UTC 2022


Greg --

I was able to download and build OTB 7.4.0 ( September 3, 2021 Release )
without any changes to Benjamin's OTB.SlackBuild Script.

I was also able to build OTB 8.0.0 ( March 24, 2022 Release ) with a few
'minor' changes to the 7.3.0 SlackBuild.

I feel good about Version 7.4.0

However, the 8.0.0 Version needs to be tested more than I am able to test.

I removed the sed edits from the 7.3.0 OTB/SlackBuild from Line 84 thru
Line 93 because the target files no longer exist in 8.0.0

OTB 8.0.0 compiled but  I don't use these features so I am reluctant to
bless and release the OTB 8.0.0 SlackBuild without further research.

I am running 8.0.0 now and I was able to use it to clean up a few simple
image files.

But if I was to adopt OTB I would want to do a proper job with all the OTB
Version 8.0.0 Requirements and CMake Options that have changed since 7.4.0

I'll drop a line on the Mailing List.

Maybe someone is interested in adopting OTB ?

-- kjh

On Wed, Apr 6, 2022 at 8:08 AM Konrad J Hambrick <kjhambrick at gmail.com>
wrote:

> Let me think about Greg.
>
> OTB works for me now when I need it.
>
> And I would hate to take on an SB then abandon it immediately ...
>
> -- kjh
>
> -- kjh
>
> On Wed, Apr 6, 2022 at 4:49 AM Greg' Ar Tourter <artourter at gmail.com>
> wrote:
>
>> Konrad,
>>
>> note that if you are using OTB, the slackbuild is currently not
>> maintained as Benjamin unfortunately has stopped maintaining his builds. So
>> if you feel like taking it up, I suspect it is free.
>>
>> Greg
>>
>> On Tue, 5 Apr 2022 at 17:23, Konrad J Hambrick <kjhambrick at gmail.com>
>> wrote:
>>
>>> 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 <kjhambrick at gmail.com>
>>> wrote:
>>>
>>>> Thanks Greg !
>>>>
>>>> Building gdal 3.4.2 now :)
>>>>
>>>> -- kjh
>>>>
>>>> On Mon, Apr 4, 2022 at 6:47 PM Greg' Ar Tourter <artourter at 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.prof at 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.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
>>>>>>
>>>>>> _______________________________________________
>>>>> SlackBuilds-users mailing list
>>>>> SlackBuilds-users at 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 at 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 at slackbuilds.org
>> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
>> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
>> FAQ - https://slackbuilds.org/faq/
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20220407/94c2a314/attachment-0001.htm>


More information about the SlackBuilds-users mailing list