Mailinglist Archive: opensuse-buildservice (258 mails)

< Previous Next >
[opensuse-buildservice] --prefer-pkgs option for osc build
  • From: "Zhang, Vivian" <vivian.zhang@xxxxxxxxx>
  • Date: Mon, 30 Aug 2010 15:30:09 +0800
  • Message-id: <625BA99ED14B2D499DC4E29D8138F15044114FE598@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Hi, all
I tried to use -prefer-pkgs options for osc build but failed:
#osc build -p /var/tmp/buildcheck-atk/RPM --no-verify --clean standard i586
Scanning the following dirs for local packages: /var/tmp/buildcheck-atk/RPM
Getting buildinfo from server and store to
Server returned an error: HTTP Error 400: Bad Request
Remote error: Can't use an undefined value as a HASH reference at
build/ line 392.

I checked the code and found that issue might be the wrong build_descr_data.
if opts.prefer_pkgs:
print 'Scanning the following dirs for local packages: %s' % ',
prefer_pkgs, cpio = get_prefer_pkgs(opts.prefer_pkgs, arch, build_type)
cpio.add(os.path.basename(build_descr), build_descr_data)
build_descr_data = cpio.get()
#print build_descr_data
/sbin/ldconfig /sbin/ldconfig /sbin/ldconfig /sbin/ldconfig glib2 >= 2.0.0
rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
P:atk.i586-0/0/0: atk = 1.30.0-10.1 atk(x86-32) = 1.30.0-10.1
R:atk-devel.i586-0/0/0: /usr/bin/pkg-config atk = 1.30.0-10.1 glib2-devel >=
2.0.0 pkgconfig(gobject-2.0) rpmlib(CompressedFileNames) <=
3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(VersionedDependencies)
<= 3.0.3-1
P:atk-devel.i586-0/0/0: pkgconfig(atk) = 1.30.0 atk-devel = 1.30.0-10.1
atk-devel(x86-32) =
%define python_sitearch %(%{__python} -c "from distutils.sysconfig import
get_python_lib; print get_python_lib(1)")}

%define atk_version 1.29.2
%define gtk2_version 2.10.0
%define gail_version 1.9.0
%define libbonobo_version 2.4.0
%define orbit2_version 2.6.0
%define pango_version 1.2.0
Summary: Assistive Technology Service Provider Interface
Name: at-spi
Version: 1.30.0
Release: 1
License: LGPLv2+
Group: System/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%files python


Then I make a workaround to comment out these two lines and it works ok.
#cpio.add(os.path.basename(build_descr), build_descr_data)
#build_descr_data = cpio.get()
Does the output of build_descr_data above is expected and is it safe to comment
out the code to not adding/checking the deps info

< Previous Next >