http://bugzilla.suse.com/show_bug.cgi?id=1136584
Bug ID: 1136584 Summary: osc build requires running in a checked out directory even with --alternative-project Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.1 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Development Assignee: bnc-team-screening@forge.provo.novell.com Reporter: mkubecek@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: ---
Since upgrading my Leap 15.0 system to Leap 15.1, "osc build" requires current directory to be a checked out working copy even when "--alternative-project" argument is used:
mike@unicorn:~/work/git/sle-ksource/kernel-source> osc build --alternative-project openSUSE:Factory kernel-default.spec Error: "/srv/git/sle-ksource/kernel-source" is not an osc package working copy.
Leap 15.0 and 42.3 version did not require this and the example used to work with only package contents in current directory (and no .osc/* metadata).
Last known good version: 0.162.1-lp150.1.3 (Leap 15.0) First known bad version: 0.165.0-lp151.1.1 (Leap 15.1)
According to Jiří Slabý, 0.164.2 also works.
http://bugzilla.suse.com/show_bug.cgi?id=1136584
Michal Kubeček mkubecek@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|bnc-team-screening@forge.pr |ro@suse.com |ovo.novell.com |
http://bugzilla.suse.com/show_bug.cgi?id=1136584 http://bugzilla.suse.com/show_bug.cgi?id=1136584#c1
Ruediger Oertel ro@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|ro@suse.com |marco.strigl@suse.com
--- Comment #1 from Ruediger Oertel ro@suse.com --- -> osc maintainer
http://bugzilla.suse.com/show_bug.cgi?id=1136584
Michal Suchanek msuchanek@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |msuchanek@suse.com
http://bugzilla.suse.com/show_bug.cgi?id=1136584 http://bugzilla.suse.com/show_bug.cgi?id=1136584#c2
Jiri Slaby jslaby@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jslaby@suse.com
--- Comment #2 from Jiri Slaby jslaby@suse.com --- (In reply to Michal Kubeček from comment #0)
According to Jiří Slabý, 0.164.2 also works.
Yes, osc 0.165 now needs .osc dir and _project, _package and (empty) _files in it for to me unknown reason. So this is a regression preventing use of osc as we use it for the kernel maintenance. See: https://kernel.opensuse.org/cgit/kernel-source/tree/scripts/osc_wrapper?h=sc...
rm -rf "$(dirname "$spec")/.osc" osc build --local-package --alternative-project="$PROJECT" \ "${osc_args[@]}" standard "$spec"
http://bugzilla.suse.com/show_bug.cgi?id=1136584 http://bugzilla.suse.com/show_bug.cgi?id=1136584#c3
Miroslav Beneš mbenes@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mbenes@suse.com
--- Comment #3 from Miroslav Beneš mbenes@suse.com --- Is there any progress on this? We cannot update osc package on any development/building machine because of the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1136584 http://bugzilla.suse.com/show_bug.cgi?id=1136584#c4
Jiri Slaby jslaby@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |https://github.com/openSUSE | |/osc/issues/703
--- Comment #4 from Jiri Slaby jslaby@suse.com --- This was now reported to upstream too: https://github.com/openSUSE/osc/issues/703
http://bugzilla.suse.com/show_bug.cgi?id=1136584 http://bugzilla.suse.com/show_bug.cgi?id=1136584#c5
--- Comment #5 from Marco Strigl marco.strigl@suse.com --- Sorry for the late response. Somehow I got no eMail about this bug.
You need to set the --no-service too if you want to build outside of a package working copy.
http://bugzilla.suse.com/show_bug.cgi?id=1136584 http://bugzilla.suse.com/show_bug.cgi?id=1136584#c6
--- Comment #6 from Marco Strigl marco.strigl@suse.com --- So there are two things here:
1. you need the --no-service switch. 2. There was an bug introduced in 0.167.0 which is fixed in 0.167.1
With 0.167.1 and the --no-service switch it will work again.
http://bugzilla.suse.com/show_bug.cgi?id=1136584 http://bugzilla.suse.com/show_bug.cgi?id=1136584#c7
--- Comment #7 from Michal Kubeček mkubecek@suse.com --- For the record, --no-service is also sufficient with 0.165.4 (current version in Leap 15.1).
http://bugzilla.suse.com/show_bug.cgi?id=1136584 http://bugzilla.suse.com/show_bug.cgi?id=1136584#c8
Jiri Slaby jslaby@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |IN_PROGRESS
--- Comment #8 from Jiri Slaby jslaby@suse.com --- The change is pending in users/jslaby/scripts/for-next.
http://bugzilla.suse.com/show_bug.cgi?id=1136584 http://bugzilla.suse.com/show_bug.cgi?id=1136584#c9
--- Comment #9 from Swamp Workflow Management swamp@suse.de --- This is an autogenerated message for OBS integration: This bug (1136584) was mentioned in https://build.opensuse.org/request/show/755560 Factory / osc
http://bugzilla.suse.com/show_bug.cgi?id=1136584 http://bugzilla.suse.com/show_bug.cgi?id=1136584#c10
Jiri Slaby jslaby@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |FIXED
--- Comment #10 from Jiri Slaby jslaby@suse.com --- (In reply to Jiri Slaby from comment #8)
The change is pending in users/jslaby/scripts/for-next.
Merged.
http://bugzilla.suse.com/show_bug.cgi?id=1136584 http://bugzilla.suse.com/show_bug.cgi?id=1136584#c12
Zsolt KALMAR Zsolt.Kalmar@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |Zsolt.Kalmar@suse.com Resolution|FIXED |---
--- Comment #12 from Zsolt KALMAR Zsolt.Kalmar@suse.com --- According to QA tests, in the version 0.167.2-3.12.1 this isse has still not fixed. The test report can be found here:
http://qam.suse.de/testreports/SUSE:Maintenance:14199:212825/log
Can you please have a look?
http://bugzilla.suse.com/show_bug.cgi?id=1136584 http://bugzilla.suse.com/show_bug.cgi?id=1136584#c13
--- Comment #13 from Michal Kubeček mkubecek@suse.com --- FIXED was wrong resolution. The actual resolution was that with newer osc, one also needs to add --no-service so we updated our scripts to include that option. It would be IMHO more appropriate to close as RESOLVED/WORKAROUND.
http://bugzilla.suse.com/show_bug.cgi?id=1136584 http://bugzilla.suse.com/show_bug.cgi?id=1136584#c14
--- Comment #14 from Michal Kubeček mkubecek@suse.com --- (In reply to Michal Kubeček from comment #13)
It would be IMHO more appropriate to close as RESOLVED/WORKAROUND.
...which bugzilla no longer offers, apparently.
http://bugzilla.suse.com/show_bug.cgi?id=1136584
Maintenance Robot maint-coord+maintenance_robot@suse.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Whiteboard| |ibs:running:14199:important
http://bugzilla.suse.com/show_bug.cgi?id=1136584 http://bugzilla.suse.com/show_bug.cgi?id=1136584#c15
--- Comment #15 from Swamp Workflow Management swamp@suse.de --- SUSE-RU-2020:0627-1: An update that has 5 recommended fixes can now be installed.
Category: recommended (important) Bug References: 1136584,1137477,1154972,1155953,1156501 CVE References: Sources used: SUSE Linux Enterprise Module for Development Tools 15-SP1 (src): osc-0.167.2-3.12.1
NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
http://bugzilla.suse.com/show_bug.cgi?id=1136584
Maintenance Robot maint-coord+maintenance_robot@suse.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|ibs:running:14199:important |
http://bugzilla.suse.com/show_bug.cgi?id=1136584 http://bugzilla.suse.com/show_bug.cgi?id=1136584#c16
Michal Kubeček mkubecek@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |WONTFIX
--- Comment #16 from Michal Kubeček mkubecek@suse.com --- With WORKAROUND gone, let's close to WONTFIX which seems most appropriate.
http://bugzilla.suse.com/show_bug.cgi?id=1136584 http://bugzilla.suse.com/show_bug.cgi?id=1136584#c17
--- Comment #17 from Swamp Workflow Management swamp@suse.de --- openSUSE-RU-2020:0344-1: An update that has 5 recommended fixes can now be installed.
Category: recommended (important) Bug References: 1136584,1137477,1154972,1155953,1156501 CVE References: Sources used: openSUSE Leap 15.1 (src): osc-0.167.2-lp151.2.9.1
https://bugzilla.suse.com/show_bug.cgi?id=1136584 https://bugzilla.suse.com/show_bug.cgi?id=1136584#c19
--- Comment #19 from Swamp Workflow Management swamp@suse.de --- SUSE-SU-2022:4351-1: An update that solves two vulnerabilities, contains one feature and has 22 fixes is now available.
Category: security (important) Bug References: 1089025,1097996,1122675,1125243,1126055,1126058,1127932,1129757,1129889,1131512,1136584,1137477,1138165,1138977,1140697,1142518,1142662,1144211,1154972,1155953,1156501,1160446,1166537,1173926 CVE References: CVE-2019-3681,CVE-2019-3685 JIRA References: OBS-203 Sources used: SUSE Linux Enterprise Software Development Kit 12-SP5 (src): osc-0.182.0-15.12.1
NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.