Hi all, First time poster, thanks for having me! I am trying to follow the lead of Detlef Steuer to (eventually) build (a lot of) R language packages from the CRAN network for Debian (and maybe also Ubuntu) by using the excellent Build Service. I am fairly familiar with the Debian package format and tools as well as with R packages but very green with the OpenSuSE Build Service. Following the (generally very nice) documentation plus one external blog post, I set up a first (simple) package (which I already maintain in Debian and am also upstream for). It fails on seeming conflict (driven from the R package) expecting a choice from a "virtual" to a "concrete" jpeg package: edd@rob:~/obs/home/eddelbuettel/r-cran-pkgkitten$ osc build --local-package Building r-cran-pkgkitten.dsc for Debian_Testing/x86_64 Getting buildconfig from server and store to /home/edd/obs/home/eddelbuettel/r-cran-pkgkitten/.osc/_b uildconfig-Debian_Testing-x86_64 Getting buildinfo from server and store to /home/edd/obs/home/eddelbuettel/r-cran-pkgkitten/.osc/_buildinfo-Debian_Testing-x86_64.xml buildinfo is broken... it says: unresolvable: have choice for libjpeg-dev needed by r-base-dev: libjpeg-dev libjpeg62-turbo-dev edd@rob:~/obs/home/eddelbuettel/r-cran-pkgkitten$ Detlef suggested editing 'Project Config' in https://build.opensuse.org/projects/home:eddelbuettel/prjconf which I did, but that lead a 'IncompletRead error. The same error I get with a smaller/simpler package I tried and which only depends on two -dev packages: edd@rob:~/obs/home/eddelbuettel/xrprof$ osc build --local-package Building xrprof.dsc for Debian_Testing/x86_64 Getting buildconfig from server and store to /home/edd/obs/home/eddelbuettel/xrprof/.osc/_buildconfig -Debian_Testing-x86_64 Getting buildinfo from server and store to /home/edd/obs/home/eddelbuettel/xrprof/.osc/_buildinfo-Debian_Testing-x86_64.xml IncompleteRead(0 bytes read) edd@rob:~/obs/home/eddelbuettel/xrprof$ As you can see I am trying to build for Debian testing, and am running under Ubuntu 20.10 with what should be recent-ish tools. The osc and other packages are stock Ubuntu 20.10. I would truly appreciate a pointer or two of help. Happy to hop on online chat, #irc is a little tricker as I seem to be unable to reset my NickServ. Cheers, Dirk -- https://dirk.eddelbuettel.com | @eddelbuettel | edd@debian.org
On 2021-05-09 08:44:31 -0500, Dirk Eddelbuettel wrote: <SNIP>
The same error I get with a smaller/simpler package I tried and which only depends on two -dev packages:
edd@rob:~/obs/home/eddelbuettel/xrprof$ osc build --local-package Building xrprof.dsc for Debian_Testing/x86_64 Getting buildconfig from server and store to /home/edd/obs/home/eddelbuettel/xrprof/.osc/_buildconfig -Debian_Testing-x86_64 Getting buildinfo from server and store to /home/edd/obs/home/eddelbuettel/xrprof/.osc/_buildinfo-Debian_Testing-x86_64.xml IncompleteRead(0 bytes read) edd@rob:~/obs/home/eddelbuettel/xrprof$
As you can see I am trying to build for Debian testing, and am running under Ubuntu 20.10 with what should be recent-ish tools. The osc and other packages are stock Ubuntu 20.10.
It seems that the M2Crypto version is too old/does not match with the recent python version on Ubuntu. See [1]. Marcus [1] https://gitlab.com/m2crypto/m2crypto/-/merge_requests/242
On 10 May 2021 at 06:46, Marcus Hüwe wrote: | On 2021-05-09 08:44:31 -0500, Dirk Eddelbuettel wrote: | > The same error I get with a smaller/simpler package I tried and which only | > depends on two -dev packages: | > | > edd@rob:~/obs/home/eddelbuettel/xrprof$ osc build --local-package | > Building xrprof.dsc for Debian_Testing/x86_64 | > Getting buildconfig from server and store to | > /home/edd/obs/home/eddelbuettel/xrprof/.osc/_buildconfig -Debian_Testing-x86_64 | > Getting buildinfo from server and store to /home/edd/obs/home/eddelbuettel/xrprof/.osc/_buildinfo-Debian_Testing-x86_64.xml | > IncompleteRead(0 bytes read) | > edd@rob:~/obs/home/eddelbuettel/xrprof$ | > | > As you can see I am trying to build for Debian testing, and am running under | > Ubuntu 20.10 with what should be recent-ish tools. The osc and other packages | > are stock Ubuntu 20.10. | > | It seems that the M2Crypto version is too old/does not match with the recent | python version on Ubuntu. See [1]. Very nice -- well spotted. I would not have guessed that or looked there! After a quick local build-for-PPA of the python3-m2crypto package from Debian testing I am indeed in business. The 'simpler' package xrprof just built! Yay! For the actual R package from CRAN I am back to initial problem: edd@rob:~/obs/home/eddelbuettel/r-cran-pkgkitten$ osc build --local-package Building r-cran-pkgkitten.dsc for Debian_Testing/x86_64 Getting buildconfig from server and store to /home/edd/obs/home/eddelbuettel/r-cran-pkgkitten/.osc/_buildconfig-Debian_Testing-x86_64 Getting buildinfo from server and store to /home/edd/obs/home/eddelbuettel/r-cran-pkgkitten/.osc/_buildinfo-Debian_Testing-x86_64.xml buildinfo is broken... it says: unresolvable: have choice for libjpeg-dev needed by r-base-dev: libjpeg-dev libjpeg62-turbo-dev edd@rob:~/obs/home/eddelbuettel/r-cran-pkgkitten$ Where do I (locally ?) override this? It comes from package metainfo (via r-base-dev), not the local debian.control: edd@rob:~/obs/home/eddelbuettel/r-cran-pkgkitten$ grep Build-Dep debian.control Build-Depends: debhelper-compat (= 11), r-base-dev (>= 4.0.4), dh-r edd@rob:~/obs/home/eddelbuettel/r-cran-pkgkitten$ Dirk -- https://dirk.eddelbuettel.com | @eddelbuettel | edd@debian.org
Hi, On 2021-05-10 09:10:47 -0500, Dirk Eddelbuettel wrote: <SNIP>
For the actual R package from CRAN I am back to initial problem:
edd@rob:~/obs/home/eddelbuettel/r-cran-pkgkitten$ osc build --local-package Building r-cran-pkgkitten.dsc for Debian_Testing/x86_64 Getting buildconfig from server and store to /home/edd/obs/home/eddelbuettel/r-cran-pkgkitten/.osc/_buildconfig-Debian_Testing-x86_64 Getting buildinfo from server and store to /home/edd/obs/home/eddelbuettel/r-cran-pkgkitten/.osc/_buildinfo-Debian_Testing-x86_64.xml buildinfo is broken... it says: unresolvable: have choice for libjpeg-dev needed by r-base-dev: libjpeg-dev libjpeg62-turbo-dev edd@rob:~/obs/home/eddelbuettel/r-cran-pkgkitten$
Where do I (locally ?) override this?
You have to adjust the project config (server side). For instance, adding the following "Prefer" entry to the project config should fix it: Prefer: libjpeg-dev # alternatively, use libjpeg62-turbo-dev if you prefer that one:) # or if you just need this for the Debian_Testing repo %if "%_repository" == "Debian_Testing" Prefer: libjpeg-dev %endif The project config can be edited via "osc meta prjconf -e home:eddelbuettel" or via the webui. Marcus
On 11 May 2021 at 22:11, Marcus Hüwe wrote: | Hi, | | On 2021-05-10 09:10:47 -0500, Dirk Eddelbuettel wrote: | <SNIP> | | > For the actual R package from CRAN I am back to initial problem: | > | > edd@rob:~/obs/home/eddelbuettel/r-cran-pkgkitten$ osc build --local-package | > Building r-cran-pkgkitten.dsc for Debian_Testing/x86_64 | > Getting buildconfig from server and store to /home/edd/obs/home/eddelbuettel/r-cran-pkgkitten/.osc/_buildconfig-Debian_Testing-x86_64 | > Getting buildinfo from server and store to /home/edd/obs/home/eddelbuettel/r-cran-pkgkitten/.osc/_buildinfo-Debian_Testing-x86_64.xml | > buildinfo is broken... it says: | > unresolvable: have choice for libjpeg-dev needed by r-base-dev: libjpeg-dev libjpeg62-turbo-dev | > edd@rob:~/obs/home/eddelbuettel/r-cran-pkgkitten$ | > | > Where do I (locally ?) override this? | | You have to adjust the project config (server side). For instance, | adding the following "Prefer" entry to the project config should fix it: | | Prefer: libjpeg-dev | # alternatively, use libjpeg62-turbo-dev if you prefer that one:) Ah yes. Someone (Detlef? Or maybe when I briefly poked into #irc [1]) had recommended that -- and it had failed for me, but because of the other issue with m2crypto you spotted. So having fixed that (thanks again!) I just tried again and _tada!!_ it now works. Most excellent. First R package built. Thank you! | # or if you just need this for the Debian_Testing repo | %if "%_repository" == "Debian_Testing" | Prefer: libjpeg-dev | %endif That is good too. I'll edit the override for clarity. | The project config can be edited via "osc meta prjconf -e home:eddelbuettel" I presume that opens a browser? | or via the webui. That I did. Thanks again -- that was (once again) spot on and very helpful. Cheers, Dirk [1] I have this decade-long fight with #irc that I seem unable to either get my nick 'back' or to properly reserve a new one so I have mostly given up on it. Maybe via Matrix ... -- https://dirk.eddelbuettel.com | @eddelbuettel | edd@debian.org
participants (2)
-
Dirk Eddelbuettel
-
Marcus Hüwe