[gdal-dev] does GDAL require proj at 7?

Gerald Nelson nelson.gerald.c at gmail.com
Wed Feb 9 07:43:46 PST 2022


I posted a note in Homebrew/discussions. The problem seems to be in the json api link -  /api/formula/gdal.json<https://formulae.brew.sh/api/formula/gdal.json>
Which includes proj at 7 rather than just proj.

Hopefully whoever can change formulas will see this and fix it.

Gerald C. Nelson
Professor Emeritus, UIUC
+1 217-390-7888 (cell)
+1 970-639-2079 (land line)
Skype: jerrynelson
http://bit.ly/1arho7d

From: Paul Harwood <runette at gmail.com>
Date: Wednesday, February 9, 2022 at 3:35 AM
To: Gerald Nelson <nelson.gerald.c at gmail.com>
Cc: gdal-dev <gdal-dev at lists.osgeo.org>
Subject: Re: [gdal-dev] does GDAL require proj at 7?

Well - the Homebrew formula for GDAL 3.4.1 seems to mandate Proj 7 https://formulae.brew.sh/formula/gdal

That is strange - since the Conda package works on Proj 8! I don't know who supports the Brew packaging - I don't think it is core team since Homebrew is not listed on the installation page.  https://gdal.org/download.html

I must admit that is why I use Conda on all platforms - it is "generally" more up to date and being an environment manager and not just a package manager it manages cases like this a lot more robust.

On Tue, 8 Feb 2022 at 16:32, Gerald Nelson <nelson.gerald.c at gmail.com<mailto:nelson.gerald.c at gmail.com>> wrote:
Follow up on the issue below. I did the following gdal is now available. But I’d still like to kill proj at 7 so any suggestions still greatly appreciated!

gcn at MacBook-Pro-M1X homebrew-core % git restore Formula/proj at 7.rb
gcn at MacBook-Pro-M1X homebrew-core % brew install gdal
Running `brew update --preinstall`...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
Updated 2 formulae.

Warning: proj at 7 has been deprecated because it is not supported upstream!
==> Downloading https://ghcr.io/v2/homebrew/core/proj/7/manifests/7.2.1
Already downloaded: /Users/gcn/Library/Caches/Homebrew/downloads/ea2e810b55db50e5431b28bbb758bbaaf088f1be1671b09889af262cae8f3a29--proj at 7-7.2.1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/proj/7/blobs/sha256:29f65a3b916e6b967c157713b7a00daf1b91c01
Already downloaded: /Users/gcn/Library/Caches/Homebrew/downloads/1a72b0f45e8fcbf863d3c52697cee4139ce94d16ce87cd6107413eb3be91afdd--proj at 7--7.2.1.arm64_monterey.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/gdal/manifests/3.4.1_1
Already downloaded: /Users/gcn/Library/Caches/Homebrew/downloads/d34f5de12d8fd177fa8682a6311e5a4431f01cca9d2e8431842fa52794192486--gdal-3.4.1_1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/gdal/blobs/sha256:3e0605bfd13304fca41e3d2218abe035985194f1a
Already downloaded: /Users/gcn/Library/Caches/Homebrew/downloads/2318978fe3df634d8fe1682e41380687245f21099fd5c5e03bb84ae58d46cbf6--gdal--3.4.1_1.arm64_monterey.bottle.tar.gz
==> Installing dependencies for gdal: proj at 7
==> Installing gdal dependency: proj at 7
==> Pouring proj at 7--7.2.1.arm64_monterey.bottle.tar.gz
🍺  /opt/homebrew/Cellar/proj at 7/7.2.1: 59 files, 19.2MB
==> Installing gdal
==> Pouring gdal--3.4.1_1.arm64_monterey.bottle.tar.gz
🍺  /opt/homebrew/Cellar/gdal/3.4.1_1: 356 files, 61.2MB
==> Running `brew cleanup gdal`...


Gerald C. Nelson
Professor Emeritus, UIUC
+1 217-390-7888 (cell)
+1 970-639-2079 (land line)
Skype: jerrynelson
http://bit.ly/1arho7d

From: Gerald Nelson <nelson.gerald.c at gmail.com<mailto:nelson.gerald.c at gmail.com>>
Date: Tuesday, February 8, 2022 at 9:09 AM
To: gdal-dev <gdal-dev at lists.osgeo.org<mailto:gdal-dev at lists.osgeo.org>>
Subject: does GDAL require proj at 7?

I indirectly make a lot of use of GDAL which makes a lot of use of proj. I do all this on a new Macbook pro with Apple Silicon. I manage these things with homebrew. It was a tiny bit complicated to get homebrew running to take advantage of the new silicon but I’ve been doing that successfully for a month or so.

At some point in the past I installed proj at 7 from homebrew. That’s now deprecated but I can’t seem to kill it on my system. Lots of brew uninstall and install/upgrade commands. I used locate in a terminal and attempted to delete all the files with proj at 7 in their names. I’m currently have this set of exchanges


gcn at MacBook-Pro-M1X Cellar % brew install gdal

Warning: No available formula with the name "proj at 7" (dependency of gdal). Did you mean proj?

==> Searching for similarly named formulae...

This similarly named formula was found:

proj ✔

To install it, run:

  brew install proj ✔
gcn at MacBook-Pro-M1X Cellar % brew install proj
To restore the stashed changes to /opt/homebrew/Library/Taps/homebrew/homebrew-core, run:
  cd /opt/homebrew/Library/Taps/homebrew/homebrew-core && git stash pop
Running `brew update --preinstall`...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> Updated Formulae
Updated 1 formula.
==> Updated Casks
Updated 4 casks.

Warning: proj 8.2.1 is already installed and up-to-date.
To reinstall 8.2.1, run:
  brew reinstall proj
gcn at MacBook-Pro-M1X Cellar %   cd /opt/homebrew/Library/Taps/homebrew/homebrew-core && git stash pop
Removing Formula/proj at 7.rb
On branch master
Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
       deleted:    Formula/proj at 7.rb

no changes added to commit (use "git add" and/or "git commit -a")
Dropped refs/stash@{0} (cf00995d0160fc9ed0889b664973b1c75a4a5925)

At this point I’m stuck on next steps. I suspect this is not a gdal problem per se but something in homebrew I’m not understanding.

Any advice greatly appreciated!
Jerry

Gerald C. Nelson
Professor Emeritus, UIUC
+1 217-390-7888 (cell)
+1 970-639-2079 (land line)
Skype: jerrynelson
http://bit.ly/1arho7d

_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org<mailto:gdal-dev at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/gdal-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20220209/65bfa8ff/attachment-0001.html>


More information about the gdal-dev mailing list