pdf-tools icon indicating copy to clipboard operation
pdf-tools copied to clipboard

Add OpenSUSE to server/autobuild

Open vedang opened this issue 2 years ago • 4 comments

Copying my comment from #92 for @Pi-Cla

Hello @Pi-Cla !

I've merged the change in, but since you are an OpenSUSE user, can you please create one more PR? Please also modify the server/autobuild file with instructions on installing the relevant packages for OpenSUSE. Here are the steps you need to follow (Search for os_gentoo or os_debian in the file. The functions associated with these Operating Systems are simple to copy and change, so you can use these as reference.):

Add a call under handle-options, which is a cond-loop to pick up the correct Operating System to execute on. Add handling for the --os argument in os_argument for opensuse, so that the appropriate function can be called to install pre-requisites. Create a os_suse function. This function checks if we are running on OpenSUSE. If we are not, it returns and does nothing. However, if we are running on OpenSUSE, it sets up PKGCMD, PKGARGS and PACKAGES so that the appropriate package manager zypper can install the dependencies as part of the rest of the script. The idea here is to make the server/autobuild file the single place from which installation can happen on any Operating System. This makes building pdf-tools dead simple via the Makefile.

vedang avatar Apr 26 '22 01:04 vedang

Is was just thinking of doing this using: https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.scm_ci_workflow_integration.html

Is it ok to host the rpm in here?

Thaodan avatar Jan 22 '23 01:01 Thaodan

At the moment, I do not have any plans to support building distribution packages from this repo. This ticket tracks simplifying how to build pdf-tools from the source. (More information here: https://pdftools.wiki/A34704B9)

Other people have built packages for operating systems, which are mentioned in the README here: https://pdftools.wiki/fb5cef15 . If you do end up creating / maintaining an RPM package, do update the relevant section in the README.org file.

vedang avatar Jan 22 '23 03:01 vedang

At the moment, I do not have any plans to support building distribution packages from this repo. This ticket tracks simplifying how to build pdf-tools from the source. (More information here: https://pdftools.wiki/A34704B9)

I understand. This step would help to build release packages for any distribution on the obs for release builds or even for PRs.

My plan was to save the spec file in this repository with an obs workflow so that the package will be rebuild whenever a new release is tag.

If any other build recipes will go this repository they can build on the obs the same way.

Other people have built packages for operating systems, which are mentioned in the README here: https://pdftools.wiki/fb5cef15 . If you do end up creating / maintaining an RPM package, do update the relevant section in the README.org file.

Sure that was the idea.

Thaodan avatar Jan 22 '23 05:01 Thaodan

Honestly, I would love it if you can contribute the work and set it up such that the relevant assets are generated.

However, I'm worried that this will be another vector of maintenance that I'll have to manage.

I browsed the draft PR and the OBS website. I'm curious to see how this turns out. If you continue working on it, please share back / update the PR!

On Sun, Jan 22, 2023, 10:36 AM Björn Bidar @.***> wrote:

At the moment, I do not have any plans to support building distribution packages from this repo. This ticket tracks simplifying how to build pdf-tools from the source. (More information here: https://pdftools.wiki/A34704B9)

I understand. This step would help to build release packages for any distribution on the obs for release builds or even for PRs.

My plan was to save the spec file in this repository with an obs workflow so that the package will be rebuild whenever a new release is tag.

If any other build recipes will go this repository they can build on the obs the same way.

Other people have built packages for operating systems, which are mentioned in the README here: https://pdftools.wiki/fb5cef15 . If you do end up creating / maintaining an RPM package, do update the relevant section in the README.org file.

Sure that was the idea.

— Reply to this email directly, view it on GitHub https://github.com/vedang/pdf-tools/issues/96#issuecomment-1399406084, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAUUHX7VU5OG67MSTWWCGDWTS57FANCNFSM5UKIQLBQ . You are receiving this because you authored the thread.Message ID: @.***>

vedang avatar Jan 22 '23 08:01 vedang