First of, Thx for reading and answering this post if you can.
That being said, I’m trying to get my project named skylendar on Obs. Thus, I created a project as described in the doc, downloaded a spec file and the skylendar-4.1nn-.tar.xz archive via both the web interface and the command line, and launched the building process, which failed…
But I got this in the live build log.
41s] -----------------------------------------------------------------
41s] I have the following modifications for skylendar.spec:
41s] 10c10
41s] < Release: 1
41s] ---
41s] > Release: 2.1
41s] -----------------------------------------------------------------
41s] ----- building skylendar.spec (user abuild)
41s] -----------------------------------------------------------------
41s] -----------------------------------------------------------------
42s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --define 'disturl obs://build.opensuse.org/home:lader1/openSUSE_Factory/048d1335137c91fdad23b91549ef4005-Skylendar' /home/abuild/rpmbuild/SOURCES/skylendar.spec
42s] setting SOURCE_DATE_EPOCH=1278244800
42s] Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.sR4UTh
42s] + umask 022
42s] + cd /home/abuild/rpmbuild/BUILD
42s] + mv /home/abuild/rpmbuild/BUILDROOT/skylendar-4.1nn-2.1.x86_64 /home/abuild/rpmbuild/tmpBBroot
42s] mv: cannot stat '/home/abuild/rpmbuild/BUILDROOT/skylendar-4.1nn-2.1.x86_64': No such file or directory
42s] error: Bad exit status from /var/tmp/rpm-tmp.sR4UTh (%prep)
42s]
42s]
42s] RPM build errors:
42s] Bad exit status from /var/tmp/rpm-tmp.sR4UTh (%prep)
42s]
42s] build32 failed "build skylendar.spec" at Fri Feb 1 16:25:00 UTC 2019.
42s]
42s] ### VM INTERACTION START ###
45s] 36.858260] sysrq: SysRq : Power Off
45s] 36.862213] reboot: Power down
47s] ### VM INTERACTION END ###
47s]
47s] build32 failed "build skylendar.spec" at Fri Feb 1 16:25:06 UTC 2019.
47s]
Mhh, I got the same problem. How to indicate in the .spec file where to find out the tarball, because it is already added in the source file section of the obs ?
I have prepared some patches etc so it all builds etc. I noted your with you current build the upstream sources changed, did you change and create a new tarball? If so, please don’t do that, always patch, fix etc with the pristine upstream source.
Yesterday, BuildRequires: pkgconfig(Qt5Linguist) worked in my .spec file. but today, it says that nothing provides this. How can I declare the qt5 linguist tools ?
The build logs say:
104s] CMake Error at /usr/lib64/cmake/Qt5/Qt5Config.cmake:28 (find_package):
104s] Could not find a package configuration file provided by “Qt5LinguistTools”
104s] with any of the following names:
104s]
104s] Qt5LinguistToolsConfig.cmake
104s] qt5linguisttools-config.cmake
104s]
Thx very much for the contribution, but unfortunately, I got this error message:
[41s]error: Bad source: /home/abuild/rpmbuild/SOURCES/skylendar-fix-qt-error.patch: No such file or directory
I grabbed and uploaded the patches as recommended, but I got this:
68s] + echo 'Patch #0 (skylendar-fix-qt-error.patch):'
68s] Patch #0 (skylendar-fix-qt-error.patch):
68s] + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
68s] can't find file to patch at input line 4
68s] Perhaps you used the wrong -p or --strip option?
68s] The text leading up to this was:
68s] --------------------------
68s] |diff -Naur a/skylendar/src/editastrodata.cpp b/skylendar/src/editastrodata.cpp
68s] |--- a/skylendar/src/editastrodata.cpp 2018-12-12 13:33:24.157745000 -0600
68s] |+++ b/skylendar/src/editastrodata.cpp 2019-02-01 16:47:10.444078545 -0600
68s] --------------------------
68s] File to patch:
68s] Skip this patch? [y]
68s] Skipping patch.
68s] patch unexpectedly ends in middle of line