http://bugzilla.novell.com/show_bug.cgi?id=496827 Summary: osc build on Ubuntu [/Debian-based distro] fails trying to run /bin/rpm Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: BuildService AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jnieuwenhuizen@novell.com QAContact: adrian@novell.com CC: michael.meeks@novell.com Found By: --- $ osc build mingw32-cairomm.spec Building mingw32-cairomm.spec for openSUSE_Factory/x86_64 Getting buildinfo from server Updating cache of required packages Verifying integrity of cached packages Traceback (most recent call last): File "/usr/bin/osc", line 12, in <module> r = babysitter.run(osccli) File "/usr/lib/python2.6/dist-packages/osc/babysitter.py", line 40, in run return prg.main() File "/usr/lib/python2.6/dist-packages/osc/cmdln.py", line 255, in main return self.cmd(args) File "/usr/lib/python2.6/dist-packages/osc/cmdln.py", line 278, in cmd retval = self.onecmd(argv) File "/usr/lib/python2.6/dist-packages/osc/cmdln.py", line 394, in onecmd return self._dispatch_cmd(handler, argv) File "/usr/lib/python2.6/dist-packages/osc/cmdln.py", line 1069, in _dispatch_cmd return handler(argv[0], opts, *args) File "/usr/lib/python2.6/dist-packages/osc/commandline.py", line 1937, in do_build return osc.build.main(opts, args) File "/usr/lib/python2.6/dist-packages/osc/build.py", line 389, in main verify_pacs([ i.fullfilename for i in bi.deps ]) File "/usr/lib/python2.6/dist-packages/osc/fetch.py", line 149, in verify_pacs stderr=subprocess.STDOUT, close_fds=True).stdout File "/usr/lib/python2.6/subprocess.py", line 595, in __init__ errread, errwrite) File "/usr/lib/python2.6/subprocess.py", line 1092, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory It turns out that /usr/lib/python2.6/dist-packages/osc/fetch.py blindly invokes "/bin/rpm -K" while Debian/Ubuntu's rpm lives at /usr/bin/rpm. After removing the /bin/ part, osc prints has rpm print something about alien: Building mingw32-cairomm.spec for openSUSE_Factory/x86_64 Getting buildinfo from server Updating cache of required packages Verifying integrity of cached packages The following package could not be verified: rpm: To install rpm packages on Debian systems, use alien. See README.Debian. It turns out that using --no-verify works, ie osc build --no-verify mingw32-cairomm -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.