[opensuse-buildservice] How to have the download URLs stored in external GIT?
Hello, As it's impossible for me to access your forums, I'll try to get answer here. What I want to do is to get a small Arch repository set up. I want to manage my PKGBUILD's on Github. I did a try with this: |<services> <service name="obs_scm"> <param name="scm">git</param> <param name="url">https://github.com/SOME/REPO.git</param> <param name="extract">PKGBUILD</param> </service> <service name="download_files"/> </services> ||| But with this no files, mentioned in the PKGBUILD, are downloaded. I already opened an Issue for this, but maybe it is at least possible to get something going in the meantime? Can I have some other file managed in my GIT which holds the list of URLs that have to be fetched? Is it possible to have something like a "second _service" in GIT control and just make the OBS "_service" forward to the GIT-managed version? Thanks in advance Manuel || -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Sorry, my _service example got corrupted by my mailer <services> <service name="obs_scm"> <param name="scm">git</param> <param name="url">https://github.com/SOME/REPO.git</param> <param name="extract">PKGBUILD</param> </service> <service name="download_files"/> </services> This is what doesn't work. I need some way to have *all* relevant files in GIT control. Including the list of files to download. On 07.06.19 18:11, Manuel Reimer wrote:
Hello,
As it's impossible for me to access your forums, I'll try to get answer here.
What I want to do is to get a small Arch repository set up.
I want to manage my PKGBUILD's on Github.
I did a try with this:
|<services> <service name="obs_scm"> <param name="scm">git</param> <param name="url">https://github.com/SOME/REPO.git</param> <param name="extract">PKGBUILD</param> </service> <service name="download_files"/> </services> |||
But with this no files, mentioned in the PKGBUILD, are downloaded.
I already opened an Issue for this, but maybe it is at least possible to get something going in the meantime?
Can I have some other file managed in my GIT which holds the list of URLs that have to be fetched?
Is it possible to have something like a "second _service" in GIT control and just make the OBS "_service" forward to the GIT-managed version?
Thanks in advance
Manuel
||
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Freitag, 7. Juni 2019, 18:13:19 CEST Manuel Reimer wrote:
Sorry, my _service example got corrupted by my mailer
<services> <service name="obs_scm"> <param name="scm">git</param> <param name="url">https://github.com/SOME/REPO.git</param> <param name="extract">PKGBUILD</param> </service> <service name="download_files"/> </services>
This is what doesn't work.
and what does not work? any error message? Can you prepare a not working example in build.opensuse.org and show it to us?
I need some way to have *all* relevant files in GIT control. Including the list of files to download.
On 07.06.19 18:11, Manuel Reimer wrote:
Hello,
As it's impossible for me to access your forums, I'll try to get answer here.
What I want to do is to get a small Arch repository set up.
I want to manage my PKGBUILD's on Github.
I did a try with this: |<services> <service name="obs_scm"> <param name="scm">git</param>
<param name="url">https://github.com/SOME/REPO.git</param> <param name="extract">PKGBUILD</param> </service> <service name="download_files"/> </services> |||
But with this no files, mentioned in the PKGBUILD, are downloaded.
I already opened an Issue for this, but maybe it is at least possible to get something going in the meantime?
Can I have some other file managed in my GIT which holds the list of URLs that have to be fetched?
Is it possible to have something like a "second _service" in GIT control and just make the OBS "_service" forward to the GIT-managed version?
Thanks in advance
Manuel
-- Adrian Schroeter SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On 08.06.19 13:45, Adrian Schröter wrote:
On Freitag, 7. Juni 2019, 18:13:19 CEST Manuel Reimer wrote:
Sorry, my _service example got corrupted by my mailer
<services> <service name="obs_scm"> <param name="scm">git</param> <param name="url">https://github.com/SOME/REPO.git</param> <param name="extract">PKGBUILD</param> </service> <service name="download_files"/> </services>
This is what doesn't work.
and what does not work? any error message?
No obvious error message, but I don't know for sure where to search for them.
Can you prepare a not working example in build.opensuse.org and show it to us?
https://build.opensuse.org/package/show/home:M-Reimer:wine-lol/wine-lol-glib... But even with this fixed (I've created an issue for this here: https://github.com/openSUSE/obs-service-download_files/issues/25) my PKGBUILD will not work as the file name is not correctly used. There is a pull request for this since 2017: https://github.com/openSUSE/obs-service-download_files/pull/13 Manuel -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Am Samstag, den 08.06.2019, 17:58 +0200 schrieb Manuel Reimer:
On 08.06.19 13:45, Adrian Schröter wrote:
On Freitag, 7. Juni 2019, 18:13:19 CEST Manuel Reimer wrote:
Sorry, my _service example got corrupted by my mailer
<services> <service name="obs_scm"> <param name="scm">git</param> <param name="url">https://github.com/SOME/REPO.git</param> <param name="extract">PKGBUILD</param> </service> <service name="download_files"/> </services>
This is what doesn't work.
and what does not work? any error message?
No obvious error message, but I don't know for sure where to search for them.
Can you prepare a not working example in build.opensuse.org and show it to us?
https://build.opensuse.org/package/show/home:M-Reimer:wine-lol/wine-lol-glib...
Im not into arch packaging so my question may sound a little bit stupid. Anyway: Are you trying to download stuff while building? It looks like: ####################################################################### [ 67s] 0 0 0 0 0 0 0 0 --:--:-- --:--:- - --:--:-- 0curl: (6) Could not resolve host: ftp.gnu.org [ 67s] ==> ERROR: Failure while downloading https://ftp.gnu.org/gnu/glibc/glibc-2.29.tar.xz ####################################################################### If so: build workers are not supposed to have network access. This is a basic principal of OBS. Everything you need while building needs to be prefetched via services or added as an source file/tarball. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On 08.06.19 18:13, Frank Schreiner wrote:
https://build.opensuse.org/package/show/home:M-Reimer:wine-lol/wine-lol-glib...
Im not into arch packaging so my question may sound a little bit stupid. Anyway: Are you trying to download stuff while building? It looks like:
No. The idea is that everything is "already there". That's what the "download_files" service should do. But this only works if the PKGBUILD is uploaded to OBS. It doesn't work if OBS downloads the PKGBUILD from an external GIT repo. Maybe the line I mention in the issue report is the reason for this. But even this will only help me if the filename issue is also fixed. If I can't manage the whole build process from Github, then OBS unfortunately doesn't help me that much. I have a project which offers 262 packages for Arch Linux. https://github.com/VDR4Arch/vdr4arch It would be way too much work to also manage them on OBS. If I do this, then I would only want to do the work once for each package and then auto-trigger a build when my GIT changes. Manuel -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Hi,
I personally download the files manually using *obs_scm*, so the trick
is actually extremely helpful.
What might be useful for you is to run the *download_files* service at
build time, when the PKGBUILD is for sure available in the chroot.
Il giorno sab 8 giu 2019 alle ore 20:10 Manuel Reimer
On 08.06.19 18:13, Frank Schreiner wrote:
https://build.opensuse.org/package/show/home:M-Reimer:wine-lol/wine-lol-glib...
Im not into arch packaging so my question may sound a little bit stupid. Anyway: Are you trying to download stuff while building? It looks like:
No. The idea is that everything is "already there".
That's what the "download_files" service should do.
But this only works if the PKGBUILD is uploaded to OBS. It doesn't work if OBS downloads the PKGBUILD from an external GIT repo. Maybe the line I mention in the issue report is the reason for this.
But even this will only help me if the filename issue is also fixed.
If I can't manage the whole build process from Github, then OBS unfortunately doesn't help me that much. I have a project which offers 262 packages for Arch Linux.
https://github.com/VDR4Arch/vdr4arch
It would be way too much work to also manage them on OBS. If I do this, then I would only want to do the work once for each package and then auto-trigger a build when my GIT changes.
Manuel -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (4)
-
Adrian Schröter
-
Frank Schreiner
-
Giovanni Santini
-
Manuel Reimer