sciapp / gr

GR framework: a graphics library for visualisation applications
Other
329 stars 54 forks source link

openSUSE build service #143

Open bkmgit opened 3 years ago

bkmgit commented 3 years ago

Build on openSUSE build service for Fedora is installed in /usr/gr
Packages in Fedora typically go into /usr/bin , /usr/lib , /usr/bin and/or /usr/lib64 which are typically setup for compilers to find dependencies. Might it be worth setting up a separate spec file for this use case?

IngoMeyer441 commented 3 years ago

Christian's comment in #142 is also relevant to this issue.

kojix2 commented 3 years ago

Christian's comment in #142

Unfortunately the DSA1024 key inherited from the parent project science is still valid, but considered too weak by some distributions. I pointed this out by mail and bug trackers to the OBS maintainers in 2018. unfortunately the key still has not upgraded yet. You can workaround this by manually declaring the repository as trusted.

I am currently on vacation. may I can ping the OBS folks again once I‘m back.

Regarding the paths for libraries and so on we used to have a common prefix (grdir) in the past. I agree that for packaged versions it would make sense to change that to point to well used paths lib(64), share, ... . This would require changes in various wrappers, python, julia, and probably your ruby code.

As far as I can see you already figured out how to „fix“ your ruby wrapper. We should keep you in line when applying changes to this part.

I hope this sheds some light on this.

Best Christian

Thank you for your comment. In the future, I would like to stop distributing packages with Red-data-tools and use the gr package distributed with openSUSE build survice. I'm using Ubuntu. I'm also a little concerned that the location of the files is different from that of common ubuntu packages.

kojix2 commented 2 years ago

DSA1024 key issue?

I tried one more time today,

Ubuntu 20.04 https://software.opensuse.org//download.html?project=science%3Agr-framework&package=gr

echo 'deb http://download.opensuse.org/repositories/science:/gr-framework/xUbuntu_20.04/ /' | sudo tee /etc/apt/sources.list.d/science:gr-framework.list
curl -fsSL https://download.opensuse.org/repositories/science:gr-framework/xUbuntu_20.04/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/science_gr-framework.gpg > /dev/null
sudo apt update
sudo apt install gr

but the following error appeared when sudo apt update

Get:18 http://download.opensuse.org/repositories/science:/gr-framework/xUbuntu_20.04  InRelease [1251 B]
Err:18 http://download.opensuse.org/repositories/science:/gr-framework/xUbuntu_20.04  InRelease
  The following signatures were invalid: D1DD7ACD6D68A0B43081B15801DB7302943D8BB8
W: GPG error: http://download.opensuse.org/repositories/science:/gr-framework/xUbuntu_20.04  InRelease: The following signatures were invalid: D1DD7ACD6D68A0B43081B15801DB7302943D8BB8
E: The repository 'http://download.opensuse.org/repositories/science:/gr-framework/xUbuntu_20.04  InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

You can workaround this by manually declaring the repository as trusted.

Force update from unsigned repository

/etc/apt/sources.list.d/science:gr-framework.list

deb [trusted=yes] http://download.opensuse.org/repositories/science:/gr-framework/xUbuntu_20.04/ /
cfelder commented 2 years ago

Thanks for reaching out @kojix2. I kindly asked the OBS maintainers to upgrade the gpg key which will expire soon (2021-11-11).

pub   dsa1024 2008-01-22 [SC] [expires: 2021-11-11]
      D1DD7ACD6D68A0B43081B15801DB7302943D8BB8
uid           science OBS Project <science@build.opensuse.org>
kojix2 commented 2 years ago

Thanks!

cfelder commented 2 years ago

After creating a new rsa2048 gpg key I kindly ask you to upgrade your repository settings accordingly:

https://software.opensuse.org//download.html?project=science%3Agr-framework&package=gr

kojix2 commented 2 years ago

Today is November 11, so I'll try tomorrow.

kojix2 commented 2 years ago

Thank you. I can now install GR from the OBS repository. :relaxed: :+1:

kojix2 commented 2 years ago

Happy New Year! I tried 0.63.0 today and it seems that the openSUSEbuild service is failing to build. Please fix it when you have time. https://build.opensuse.org/project/monitor/science:gr-framework

cfelder commented 2 years ago

Thanks for reaching out @kojix2. There are some missing updates regarding 3rdparty dependencies in the packaging files. I am on it and will release a bug fix release soon.