openSUSE Build Service (Давайте вместе разбираться.)

openSUSE, SUSE Linux Enterprise

Модератор: Модераторы разделов

Lazy_Kent
Сообщения: 709
Статус: Ленивый
ОС: openSUSE (Xfce)

Re: openSUSE Build Service

Сообщение Lazy_Kent »

Попробовал. Это должно так выглядеть:

Код: Выделить всё

%build
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make %{?_smp_mflags}

%install
cd build
make install DESTDIR=%{buildroot}


Поле этого в лог сборки загляните. Нужно кое-что подправить.

Забыл. Нужно добавить:
BuildRequires: gcc-c++
Спасибо сказали:
winhex
Сообщения: 223
ОС: Debian

Re: openSUSE Build Service

Сообщение winhex »

Lazy_Kent, снимаю шляпу. После ваших правок все чудным образом собралось как локально, так и в OBS.

Только не понял вот про это:
Поле этого в лог сборки загляните. Нужно кое-что подправить.

Что именно нужно подправить?

Еще раз большое спасибо за помощь Вам и k0da
Спасибо сказали:
Lazy_Kent
Сообщения: 709
Статус: Ленивый
ОС: openSUSE (Xfce)

Re: openSUSE Build Service

Сообщение Lazy_Kent »

Если стремиться к идеалу, то надо бы устранить все предупреждения rpmlint.

W: source-or-patch-not-compressed bz2 pdd-by-0.3.tar.gz
Исходник должен быть сжат bzip2.
Можете перепаковать и загрузить заново.

Код: Выделить всё

bznew pdd-by-0.3.tar.gz
и исправить

Код: Выделить всё

Source0:   %{name}-%{version}.tar.bz2


W: non-standard-group Applications/Productivity
Если я правильно понимаю, это обучающая программа

Код: Выделить всё

Group:     Amusements/Teaching/Other


W: no-version-in-last-changelog
Можно вписать в %changelog

Код: Выделить всё

Wed Aug 25 2010 ***** <*****@*****>
- Package for openSUSE - 0.3


W: invalid-spec-name
Спек должен именоваться pdd-by.spec, без версии.

W: explicit-lib-dependency glib2
Убрать:

Код: Выделить всё

Requires: glib2 gtk2
rpm сам определяет зависимости при упаковке.

cmake у вас прописан два раза в BuildRequires. Ещё я не уверен, что нужно указывать минимальные версии требуемых пакетов. При этом ограничении не идёт сборка на oS 11.1. Возможно, вполне нормально соберётся. Это можно только опытным путём установить.
Спасибо сказали:
winhex
Сообщения: 223
ОС: Debian

Re: openSUSE Build Service

Сообщение winhex »

Lazy_Kent, сделал все как вы описали, при этом убрал указание минимальных версий пакетов. Все собралось хорошо, быть может оно и в 11.1 соберется?
Не нашел как в уже существующем проекте собрать под другие платформы, или нужно другой проект делать и в нем собирать?

Кстати, вопрос не по теме, просто интересно. Что побуждает вас использовать:

Код: Выделить всё

ОС: openSUSE 11.1 (KDE 3.5.10)

Чем не подходят более новые версии? :)
Спасибо сказали:
Аватара пользователя
k0da
Бывший модератор
Сообщения: 6043
Статус: SuSE QA Engineer
ОС: Factory

Re: openSUSE Build Service

Сообщение k0da »

winhex
11.1 устарела. Для 11.1 используйте локальнй билд
Fury in my eyes, sword on my side
Afro on my head, I'm a black Samurai
Number One, I bring my whole nation alive
Escape death, to become immortalized
Спасибо сказали:
Lazy_Kent
Сообщения: 709
Статус: Ленивый
ОС: openSUSE (Xfce)

Re: openSUSE Build Service

Сообщение Lazy_Kent »

winhex писал(а):
26.08.2010 16:17
Не нашел как в уже существующем проекте собрать под другие платформы, или нужно другой проект делать и в нем собирать?
Нужно добавить к проекту репозиторий openSUSE:11.1:Update. Ну и openSUSE:11.2:Update заодно.

winhex писал(а):
26.08.2010 16:17
Кстати, вопрос не по теме, просто интересно. Что побуждает вас использовать:

Код: Выделить всё

ОС: openSUSE 11.1 (KDE 3.5.10)

Чем не подходят более новые версии? :)
Мне очень нравится KDE3 с сопутствующими приложениями. В более новых версиях oS с этим некоторые сложности. Да и не увидел в новых версиях ничего такого, чего бы мне не хватало сейчас. Система работает вполне хорошо, и нет смысла что-то менять.
У меня ещё Factory установлена в тестовых целях. Так что, я в курсе развития.

(k0da) писал(а):11.1 устарела.
До конца года является поддерживаемой системой.
Спасибо сказали:
Аватара пользователя
k0da
Бывший модератор
Сообщения: 6043
Статус: SuSE QA Engineer
ОС: Factory

Re: openSUSE Build Service

Сообщение k0da »

ах точно.. Слегка перепутал ;)
openSUSE 11.1 - December 31st 2010 which is in 128 days.
Fury in my eyes, sword on my side
Afro on my head, I'm a black Samurai
Number One, I bring my whole nation alive
Escape death, to become immortalized
Спасибо сказали:
Lazy_Kent
Сообщения: 709
Статус: Ленивый
ОС: openSUSE (Xfce)

Re: openSUSE Build Service

Сообщение Lazy_Kent »

winhex
Вижу, компилируется нормально для всех версий. Всплыла ошибка в принадлежности директории.

Я бы заменил

Код: Выделить всё

%dir %{_datadir}/%{name}
%{_datadir}/%{name}/data/*.sql
%{_datadir}/%{name}/ui/*.ui

на одну строку

Код: Выделить всё

%{_datadir}/%{name}

И, думаю, файл README-MacOSX можно выкинуть из списка.
Спасибо сказали:
winhex
Сообщения: 223
ОС: Debian

Re: openSUSE Build Service

Сообщение winhex »

Lazy_Kent, все собралось хорошо. Есть несколько предупреждений, но вроде бы ничего критичного. OBS - замечательная вещь. :)
Спасибо сказали:
Lazy_Kent
Сообщения: 709
Статус: Ленивый
ОС: openSUSE (Xfce)

Re: openSUSE Build Service

Сообщение Lazy_Kent »

winhex писал(а):
27.08.2010 12:27
Есть несколько предупреждений, но вроде бы ничего критичного. OBS - замечательная вещь. :)

У вас почему-то отключен Debuginfo Flag. Поэтому и пишет

Код: Выделить всё

W: unstripped-binary-or-object /usr/bin/pdd-by

Включается в меню Repositories.
Спасибо сказали:
Xandry
Сообщения: 980
ОС: openSUSE

Re: openSUSE Build Service

Сообщение Xandry »

Тоже проблема с OBS. Собираю mp3unicode под 11.3 i586. На реальной системе собирается без проблем, в obs всё заканчивается на
configure: error: Cannot locate taglib

Полный лог:

Код: Выделить всё

Using BUILD_ROOT=/abuild/root_7/.mount
Using BUILD_ARCH=i586:i486:i386
Doing xen build in /dev/abuild/7_root


build12 started "build mp3unicode.spec" at Tue Aug 31 16:02:35 UTC 2010.

Building mp3unicode for project 'home:xandry' repository 'openSUSE_11.3' arch 'i586' srcmd5 'f3be5eefa31ddf8cace8dd8f09dce245'

processing specfile /abuild/root_7/.build-srcdir/mp3unicode.spec ...
running changelog2spec --target rpm --file /abuild/root_7/.build-srcdir/mp3unicode.spec
init_buildsystem --cachedir /var/cache/build --prepare --clean --rpmlist  /abuild/root_7/.build.rpmlist  /abuild/root_7/.build-srcdir/mp3unicode.spec build rpmlint-Factory ...
preinstalling aaa_base...
preinstalling acl...
preinstalling attr...
preinstalling bash...
preinstalling coreutils...
preinstalling diffutils...
preinstalling filesystem...
preinstalling fillup...
preinstalling glibc...
preinstalling grep...
preinstalling insserv...
preinstalling libacl...
preinstalling libattr...
preinstalling libbz2-1...
preinstalling libgcc45...
preinstalling libxcrypt...
preinstalling m4...
preinstalling libncurses5...
preinstalling pam...
preinstalling permissions...
preinstalling libreadline6...
preinstalling rpm...
preinstalling sed...
preinstalling tar...
preinstalling zlib...
preinstalling libselinux1...
preinstalling liblzma0...
preinstalling libcap2...
preinstalling libpcre0...
preinstalling libpopt0...
preinstalling libelf1...
preinstalling liblua5_1...
preinstalling util-linux...
preinstalling perl-base...
preinstalling libdb-4_5...
preinstalling libsepol1...
preinstalling libblkid1...
preinstalling libuuid1...
copying packages...
reordering...cycle: libcrack2 -> cracklib
  breaking dependency libcrack2 -> cracklib
done
booting XEN kernel ...
linux64 xm create -c /var/run/bsworker_7/build/xen.conf  name=build:7_root memory=1500 disk=phy:/dev/mapper/abuild-7_root,hda1,w  disk=phy:/dev/mapper/abuild-7_swap,hda2,w extra=quiet init=/.build/build  elevator=noop panic=1 console=ttyS0
Using config file "/var/run/bsworker_7/build/xen.conf".
Started domain build:7_root
PCI: Fatal: No config space access function found
i8042.c: No controller found.
doing fast boot
FATAL: Module ext4 not found.
Creating device nodes with udev
Boot logging started on /dev/xvc0(/dev/console) at Tue Aug 31 16:02:47 2010

Waiting for device /dev/hda1 to appear:  ok

fsck 1.41.1 (01-Sep-2008)

[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -a /dev/hda1 

/dev/hda1: clean, 2552/1024000 files, 130620/4096000 blocks

fsck succeeded. Mounting root device read-only.

Mounting root /dev/hda1

mount -o ro,defaults -t ext3 /dev/hda1 /root

mount: can't find /root/proc in /etc/fstab or /etc/mtab
Warning: failed to load Config_git.pl, something strange about this perl...
Warning: failed to load Config_git.pl, something strange about this perl...
2nd stage started in virtual machine
machine type: x86_64
switching personality to 134217736...
Warning: failed to load Config_git.pl, something strange about this perl...
2nd stage started in virtual machine
machine type: i686
swapon on /dev/hda2
swapon: /dev/hda2: found swap signature: version 1, page-size 4, same byte order
swapon: /dev/hda2: pagesize=4096, swapsize=2097152000, devsize=2097152000
mount: none already mounted or //proc busy
mount: according to mtab, none is already mounted on /proc
logging output to //.build.log...
processing specfile /.build-srcdir/mp3unicode.spec ...
init_buildsystem --cachedir /var/cache/build /.build-srcdir/mp3unicode.spec build rpmlint-Factory ...
running aaa_base preinstall script
running aaa_base postinstall script
Updating etc/sysconfig/language...
Updating etc/sysconfig/backup...
Updating etc/sysconfig/boot...
Updating etc/sysconfig/kernel...
Updating etc/sysconfig/suseconfig...
Updating etc/sysconfig/clock...
Updating etc/sysconfig/proxy...
Updating etc/sysconfig/windowmanager...
Updating etc/sysconfig/sysctl...
Updating etc/sysconfig/cron...
Updating etc/sysconfig/news...
Updating etc/sysconfig/shutdown...
Updating etc/passwd...unchanged
Updating etc/group...unchanged
Updating etc/shadow...new
initializing rpm db...
installing filesystem-11.3-1.2
installing pcre-7.9.0-6.7
installing terminfo-base-5.7-3.39
installing glibc-2.11.2-2.4
installing fillup-1.42-250.1
installing gdbm-1.8.3-373.4
installing libattr-2.4.44-7.1
installing libaudit1-2.0.4-4.1
installing libbz2-1-1.0.5-38.6
installing libcap2-2.16-9.1
installing libdb-4_5-4.5.20-99.13
installing libelf1-0.147-1.19
installing libgmp3-4.3.2-1.13
installing libltdl7-2.2.6b-5.4
installing liblua5_1-5.1.4-10.4
installing liblzma0-4.999.9beta-3.7
installing libnscd-2.0.2-113.1
installing libpopt0-1.13-6.4
installing libselinux1-2.0.91-4.2
installing libsepol1-2.0.41-2.10
installing libxcrypt-3.0.3-4.1
installing net-tools-1.60-741.1
installing patch-2.6.1.81-1.6
installing perl-base-5.12.1-1.8
installing zlib-1.2.3-141.1
installing libncurses5-5.7-3.39
installing libpcre0-7.9.0-6.7
installing build-mkbaselibs-2010.06.29-1.2
installing update-alternatives-1.14.19-26.1
installing attr-2.4.44-7.1
installing file-5.04-2.5
installing libacl-2.2.48-8.1
installing libreadline6-6.1-8.1
installing libzio-0.99-7.1
installing perl-5.12.1-1.8
installing acl-2.2.48-8.1
installing bash-4.1-8.1
installing build-compare-2009.10.14-16.1
installing brp-check-suse-1.0-29.1
installing insserv-1.14.0-9.1
installing libgcc45-4.5.0_20100604-1.12
installing libgomp45-4.5.0_20100604-1.12
installing libuuid1-2.17.2-5.3
installing bzip2-1.0.5-38.6
installing libmpfr1-2.4.2-2.14
installing libopenssl1_0_0-1.0.0-5.4
installing less-436-6.1
installing info-4.13a-3.1
installing cpio-2.11-3.1
installing diffutils-2.8.7-150.1
installing gzip-1.3.13-1.28
installing libblkid1-2.17.2-5.3
installing libmpc2-0.8.1-2.8
installing libstdc++45-4.5.0_20100604-1.12
installing m4-1.4.13-6.1
installing make-3.81-135.1
installing sed-4.1.5-134.1
installing tar-1.23-1.14
installing binutils-2.20.0-6.10
installing findutils-4.4.2-4.1
installing gawk-3.1.6-31.1
installing grep-2.5.4-7.1
installing texinfo-4.13a-3.1
installing autoconf-2.65-3.2
installing gettext-runtime-0.17-67.8
installing libgmpxx4-4.3.2-1.13
installing libtool-2.2.6b-5.4
installing taglib-1.6.2-1.9
installing binutils-gold-2.20.0-6.10
installing automake-1.11.1-1.5
installing libppl7-0.10.2-5.1
installing libppl_c2-0.10.2-5.1
installing libcloog0-0.15.8+ppl-1.8
installing cpp45-4.5.0_20100604-1.12
installing cpp-4.5-4.2
installing libcrack2-2.8.16-3.22
installing cracklib-2.8.16-3.22
installing pam-1.1.1.90-1.6
installing login-3.40-2.2
installing coreutils-7.1-10.1
installing linux-glibc-devel-2.6.32-3.3
installing glibc-locale-2.11.2-2.4
installing timezone-2010h-1.9
WARNING: Not updating /etc/localtime with new zone file
installing cvs-1.12.12-160.1
installing sysvinit-tools-2.88-9.4
installing cyrus-sasl-2.1.23-11.1
installing psmisc-22.7-13.1
installing groff-1.18.1.1-176.1
Updating etc/sysconfig/suseconfig...
installing libldap-2_4-2-2.4.21-9.1
installing glibc-devel-2.11.2-2.4
installing gettext-tools-0.17-67.8
installing man-2.5.2-28.1
Updating etc/sysconfig/cron...
installing aaa_base-11.3-7.2
Updating etc/sysconfig/language...
Updating etc/sysconfig/backup...
Updating etc/sysconfig/boot...
Updating etc/sysconfig/kernel...
Updating etc/sysconfig/suseconfig...
Updating etc/sysconfig/clock...
Updating etc/sysconfig/proxy...
Updating etc/sysconfig/windowmanager...
Updating etc/sysconfig/sysctl...
Updating etc/sysconfig/cron...
Updating etc/sysconfig/news...
Updating etc/sysconfig/shutdown...
Updating etc/passwd...unchanged
Updating etc/group...unchanged
Updating etc/shadow...unchanged
installing libbz2-devel-1.0.5-38.6
installing libstdc++45-devel-4.5.0_20100604-1.12
installing netcfg-11.1-5.1
warning: /etc/HOSTNAME created as /etc/HOSTNAME.rpmnew
installing permissions-2010.04.23.1140-1.6
Updating etc/sysconfig/security...
installing gcc45-4.5.0_20100604-1.12
installing libstdc++-devel-4.5-4.2
installing gcc-4.5-4.2
installing post-build-checks-1.0-77.1
installing pam-modules-11.2-8.1
installing util-linux-2.17.2-5.3
installing rpm-4.8.0-4.4
Updating etc/sysconfig/services...
installing taglib-devel-1.6.2-1.9
installing rpmlint-mini-0.95-1.27
installing pwdutils-3.2.10-1.4
installing rpmlint-Factory-1.0-58.1
removing nis flags from //etc/nsswitch.conf...
now finalizing build dir...
Starting SuSEconfig, the SuSE Configuration Tool...
Running in full featured mode.
Reading /etc/sysconfig and updating the system...
Executing /sbin/conf.d/SuSEconfig.groff...
Executing /sbin/conf.d/SuSEconfig.permissions...
Finished.
-----------------------------------------------------------------
I have the following modifications for mp3unicode.spec:
7c7
< Release:    2
---
> Release:    27.1
-----------------------------------------------------------------
----- building mp3unicode.spec (user abuild)
-----------------------------------------------------------------
-----------------------------------------------------------------
+ exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --define  'disturl  obs://build.opensuse.org/home:xandry/openSUSE_11.3/f3be5eefa31ddf8cace8dd8f09dce245-mp3unicode'  /usr/src/packages/SOURCES/mp3unicode.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.nr4MjS
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd /usr/src/packages/BUILD
+ rm -rf mp3unicode-1.2
+ /usr/bin/bzip2 -dc /usr/src/packages/SOURCES/mp3unicode-1.2.tar.bz2
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd mp3unicode-1.2
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.y7LYXF
+ umask 022
+ cd /usr/src/packages/BUILD
+ /bin/rm -rf /usr/src/packages/BUILDROOT/mp3unicode-1.2-27.1.i386
++ dirname /usr/src/packages/BUILDROOT/mp3unicode-1.2-27.1.i386
+ /bin/mkdir -p /usr/src/packages/BUILDROOT
+ /bin/mkdir /usr/src/packages/BUILDROOT/mp3unicode-1.2-27.1.i386
+ cd mp3unicode-1.2
+ CFLAGS='-fomit-frame-pointer -fmessage-length=0 -O2 -Wall  -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables  -fasynchronous-unwind-tables'
+ export CFLAGS
+ CXXFLAGS='-fomit-frame-pointer -fmessage-length=0 -O2 -Wall  -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables  -fasynchronous-unwind-tables'
+ export CXXFLAGS
+ FFLAGS='-fomit-frame-pointer -fmessage-length=0 -O2 -Wall  -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables  -fasynchronous-unwind-tables'
+ export FFLAGS
+ ./configure --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu  --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin  --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share  --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/lib  --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man  --infodir=/usr/share/info -q --disable-rpath
configure: error: Cannot locate taglib
error: Bad exit status from /var/tmp/rpm-tmp.y7LYXF (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.y7LYXF (%build)
SysRq : Power Off
Power down.

Спек:

Код: Выделить всё

%define         version         1.2
%define         prefix          /usr

Summary:        Convert MP3 tags into unicode
Name:           mp3unicode
Version:        %{version}
Release:        2
License:        GPL-2
Vendor:         http://www.kde-apps.org/content/show.php?content=41784
Group:          Productivity/Multimedia/Sound/Utilities
Url:            http://www.kde-apps.org/content/show.php?content=41784
Source:         http://mp3unicode.yellowsite.ru//%{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  taglib-devel
Requires:       taglib
Provides:       %{name} = %{version}

%description
Allow converting MP3 tags into unicode.

%prep
%setup -q

%build
%configure -q \
        --disable-rpath \

make %{?_smp_mflags}

%install
if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi

%makeinstall

%clean
if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi

%files
%defattr(-,root,root)
%doc README COPYING
%{_bindir}/*
%{_mandir}/man1/%{name}.1.gz

%changelog
* Tue Aug 31 2010 Alexander Mitynin <avm-xandry@yandex.ru>
- Initial build for OpenSuSE 11.3

Проект - https://build.opensuse.org/package/show?pac...t=home%3Axandry
Получается, что система в obs имеет установленные taglib и taglib-devel, но не видит их. Как такое может быть?
Спасибо сказали:
Lazy_Kent
Сообщения: 709
Статус: Ленивый
ОС: openSUSE (Xfce)

Re: openSUSE Build Service

Сообщение Lazy_Kent »

Код: Выделить всё

BuildRequires: gcc-c++ pkg-config

Уберите -q из %configure. Тогда будет виден лог конфигурирования с ошибками.
--disable-rpath, думаю, тоже не нужен.
Спасибо сказали:
Xandry
Сообщения: 980
ОС: openSUSE

Re: openSUSE Build Service

Сообщение Xandry »

Lazy_Kent писал(а):
31.08.2010 22:46

Код: Выделить всё

BuildRequires: gcc-c++ pkg-config

Уберите -q из %configure. Тогда будет виден лог конфигурирования с ошибками.
--disable-rpath, думаю, тоже не нужен.

Код: Выделить всё

BuildRequires: gcc-c++ pkg-config
оказалось достаточно. Ну и файлы неупакованные прописал. Пакеты собираются, остались только несерьёзные предупреждения от rpmlint. Которых опять же нет на реальной машине... :huh:
Спасибо сказали:
Аватара пользователя
k0da
Бывший модератор
Сообщения: 6043
Статус: SuSE QA Engineer
ОС: Factory

Re: openSUSE Build Service

Сообщение k0da »

Xandry
а rpmlint на реальной машине запускается? ;)
Fury in my eyes, sword on my side
Afro on my head, I'm a black Samurai
Number One, I bring my whole nation alive
Escape death, to become immortalized
Спасибо сказали:
Lazy_Kent
Сообщения: 709
Статус: Ленивый
ОС: openSUSE (Xfce)

Re: openSUSE Build Service

Сообщение Lazy_Kent »

Xandry писал(а):
02.09.2010 19:02
остались только несерьёзные предупреждения от rpmlint

Можно исправить.

Код: Выделить всё

W: useless-provides mp3unicode

Убрать:

Код: Выделить всё

Provides:   %{name} = %{version}


Код: Выделить всё

W: files-duplicate /usr/share/doc/packages/mp3unicode/README /usr/share/doc/mp3unicode/README
W: files-duplicate /usr/share/doc/mp3unicode/COPYING /usr/share/doc/packages/mp3unicode/COPYING


Я бы удалил /usr/share/doc/mp3unicode/COPYING и /usr/share/doc/mp3unicode/README
Они устанавливаются в /usr/share/doc/packages/mp3unicode/

После %makeinstall нужно прописать:

Код: Выделить всё

%__rm -f %{buildroot}%{_datadir}/doc/mp3unicode/{COPYING,README}


Код: Выделить всё

W: explicit-lib-dependency taglib

Убрать:

Код: Выделить всё

Requires:   taglib


Код: Выделить всё

W: no-version-in-last-changelog

Игнорируем.
Спасибо сказали:
Xandry
Сообщения: 980
ОС: openSUSE

Re: openSUSE Build Service

Сообщение Xandry »

k0da писал(а):
02.09.2010 21:13
Xandry
а rpmlint на реальной машине запускается? ;)

Ну да.
> rpmlint ~/rpm/SPECS/mp3unicode.spec
0 packages and 1 specfiles checked; 0 errors, 0 warnings.

Lazy_Kent
Спасибо, теперь всё гладко.
Спасибо сказали:
Lazy_Kent
Сообщения: 709
Статус: Ленивый
ОС: openSUSE (Xfce)

Re: openSUSE Build Service

Сообщение Lazy_Kent »

Вообще-то rpmlint надо натравливать на собранный пакет.
Спасибо сказали:
Xandry
Сообщения: 980
ОС: openSUSE

Re: openSUSE Build Service

Сообщение Xandry »

Lazy_Kent писал(а):
03.09.2010 11:24
Вообще-то rpmlint надо натравливать на собранный пакет.

Ну на спек-файлы ведь тоже можно.

Ещё пара вопросов: я собрал qsmmp, который требует для сборки пакеты не имеющиеся в стандартных репозиториях. Что можно делать в этом случае? Слинковать вручную с тем же qmmp-devel?

Пакеты для packman собираются в OBS?
Спасибо сказали:
Аватара пользователя
k0da
Бывший модератор
Сообщения: 6043
Статус: SuSE QA Engineer
ОС: Factory

Re: openSUSE Build Service

Сообщение k0da »

Xandry
пакман собирается в своем BS.

Для сборки относительно не стандартных библиотек их следует слинковать в домашний проект.
Fury in my eyes, sword on my side
Afro on my head, I'm a black Samurai
Number One, I bring my whole nation alive
Escape death, to become immortalized
Спасибо сказали:
Lazy_Kent
Сообщения: 709
Статус: Ленивый
ОС: openSUSE (Xfce)

Re: openSUSE Build Service

Сообщение Lazy_Kent »

Насколько я понимаю, из Packman не получится слинковать что-либо.

На всякий случай:
В OBS запрещено собирать пакеты имеющие патентные ограничения. Это включает всё семейство MPEG.
http://en.opensuse.org/openSUSE:Build_Serv...ation_blacklist
Спасибо сказали:
winhex
Сообщения: 223
ОС: Debian

Re: openSUSE Build Service

Сообщение winhex »

Подскажите, пытаюсь пересобрать для Centos 6 пакет от Fedora 15. Загрузил в OBS исходники и spec. Сборка пошла, но завершилась ошибкой:

Код: Выделить всё

Using BUILD_ROOT=/var/cache/obs/worker/root_6/.mount
Using BUILD_ARCH=i586:i486:i386
Doing xen build in /var/cache/obs/worker/root_6/root


build18 started "build scantailor.spec" at Mon May 28 15:32:31 UTC 2012.

Building scantaiolor for project 'home:NowdUph' repository 'CentOS_CentOS-6' arch 'i586' srcmd5 '0e10438922e70fd1db5102a3e6d86732'

processing specfile /var/cache/obs/worker/root_6/.build-srcdir/scantailor.spec ...
running changelog2spec --target rpm --file /var/cache/obs/worker/root_6/.build-srcdir/scantailor.spec
init_buildsystem --cachedir /var/cache/build --prepare --clean --rpmlist /var/cache/obs/worker/root_6/.build.rpmlist /var/cache/obs/worker/root_6/.build-srcdir/scantailor.spec build rpmlint-Factory ...
[1/50] preinstalling acl...
[2/50] preinstalling attr...
[3/50] preinstalling bash...
[4/50] preinstalling coreutils...
[5/50] preinstalling diffutils...
[6/50] preinstalling filesystem...
[7/50] preinstalling glibc...
[8/50] preinstalling grep...
[9/50] preinstalling libacl...
[10/50] preinstalling libattr...
[11/50] preinstalling libgcc...
[12/50] preinstalling m4...
[13/50] preinstalling ncurses...
[14/50] preinstalling pam...
[15/50] preinstalling file-libs...
[16/50] preinstalling db4...
[17/50] preinstalling popt...
[18/50] preinstalling readline...
[19/50] preinstalling rpm...
[20/50] preinstalling sed...
[21/50] preinstalling tar...
[22/50] preinstalling zlib...
[23/50] preinstalling ncurses-libs...
[24/50] preinstalling libcap...
[25/50] preinstalling rpm-libs...
[26/50] preinstalling pcre...
[27/50] preinstalling info...
[28/50] preinstalling libselinux...
[29/50] preinstalling sqlite...
[30/50] preinstalling lua...
[31/50] preinstalling elfutils-libelf...
[32/50] preinstalling findutils...
[33/50] preinstalling neon...
[34/50] preinstalling openssl...
[35/50] preinstalling krb5-libs...
[36/50] preinstalling e2fsprogs-libs...
[37/50] preinstalling expat...
[38/50] preinstalling bzip2-libs...
[39/50] preinstalling libstdc++...
[40/50] preinstalling setup...
[41/50] preinstalling libsepol...
[42/50] preinstalling perl...
[43/50] preinstalling policycoreutils...
[44/50] preinstalling nss...
[45/50] preinstalling nss-util...
[46/50] preinstalling nspr...
[47/50] preinstalling xz-libs...
[48/50] preinstalling nss-softokn-freebl...
[49/50] preinstalling nss-softokn...
[50/50] preinstalling shadow-utils...
[1/6] preinstalling perl...
[2/6] preinstalling util-linux-ng...
[3/6] preinstalling perl-libs...
[4/6] preinstalling device-mapper...
[5/6] preinstalling libblkid...
[6/6] preinstalling libuuid...
copying packages...
reordering...cycle: glibc -> glibc-common -> bash
  breaking dependency glibc-common -> bash
cycle: glibc -> glibc-common
  breaking dependency glibc -> glibc-common
cycle: glibc -> nss-softokn-freebl
  breaking dependency nss-softokn-freebl -> glibc
cycle: coreutils -> coreutils-libs
  breaking dependency coreutils -> coreutils-libs
cycle: coreutils -> pam
  breaking dependency coreutils -> pam
cycle: initscripts -> util-linux-ng -> udev
  breaking dependency initscripts -> util-linux-ng
cycle: glib2 -> gamin
  breaking dependency glib2 -> gamin
cycle: initscripts -> udev
  breaking dependency initscripts -> udev
cycle: util-linux-ng -> udev
  breaking dependency udev -> util-linux-ng
cycle: dracut-kernel -> dracut -> plymouth -> libdrm -> kernel
  breaking dependency dracut -> plymouth
cycle: perl -> perl-libs
  breaking dependency perl -> perl-libs
cycle: perl-Module-Pluggable -> perl
  breaking dependency perl -> perl-Module-Pluggable
cycle: perl -> perl-Pod-Simple
  breaking dependency perl -> perl-Pod-Simple
cycle: perl -> perl-version
  breaking dependency perl -> perl-version
cycle: libproxy-bin -> libproxy
  breaking dependency libproxy -> libproxy-bin
cycle: libproxy -> libproxy-python
  breaking dependency libproxy -> libproxy-python
cycle: python -> python-libs
  breaking dependency python -> python-libs
cycle: nss -> nss-sysinit
  breaking dependency nss-sysinit -> nss
cycle: rpm -> rpm-libs
  breaking dependency rpm -> rpm-libs
cycle: phonon-backend-gstreamer -> qt-x11
  breaking dependency qt-x11 -> phonon-backend-gstreamer
done
booting XEN kernel ...
linux64 xm create -c /var/tmp/build.xen.conf-32v0ZRXRT name=build_6 disk=phy:/dev/dm-10,hda1,w disk=phy:/dev/dm-11,hda2,w extra=quiet init=/.build/build elevator=noop panic=1 console=ttyS0
Using config file "/var/tmp/build.xen.conf-32v0ZRXRT".
Started domain build_6 (id=15007)
[    0.228382] PCI: Fatal: No config space access function found
[    0.365647] i8042.c: No controller found.
[    0.367600] /usr/src/packages/BUILD/kernel-xen-2.6.37.6/linux-2.6.37/drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
doing fast boot
FATAL: Module kqemu not found.
Creating device nodes with udev
Waiting for device /dev/hda1 to appear:  ok
fsck from util-linux 2.19
[/sbin/fsck.ext4 (1) -- /] fsck.ext4 -a /dev/hda1
/dev/hda1: clean, 6681/897600 files, 180021/3584000 blocks
fsck succeeded. Mounting root device read-only.
Mounting root /dev/hda1
mount -o ro,defaults -t ext4 /dev/hda1 /root
2nd stage started in virtual machine
machine type: x86_64
switching personality to 8...
2nd stage started in virtual machine
machine type: i686
mount: proc already mounted
swapon on /dev/hda2
swapon: /dev/hda2: found swap signature: version 1, page-size 4, same byte order
swapon: /dev/hda2: pagesize=4096, swapsize=2097152000, devsize=2097152000
mount: none already mounted or //proc busy
mount: according to mtab, proc is already mounted on /proc
mount: none already mounted or //dev/pts busy
mount: according to mtab, devpts is already mounted on /dev/pts
logging output to //.build.log...
processing specfile /.build-srcdir/scantailor.spec ...
init_buildsystem --cachedir /var/cache/build /.build-srcdir/scantailor.spec build rpmlint-Factory ...
initializing rpm db...
[1/280] installing ca-certificates-2010.63-3.el6
[2/280] installing kbd-misc-1.15-11.el6
[3/280] installing kernel-firmware-2.6.32-71.el6
[4/280] installing kernel-headers-2.6.32-71.el6
[5/280] installing libX11-common-1.3-2.el6
[6/280] installing libgcc-4.4.4-13.el6
[7/280] installing ncurses-base-5.7-3.20090208.el6
[8/280] installing setup-2.8.14-10.el6
[9/280] installing tzdata-2010l-1.el6
[10/280] installing xml-common-0.6.3-32.el6
[11/280] installing filesystem-2.4.30-2.1.el6
[12/280] installing iso-codes-3.16-2.el6
[13/280] installing basesystem-10.0-4.el6
[14/280] installing nss-softokn-freebl-3.12.7-1.1.el6
[15/280] installing glibc-2.12-1.7.el6
[16/280] installing audit-libs-2.0.4-1.el6
[17/280] installing bzip2-libs-1.0.5-6.1.el6
[18/280] installing dash-0.5.5.1-3.1.el6
[19/280] installing db4-4.7.25-16.el6
[20/280] installing dbus-libs-1.2.24-3.el6
[21/280] installing elfutils-libelf-0.148-1.el6
[22/280] installing expat-2.0.1-9.1.el6
[23/280] installing gdbm-1.8.0-36.el6
[24/280] installing gpm-libs-1.20.6-11.el6
[25/280] installing keyutils-libs-1.4-1.el6
[26/280] installing lcms-libs-1.19-1.el6
[27/280] installing libICE-1.0.6-1.el6
[28/280] installing libXau-1.0.5-1.el6
[29/280] installing libXdmcp-1.0.3-1.el6
[30/280] installing libattr-2.4.44-4.el6
[31/280] installing libcap-ng-0.6.4-3.el6
[32/280] installing libcom_err-1.41.12-3.el6
[33/280] installing libffi-3.0.5-3.2.el6
[34/280] installing libgpg-error-1.7-3.el6
[35/280] installing libjpeg-6b-46.el6
[36/280] installing libogg-1.1.4-2.1.el6
[37/280] installing liboil-0.3.16-4.1.el6
[38/280] installing libtasn1-2.3-3.el6
[39/280] installing libthai-0.1.12-3.el6
[40/280] installing libudev-147-2.29.el6
[41/280] installing libuuid-2.17.2-6.el6
[42/280] installing libvisual-0.4.0-9.1.el6
[43/280] installing pakchois-0.4-3.2.el6
[44/280] installing pixman-0.16.6-1.el6
[45/280] installing pkgconfig-0.23-9.1.el6
[46/280] installing plymouth-core-libs-0.8.3-17.el6.centos
[47/280] installing popt-1.13-7.el6
[48/280] installing strace-4.5.19-1.6.el6
[49/280] installing sysvinit-tools-2.87-3.dsf.el6
[50/280] installing ustr-1.0.4-9.1.el6
[51/280] installing xz-libs-4.999.9-0.3.beta.20091007git.el6
[52/280] installing zlib-1.2.3-25.el6
[53/280] installing libstdc++-4.4.4-13.el6
[54/280] installing ncurses-libs-5.7-3.20090208.el6
[55/280] installing glibc-common-2.12-1.7.el6
[56/280] installing bzip2-devel-1.0.5-6.1.el6
[57/280] installing expat-devel-2.0.1-9.1.el6
[58/280] installing libjpeg-devel-6b-46.el6
[59/280] installing xorg-x11-proto-devel-7.4-35.el6
[60/280] installing attr-2.4.44-4.el6
[61/280] installing bash-4.1.2-3.el6
[62/280] installing chkconfig-1.3.47-1.el6
[63/280] installing cyrus-sasl-lib-2.1.23-8.el6
[64/280] installing db4-utils-4.7.25-16.el6
[65/280] installing e2fsprogs-libs-1.41.12-3.el6
[66/280] installing file-libs-5.04-5.el6
[67/280] installing libacl-2.2.49-4.el6
[68/280] installing libcap-2.16-5.2.el6
[69/280] installing libgcrypt-1.4.5-3.el6
[70/280] installing libpng-1.2.44-1.el6
[71/280] installing libss-1.41.12-3.el6
[72/280] installing libtheora-1.1.0-2.el6
[73/280] installing libvorbis-1.2.3-4.el6
[74/280] installing libxcb-1.5-1.el6
[75/280] installing libxml2-2.7.6-1.el6
[76/280] installing ncurses-5.7-3.20090208.el6
[77/280] installing procps-3.2.8-14.el6
[78/280] installing zlib-devel-1.2.3-25.el6
[79/280] installing boost-date-time-1.41.0-11.el6
[80/280] installing boost-program-options-1.41.0-11.el6
[81/280] installing boost-serialization-1.41.0-11.el6
[82/280] installing boost-signals-1.41.0-11.el6
[83/280] installing boost-system-1.41.0-11.el6
[84/280] installing boost-test-1.41.0-11.el6
[85/280] installing boost-thread-1.41.0-11.el6
[86/280] installing gettext-libs-0.17-16.el6
[87/280] installing gmp-4.3.1-7.el6
[88/280] installing libSM-1.1.0-7.1.el6
[89/280] installing libicu-4.2.1-9.el6
[90/280] installing libnih-1.0.1-6.el6
[91/280] installing libusb-0.1.12-23.el6
[92/280] installing pcre-7.8-3.1.el6
[93/280] installing libmng-1.0.10-4.1.el6
[94/280] installing libproxy-0.3.0-2.el6
[95/280] installing boost-iostreams-1.41.0-11.el6
[96/280] installing elfutils-libs-0.148-1.el6
[97/280] installing libtiff-3.9.4-1.el6
[98/280] installing perl-5.10.1-115.el6
[99/280] installing libtiff-devel-3.9.4-1.el6
[100/280] installing perl-Module-Pluggable-3.90-115.el6
[101/280] installing perl-Pod-Escapes-1.04-115.el6
[102/280] installing perl-version-0.77-115.el6
[103/280] installing cdparanoia-libs-10.2-5.1.el6
[104/280] installing freetype-2.3.11-5.el6
[105/280] installing libproxy-bin-0.3.0-2.el6
[106/280] installing libsepol-2.0.41-3.el6
[107/280] installing mpfr-2.4.1-6.el6
[108/280] installing nspr-4.8.6-1.el6
[109/280] installing perl-libs-5.10.1-115.el6
[110/280] installing vim-common-7.2.411-1.4.el6
[111/280] installing acl-2.2.49-4.el6
[112/280] installing bzip2-1.0.5-6.1.el6
[113/280] installing file-5.04-5.el6
[114/280] installing glibc-headers-2.12-1.7.el6
[115/280] installing libICE-devel-1.0.6-1.el6
[116/280] installing libX11-1.3-2.el6
[117/280] installing libXau-devel-1.0.5-1.el6
[118/280] installing libXdmcp-devel-1.0.3-1.el6
[119/280] installing libblkid-2.17.2-6.el6
[120/280] installing ncurses-devel-5.7-3.20090208.el6
[121/280] installing unzip-6.0-1.el6
[122/280] installing xmlrpc-c-1.16.24-1200.1840.el6
[123/280] installing xz-4.999.9-0.3.beta.20091007git.el6
[124/280] installing boost-filesystem-1.41.0-11.el6
[125/280] installing boost-regex-1.41.0-11.el6
[126/280] installing elfutils-0.148-1.el6
[127/280] installing info-4.13a-8.el6
[128/280] installing less-436-4.el6
[129/280] installing libpng-devel-1.2.44-1.el6
[130/280] installing ppl-0.10.2-11.el6
[131/280] installing upstart-0.6.5-6.1.el6
[132/280] installing gnutls-2.8.5-4.el6
[133/280] installing libXext-1.1-3.el6
[134/280] installing libXfixes-4.0.4-1.el6
[135/280] installing libXrender-0.9.5-1.el6
[136/280] installing perl-Pod-Simple-3.13-115.el6
[137/280] installing cpio-2.10-9.el6
[138/280] installing diffutils-2.8.1-28.el6
[139/280] installing gawk-3.1.7-6.el6
[140/280] installing libgomp-4.4.4-13.el6
[141/280] installing libidn-1.18-2.el6
[142/280] installing libselinux-2.0.94-2.el6
[143/280] installing libxcb-devel-1.5-1.el6
[144/280] installing m4-1.4.13-5.el6
[145/280] installing make-3.81-19.el6
[146/280] installing nss-util-3.12.7-1.el6
[147/280] installing texinfo-4.13a-8.el6
[148/280] installing which-2.19-5.1.el6
[149/280] installing xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6
[150/280] installing binutils-2.20.51.0.2-5.11.el6
[151/280] installing cloog-ppl-0.15.7-1.2.el6
[152/280] installing freetype-devel-2.3.11-5.el6
[153/280] installing glibc-devel-2.12-1.7.el6
[154/280] installing grep-2.6.3-2.el6
[155/280] installing libSM-devel-1.1.0-7.1.el6
[156/280] installing libXt-1.0.7-1.el6
[157/280] installing readline-6.0-3.el6
[158/280] installing boost-graph-1.41.0-11.el6
[159/280] installing cpp-4.4.4-13.el6
[160/280] installing gpm-1.20.6-11.el6
[161/280] installing e2fsprogs-1.41.12-3.el6
[162/280] installing boost-wave-1.41.0-11.el6
[163/280] installing libselinux-utils-2.0.94-2.el6
[164/280] installing net-tools-1.60-102.el6
[165/280] installing patch-2.6-6.el6
[166/280] installing sqlite-3.6.20-1.el6
[167/280] installing checkpolicy-2.0.22-1.el6
[168/280] installing glib2-2.22.5-5.el6
[169/280] installing libXdamage-1.1.2-1.el6
[170/280] installing libXi-1.3-3.el6
[171/280] installing libXinerama-1.1-1.el6
[172/280] installing libXv-1.0.5-1.el6
[173/280] installing libXxf86vm-1.1.0-1.el6
[174/280] installing lua-5.1.4-4.1.el6
[175/280] installing psmisc-22.6-15.el6
[176/280] installing rcs-5.7-37.el6
[177/280] installing autoconf-2.63-5.1.el6
[178/280] installing bison-2.4.1-5.el6
[179/280] installing findutils-4.4.2-6.el6
[180/280] installing flex-2.5.35-8.el6
[181/280] installing krb5-libs-1.8.2-3.el6
[182/280] installing libXcursor-1.1.10-2.el6
[183/280] installing libXrandr-1.3.0-4.el6
[184/280] installing sed-4.2.1-5.el6
[185/280] installing shadow-utils-4.1.4.2-8.el6
[186/280] installing vim-minimal-7.2.411-1.4.el6
[187/280] installing libsemanage-2.0.43-4.el6
[188/280] installing tar-1.23-3.el6
[189/280] installing libX11-devel-1.3-2.el6
[190/280] installing gcc-4.4.4-13.el6
[191/280] installing coreutils-8.4-9.el6
[192/280] installing alsa-lib-1.0.21-3.el6
[193/280] installing coreutils-libs-8.4-9.el6
[194/280] installing desktop-file-utils-0.15-9.el6
[195/280] installing gamin-0.1.10-9.el6
[196/280] installing redhat-logos-60.0.14-10.el6
[197/280] installing libgudev1-147-2.29.el6
[198/280] installing libutempter-1.1.5-4.1.el6
[199/280] installing automake-1.11.1-1.2.el6
[200/280] installing gstreamer-tools-0.10.29-1.el6
[201/280] installing libXext-devel-1.1-3.el6
[202/280] installing libXfixes-devel-4.0.4-1.el6
[203/280] installing libXrender-devel-0.9.5-1.el6
[204/280] installing module-init-tools-3.9-17.el6
[205/280] installing MAKEDEV-3.24-6.el6
[206/280] installing dbus-glib-0.86-5.el6
[207/280] installing fontconfig-2.8.0-3.el6
[208/280] installing grubby-7.0.15-2.el6
[209/280] installing gzip-1.3.12-18.el6
[210/280] installing plymouth-scripts-0.8.3-17.el6.centos
[211/280] installing libXt-devel-1.0.7-1.el6
[212/280] installing nss-softokn-3.12.7-1.1.el6
[213/280] installing nss-sysinit-3.12.7-2.el6
[214/280] installing openssl-1.0.0-4.el6
[215/280] installing groff-1.18.1.4-21.el6
[216/280] installing neon-0.29.3-1.2.el6
[217/280] installing hwdata-0.233-1.el6
[218/280] installing cracklib-2.8.16-2.el6
[219/280] installing fontconfig-devel-2.8.0-3.el6
[220/280] installing libssh2-1.2.2-7.el6
[221/280] installing openldap-2.4.19-15.el6
[222/280] installing gstreamer-0.10.29-1.el6
[223/280] installing libXdamage-devel-1.1.2-1.el6
[224/280] installing libXft-2.1.13-4.1.el6
[225/280] installing libXi-devel-1.3-3.el6
[226/280] installing libXinerama-devel-1.1-1.el6
[227/280] installing libXxf86vm-devel-1.1.0-1.el6
[228/280] installing libXcursor-devel-1.1.10-2.el6
[229/280] installing libXrandr-devel-1.3.0-4.el6
[230/280] installing libtool-2.2.6-15.5.el6
[231/280] installing nss-3.12.7-2.el6
[232/280] installing bind-libs-9.7.0-5.P2.el6
[233/280] installing cairo-1.8.8-3.1.el6
[234/280] installing qt-4.6.2-16.el6
[235/280] installing python-2.6.5-3.el6
[236/280] installing initscripts-9.03.17-1.el6.centos
[237/280] installing cracklib-dicts-2.8.16-2.el6
[238/280] installing libproxy-python-0.3.0-2.el6
[239/280] installing python-libs-2.6.5-3.el6
[240/280] installing kbd-1.15-11.el6
[241/280] installing libcgroup-0.36.1-6.el6
[242/280] installing qt-sqlite-4.6.2-16.el6
[243/280] installing libXft-devel-2.1.13-4.1.el6
[244/280] installing bind-utils-9.7.0-5.P2.el6
[245/280] installing libcurl-7.19.7-16.el6
[246/280] installing pango-1.28.1-3.el6
[247/280] installing udev-147-2.29.el6
[248/280] installing xmlrpc-c-client-1.16.24-1200.1840.el6
[249/280] installing boost-python-1.41.0-11.el6
[250/280] installing pam-1.1.1-4.el6
[251/280] installing curl-7.19.7-16.el6
[252/280] installing vim-enhanced-7.2.411-1.4.el6
[253/280] installing gstreamer-plugins-base-0.10.29-1.el6
[254/280] installing cvs-1.11.23-11.el6
[255/280] installing boost-1.41.0-11.el6
[256/280] installing util-linux-ng-2.17.2-6.el6
[257/280] installing rpm-4.8.0-12.el6
[258/280] installing device-mapper-1.02.53-8.el6
[259/280] installing gettext-0.17-16.el6
[260/280] installing cmake-2.6.4-5.el6
[261/280] installing man-1.6f-29.el6
[262/280] installing boost-devel-1.41.0-11.el6
[263/280] installing rpm-libs-4.8.0-12.el6
[264/280] installing dracut-004-32.el6
[265/280] installing policycoreutils-2.0.83-19.1.el6
[266/280] installing dracut-kernel-004-32.el6
[267/280] installing gettext-devel-0.17-16.el6
[268/280] installing rpm-build-4.8.0-12.el6
[269/280] installing kernel-2.6.32-71.el6
E: Missing a shared library required by /sbin/dmsetup.
E: Run "ldd /sbin/dmsetup" to find out what it is.
E: dracut cannot create an initrd.
[270/280] installing libdrm-2.4.20-2.el6
[271/280] installing libdrm-devel-2.4.20-2.el6
[272/280] installing mesa-dri-drivers-7.7-2.el6
[273/280] installing plymouth-0.8.3-17.el6.centos
[274/280] installing mesa-libGL-7.7-2.el6
[275/280] installing mesa-libGLU-7.7-2.el6
[276/280] installing mesa-libGL-devel-7.7-2.el6
[277/280] installing mesa-libGLU-devel-7.7-2.el6
[278/280] installing qt-x11-4.6.2-16.el6
[279/280] installing phonon-backend-gstreamer-4.6.2-16.el6
[280/280] installing qt-devel-4.6.2-16.el6
removing nis flags from //etc/nsswitch.conf...
now finalizing build dir...
Warning: spec file parser line 11: can't expand %(...)
-----------------------------------------------------------------
I have the following modifications for scantailor.spec:
3c3
< Release:        2%{?dist}
---
> Release:        2.1
-----------------------------------------------------------------
----- building scantailor.spec (user abuild)
-----------------------------------------------------------------
-----------------------------------------------------------------
+ exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --define 'disturl obs://build.opensuse.org/home:NowdUph/CentOS_CentOS-6/0e10438922e70fd1db5102a3e6d86732-scantaiolor' /home/abuild/rpmbuild/SOURCES/scantailor.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.KGO7C8
+ umask 022
+ cd /home/abuild/rpmbuild/BUILD
+ cd /home/abuild/rpmbuild/BUILD
+ rm -rf scantailor-0.9.9.2
+ /usr/bin/gzip -dc /home/abuild/rpmbuild/SOURCES/scantailor-0.9.9.2.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd scantailor-0.9.9.2
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.qQLJ1Q
+ umask 022
+ cd /home/abuild/rpmbuild/BUILD
+ cd scantailor-0.9.9.2
+ CFLAGS='-O2 -g -march=i386 -mtune=i686'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -march=i386 -mtune=i686'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -march=i386 -mtune=i686'
+ export FFLAGS
+ /usr/bin/cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DCMAKE_SKIP_RPATH:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON . -DEXTRA_LIBS=Xrender -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr
-- The C compiler identification is GNU
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- Boost version: 1.41.0
-- Found the following Boost libraries:
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.6.2
-- Looking for _POSIX_TIMERS
-- Looking for _POSIX_TIMERS - found
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
-- Boost version: 1.41.0
-- Found the following Boost libraries:
--   unit_test_framework
--   prg_exec_monitor
-- Checking pthreads with CFLAGS="-pthread" and LIBS="-pthread" -- yes
-- Looking for stdint.h
-- Looking for stdint.h - found
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- Configuring incomplete, errors occurred!
error: Bad exit status from /var/tmp/rpm-tmp.qQLJ1Q (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.qQLJ1Q (%build)
[  174.578561] System halted.


Вот spec:

Код: Выделить всё

Name:           scantailor
Version:        0.9.9.2
Release:        2%{?dist}
Summary:        An interactive post-processing tool for scanned pages

Group:          Applications/Text
License:        GPLv3+
URL:            http://scantailor.sourceforge.net/
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1:        %{name}.desktop
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  cmake
BuildRequires:  boost-devel
BuildRequires:  libXext-devel
BuildRequires:  qt-devel
BuildRequires:  mesa-libGL-devel
BuildRequires:  mesa-libGLU-devel
BuildRequires:  libjpeg-devel
BuildRequires:  zlib-devel
BuildRequires:  libpng-devel
BuildRequires:  libtiff-devel
BuildRequires:  libXrender-devel
BuildRequires:  desktop-file-utils

%description
Scan Tailor is an interactive post-processing tool for scanned pages.
It performs operations such as page splitting, deskewing, adding/removing
borders, and others. You give it raw scans, and you get pages ready to be
printed or assembled into a PDF or DJVU file. Scanning, optical character
recognition, and assembling multi-page documents are out of scope of this
project.

%prep
%setup -q

%build
%cmake . -DEXTRA_LIBS=Xrender -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo -DCMAKE_INSTALL_PREFIX="/usr"
make %{?_smp_mflags}
%{__mv} resources/icons/COPYING resources/icons/COPYING-icons

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE1}
%{__mkdir_p} ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/scalable/apps
%{__cp} resources/appicon.svg \
        ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/scalable/apps/scantailor.svg

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%check
make tests
./tests/tests

%post
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :

%postun
if [ $1 -eq 0 ] ; then
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi

%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :

%files
%defattr(-,root,root,-)
%doc COPYING resources/icons/COPYING-icons
%{_bindir}/scantailor
%{_datadir}/scantailor/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/scantailor.svg

%changelog
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.9.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Mon Nov 15 2010 Jan Horak <jhorak@redhat.com> - 0.9.9.2-1
- Update to 0.9.9.2

* Tue Aug 10 2010 Jan Horak <jhorak@redhat.com> - 0.9.9.1-1
- Update to 0.9.9.1

* Mon Jun 14 2010 Jan Horak <jhorak@redhat.com> - 0.9.9-1
- Update to 0.9.9

* Wed Apr 28 2010 Jan Horak <jhorak@redhat.com> - 0.9.8.1-1
- Update to 0.9.8.1

* Wed Apr  7 2010 Jan Horak <jhorak@redhat.com> - 0.9.8-1
- Update to 0.9.8

* Tue Feb 16 2010 Jan Horak <jhorak@redhat.com> - 0.9.7.2-2
- Renaming of COPYING-icons moved to prep section

* Mon Feb 15 2010 Jan Horak <jhorak@redhat.com> - 0.9.7.2-1
- Initial release


Как собрать этот пакет?
Спасибо сказали:
Аватара пользователя
Bizdelnick
Модератор
Сообщения: 21433
Статус: nulla salus bello
ОС: Debian GNU/Linux

Re: openSUSE Build Service

Сообщение Bizdelnick »

winhex, выше у Вас была ровно та же ошибка, и решение - то же самое:
Lazy_Kent писал(а):
24.08.2010 00:34
Нужно добавить:
BuildRequires: gcc-c++
Пишите правильно:
в консоли
вку́пе (с чем-либо)
в общем
вообще
в течение (часа)
новичок
нюанс
по умолчанию
приемлемо
проблема
пробовать
трафик
Спасибо сказали: