Gesendet: Donnerstag, 28. März 2019 um 11:28 Uhr Von: "Robert Paschedag" <robert.paschedag@web.de> An: "Robert Paschedag" <robert.paschedag@web.de> Cc: "Cedric Bosdonnat" <cbosdonnat@suse.com>, uyuni-users@opensuse.org, uyuni-devel@opensuse.org Betreff: Aw: Re: [uyuni-devel] Build repositories for openSUSE 42.3
Gesendet: Donnerstag, 28. März 2019 um 09:53 Uhr Von: "Robert Paschedag" <robert.paschedag@web.de> An: "Cedric Bosdonnat" <cbosdonnat@suse.com> Cc: uyuni-users@opensuse.org, uyuni-devel@opensuse.org Betreff: Aw: Re: [uyuni-devel] Build repositories for openSUSE 42.3
Gesendet: Donnerstag, 28. März 2019 um 09:44 Uhr Von: "Cedric Bosdonnat" <cbosdonnat@suse.com> An: "Robert Paschedag" <robert.paschedag@web.de>, uyuni-users@opensuse.org Cc: uyuni-devel@opensuse.org Betreff: Re: [uyuni-devel] Build repositories for openSUSE 42.3
Hi Robert,
On Thu, 2019-03-28 at 09:18 +0100, Robert Paschedag wrote:
I have a test uyuni server (4.0.1) running on openSUSE 42.3.
Now I want to build new packages based on the "ubuntu-support" branch since there has been a lot of work in the last weeks and I want to test these improvements, since we are currently running Spacewalk 2.7 with a lot of Debian clients and are planning (or at least thinking about) migrating to Uyuni (to also get Salt).
Now I also have a "build system" also based on openSUSE 42.3. But it seems that at least one "build repository" seems to be missing.
Trying to build "spacewalk-backend" returns
uyuni-build:~/git/uyuni/backend # rpmbuild -bb spacewalk-backend.spec error: Failed build dependencies: python2-spacewalk-usix is needed by spacewalk-backend-4.0.7- 1.noarch python2-gzipstream is needed by spacewalk-backend-4.0.7- 1.noarch python2-rhn-client-tools is needed by spacewalk-backend- 4.0.7-1.noarch python2-rhnlib >= 2.5.74 is needed by spacewalk-backend- 4.0.7-1.noarch
Those are built in https://build.opensuse.org/project/show/systemsmanagement:spacewalk
You could add the 42.3 repo from there and get them.
Cedric,
ahh.....man...that was easy :-) I search below the "uyuni" "path".....
OK. But now I get an assertion error within tests....
F ====================================================================== FAIL: test_timestamp_3 (__main__.Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "test_rhnLib_timestamp.py", line 71, in test_timestamp_3 self.assertTrue(is_eq, "Failed: %s, %s" % (t1, t2)) AssertionError: Failed: 57739297, 57739297
---------------------------------------------------------------------- Ran 1 test in 0.002s
FAILED (failures=1) Makefile:23: recipe for target 'test-test_rhnLib_timestamp.py' failed make[1]: *** [test-test_rhnLib_timestamp.py] Error 1 make[1]: Leaving directory '/root/rpmbuild/BUILD/spacewalk-backend-4.0.7/server/test/unit-test'
Robert
I was able to fix this with
TZ="" rpmbuild -bb spacewalk-backend.spec
Turns out, that on my system (running in "CET") has a "dstshift" of "-3600" within that test.
Robert
Another question. Got another dependency problem with the new "spacewalk-backend-tools-4.0.7-1" package uyuni-test:~/ubuntu-support # rpm -Uvh *.rpm error: Failed dependencies: python2-urlgrabber is needed by spacewalk-backend-tools-4.0.7-1.noarch I only got "python-urlgrabber" uyuni-test:~/ubuntu-support # rpm -q --info python-urlgrabber Name : python-urlgrabber Version : 3.9.1 Release : 16.4 Architecture: noarch Install Date: Fri Oct 5 11:33:06 2018 Group : Development/Languages/Python Size : 304495 License : LGPL-2.1 Signature : RSA/SHA256, Fri May 19 20:32:55 2017, Key ID b88b2fd43dbdc284 Source RPM : python-urlgrabber-3.9.1-16.4.src.rpm Build Date : Fri May 19 20:32:46 2017 Build Host : cloud103 Relocations : (not relocatable) Packager : http://bugs.opensuse.org Vendor : openSUSE URL : http://urlgrabber.baseurl.org Summary : A high-level cross-protocol url-grabber Description : A high-level cross-protocol url-grabber for python supporting HTTP, FTP and file locations. Features include keepalive, byte ranges, throttling, authentication, proxies and more. Distribution: openSUSE Leap 42.3 That dependency was introduced 2019-01-31 commit a839b867989a4275a0699283de25e82a21ef7af3 Author: Pablo Suárez Hernández <psuarezhernandez@suse.com> Date: Thu Jan 31 11:04:03 2019 +0000 Add urlgrabber as dependency of spacewalk-backend diff --git a/backend/spacewalk-backend.spec b/backend/spacewalk-backend.spec index 7c8f95d91c..a7d2190adc 100644 --- a/backend/spacewalk-backend.spec +++ b/backend/spacewalk-backend.spec @@ -452,12 +452,14 @@ Requires: python3-python-dateutil Requires: python3-gzipstream Requires: python3-rhn-client-tools Requires: python3-solv +Requires: python3-urlgrabber %else Requires: python-dateutil Requires: python2-gzipstream Requires: python2-rhn-client-tools Requires: python-solv Requires: python-configparser +Requires: python2-urlgrabber %if 0%{?suse_version} Requires: python-pyliblzma %else Is that *really* another (newer) package or a possible error within the spec? Robert
-- Cedric
-- To unsubscribe, e-mail: uyuni-devel+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-devel+owner@opensuse.org
-- To unsubscribe, e-mail: uyuni-devel+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-devel+owner@opensuse.org
-- To unsubscribe, e-mail: uyuni-devel+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-devel+owner@opensuse.org