You are not logged in.

#1 2020-09-19 14:15:34

adigitoleo
Member
From: Australia
Registered: 2020-08-02
Posts: 47

[SOLVED] Updating and maintaining cartography packages - help wanted

Hi,

Any geoscientists in the house? Want to help with some PKGBUILDS?

The situation: Before switching to arch I used obspy [1] a bit and it was awesome. It's on the AUR but the plotting dependencies are out of date. Specifically, the packages proj [2] and python-pyproj [3] from community have been flagged for a while, and I emailed the maintainer about two weeks ago with no response so far. Then we have cartopy [4] which is affected and it's a dependency for obspy. I've started digging, and to get proj back probably isn't too hard, but cartopy is in early development so it will likely require more maintenance.

OK so first question: How to deal with external resource files. The current proj PKGBUILD downloads a compressed archive of an outdated dataset [5] which is superseded by a separate github repo [6] OR an on-demand CDN service OR a script "projsync" [7] provided with the application. Should I just leave it up to the user to grab data using the script? I'm not sure, but I think some of the data is required to pass the build tests...

I'll try to get a PKBUILD together for the base package tomorrow (haven't done this before). Just getting this out there to see if anyone's interested. If there's a place on reddit/gitter/whatever for geoscientists that are also arch linux nerds please let me know. Or maybe they're all hiding in MATLAB tongue

[1] https://aur.archlinux.org/packages/python-obspy/

[2] https://www.archlinux.org/packages/comm … 6_64/proj/

[3] https://www.archlinux.org/packages/comm … on-pyproj/

[4] https://aur.archlinux.org/packages/python-cartopy/

[5] https://proj.org/resource_files.html#proj-datumgrid

[6] https://proj.org/resource_files.html#proj-data

[7] https://proj.org/apps/projsync.html#projsync

Edit: fixed a link

Last edited by adigitoleo (2020-09-22 12:01:39)

Offline

#2 2020-09-19 16:01:10

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [SOLVED] Updating and maintaining cartography packages - help wanted

No geoscientist or user of such programs, but do have a few comments.

The latest tag for https://github.com/OSGeo/proj-datumgrid is version 1.8 , which is exactly the same version as file  the community PKGBUILD downloads.

Since the community PKGBUILD is for proj 6.3.2 which needs proj-datumgrid I'd say the pacakge does it correct.
Keep in mind that proj 6.3.2 is the latest proj 6.x.y version from may 2020 .

Your link [5] mentions proj-datumgrid is only meant for proj < 7 .

I assume you're trying to build proj 7.x ?
If so, you'll need proj and proj-data as source files .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2020-09-19 20:05:23

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: [SOLVED] Updating and maintaining cartography packages - help wanted

OK so first question: How to deal with external resource files. The current proj PKGBUILD downloads a compressed archive of an outdated dataset [5] which is superseded by a separate github repo [6] OR an on-demand CDN service OR a script "projsync" [7] provided with the application. Should I just leave it up to the user to grab data using the script? I'm not sure, but I think some of the data is required to pass the build tests...

In that case, maybe add a package for proj-data, then require that package as checkdepends and only add it as optdepends for proj.

The build tests should run in the check() function, not the build() function.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#4 2020-09-20 04:58:02

adigitoleo
Member
From: Australia
Registered: 2020-08-02
Posts: 47

Re: [SOLVED] Updating and maintaining cartography packages - help wanted

Ok thanks guys, and yeah I was thinking of building proj 7. I'll have to read up about PKGBUILDS a bit more but adding proj-data as a separate package seems logical.

Offline

#5 2020-09-20 05:30:30

adigitoleo
Member
From: Australia
Registered: 2020-08-02
Posts: 47

Re: [SOLVED] Updating and maintaining cartography packages - help wanted

Second question: Should I submit the new PKGBUILDS for proj and python-pyproj to the AUR? Since they already exist in community, I guess I have to change the package name? And then put a

provides=('proj')

right?

Also the existing PKGBUILD has a maintainer and various contributors listed. Since I'm using it as a starting point, how do I keep the attributions? Or is that not important? Maybe I missed that in the wiki somewhere.

Edit: found this in another PKGBUILD, might use something similar:

# Based on a PKGBUILD by: Rich Li <rich at dranek com>

Last edited by adigitoleo (2020-09-20 06:30:45)

Offline

#6 2020-09-20 05:49:53

adigitoleo
Member
From: Australia
Registered: 2020-08-02
Posts: 47

Re: [SOLVED] Updating and maintaining cartography packages - help wanted

And a third question: for proj 7, curl is listed as an "optional build dependency"... is that `optdepends` or `makedepends`?

Offline

#7 2020-09-22 12:01:15

adigitoleo
Member
From: Australia
Registered: 2020-08-02
Posts: 47

Re: [SOLVED] Updating and maintaining cartography packages - help wanted

After looking into it more, lots of related software is still using proj 4-6, and all the stuff I wanted to use still works on the earlier version. I'm marking as solved for now, since I don't think I'll be writing these PKGBUILDS all that soon. I think I just got spooked by the "outdated" flags smile

Anyway, it made me read about arch packaging, which will be useful to know about.

Cheers

Offline

Board footer

Powered by FluxBB