Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Maxim Kochetkov via buildroot <buildroot@buildroot.org>
Cc: dmrauh@posteo.de, Maxim Kochetkov <fido_max@inbox.ru>,
	himaralonso+buildroot@gmail.com
Subject: Re: [Buildroot] [PATCH 1/1] package/gdal: switch to cmake build
Date: Sat, 28 Jan 2023 21:27:44 +0100	[thread overview]
Message-ID: <20230128212744.37ea8317@windsurf> (raw)
In-Reply-To: <20230124103149.588288-1-fido_max@inbox.ru>

On Tue, 24 Jan 2023 13:31:49 +0300
Maxim Kochetkov via buildroot <buildroot@buildroot.org> wrote:

> GDAL autoconf has wrong libgeotiff detection. It uses host's
> library if installed instead of buildroot one.
> Modern versions of gdal have no autoconf build scripts, just cmake only.
> 
> So move to cmake build variant.
> 
> Fixes: https://bugs.busybox.net/show_bug.cgi?id=15281

There was a missing empty line here before the Signed-off-by.

> Signed-off-by: Maxim Kochetkov <fido_max@inbox.ru>
> ---
>  package/gdal/gdal.mk | 166 ++++++++++++++++++++++---------------------
>  1 file changed, 85 insertions(+), 81 deletions(-)
> 
> diff --git a/package/gdal/gdal.mk b/package/gdal/gdal.mk
> index 33e7ba724a..a777834083 100644
> --- a/package/gdal/gdal.mk
> +++ b/package/gdal/gdal.mk
> @@ -12,6 +12,13 @@ GDAL_LICENSE_FILES = LICENSE.TXT
>  GDAL_CPE_ID_VENDOR = osgeo
>  GDAL_INSTALL_STAGING = YES
>  GDAL_CONFIG_SCRIPTS = gdal-config
> +GDAL_SUPPORTS_IN_SOURCE_BUILD=NO

Missing spaces around "="

> +
> +# Using 'make' with the Makefile generator will not work,
> +# as it will try the GNUmakefile.
> +# GNUmakefile and autoconf are dropped in 3.6 so may be dropped in future version.

I slightly reworded this explanation.

> +GDAL_MAKE_OPTS += -f Makefile
> +
>  # gdal at its core only needs host-pkgconf, libgeotiff, proj and tiff
>  # but since by default mrf driver support is enabled, it also needs
>  # jpeg, libpng and zlib. By default there are also many other drivers
> @@ -20,97 +27,94 @@ GDAL_CONFIG_SCRIPTS = gdal-config
>  # respectively needed dependencies.
>  GDAL_DEPENDENCIES = host-pkgconf jpeg json-c libgeotiff libpng proj tiff zlib
>  
> -# Yes, even though they have --with options, these few libraries are
> +# Yes, even though they have DGDAL_USE, these few libraries are

DGAL_USE should have been "-DGAL_USE options". 

I fixed those minor details, and applied your patch. Thanks a lot!

Best regards,

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2023-01-28 20:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-24 10:31 [Buildroot] [PATCH 1/1] package/gdal: switch to cmake build Maxim Kochetkov via buildroot
2023-01-28 20:27 ` Thomas Petazzoni via buildroot [this message]
2023-02-13 14:53 ` Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230128212744.37ea8317@windsurf \
    --to=buildroot@buildroot.org \
    --cc=dmrauh@posteo.de \
    --cc=fido_max@inbox.ru \
    --cc=himaralonso+buildroot@gmail.com \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox