LINUX.ORG.RU
решено ФорумAdmin

Прерывается сборка RPM под AIX

 ,


0

1

Доброго времени суток

Есть необходимость собрать xymon-client для aix Использую spec файл, с которым без проблем собрал этот пакет под rhel

Для начала проверил обычный скучный путь configure + make ( без make install ). Сборка проходит не без недостатков, но успешно

После этого пробую собрать rpm. Те же самые шаги с configure ( %setup ) и make ( %build ) проходят аналогично %install выполняется. Затем поиск файлов ( %files ? ), и работа rpm прерывается, в $? ошибка

+ echo *************************************************************************
*************************************************************************
+ echo end install
end install
+ echo *************************************************************************
*************************************************************************
+ exit 0
Processing files: xymon-4.3.28-14
Executing(%doc): /bin/sh -e /var/opt/freeware/tmp/rpm-tmp.24635
+ umask 022
+ cd /opt/freeware/src/packages/BUILD
+ cd xymon-4.3.28
+ DOCDIR=/tmp/xymon-root/opt/freeware/doc/xymon-4.3.28
+ export DOCDIR
+ rm -rf /tmp/xymon-root/opt/freeware/doc/xymon-4.3.28
+ /usr/bin/mkdir -p /tmp/xymon-root/opt/freeware/doc/xymon-4.3.28
+ cp -pr README README.CLIENT Changes COPYING CREDITS RELEASENOTES /tmp/xymon-root/opt/freeware/doc/xymon-4.3.28
+ exit 0
File listed twice: /etc/xymon/critical.cfg
File listed twice: /etc/xymon/critical.cfg.bak
File listed twice: /etc/xymon/tasks.d
File listed twice: /etc/xymon/web
File listed twice: /usr/lib/xymon/client/bin/clientupdate
File listed twice: /usr/lib/xymon/client/bin/logfetch
File listed twice: /usr/lib/xymon/client/ext
File listed twice: /usr/lib/xymon/server/bin/xymonping
File listed twice: /usr/lib/xymon/server/download
File listed twice: /var/lib/xymon/www/menu/xymonmenu-blue.css
File listed twice: /var/lib/xymon/www/menu/xymonmenu-grey.css
File listed twice: /var/lib/xymon/www/rep
File listed twice: /var/lib/xymon/www/snap
Finding  Provides: (using /opt/freeware/lib/rpm/find-provides)...
Finding  Requires: (using /opt/freeware/lib/rpm/find-requires)...
PreReq: /bin/sh
Requires: /bin/bash /bin/sh libc.a(shr.o) libcrypto.a(libcrypto.so) libpcre.a(libpcre.so.0) libssl.a(libssl.so)
Conflicts: xymon-client
Processing files: xymon-client-4.3.28-14
Executing(%doc): /bin/sh -e /var/opt/freeware/tmp/rpm-tmp.9614
+ umask 022
+ cd /opt/freeware/src/packages/BUILD
+ cd xymon-4.3.28
+ DOCDIR=/tmp/xymon-root/opt/freeware/doc/xymon-client-4.3.28
+ export DOCDIR
+ rm -rf /tmp/xymon-root/opt/freeware/doc/xymon-client-4.3.28
+ /usr/bin/mkdir -p /tmp/xymon-root/opt/freeware/doc/xymon-client-4.3.28
+ cp -pr README README.CLIENT Changes COPYING CREDITS RELEASENOTES /tmp/xymon-root/opt/freeware/doc/xymon-client-4.3.28
+ exit 0
File listed twice: /usr/lib/xymon/client/bin/clientupdate
File listed twice: /usr/lib/xymon/client/bin/logfetch
File listed twice: /usr/lib/xymon/client/ext
Finding  Provides: (using /opt/freeware/lib/rpm/find-provides)...
Finding  Requires: (using /opt/freeware/lib/rpm/find-requires)...
PreReq: /bin/sh
Requires: /bin/sh libc.a(shr.o) libpcre.a(libpcre.so.0)
Conflicts: xymon
root@lp-aix-ok-256:/usr/src/packages/SPECS# echo $?
1

Каких-либо сообщений об ошибке в выводе не вижу, те же warning'и про file listed twice есть и при сборке на rhel, но там пакет собирается, а на aix - нет

вот успешная сборка под rhel:

warning: File listed twice: /etc/xymon/critical.cfg
warning: File listed twice: /etc/xymon/critical.cfg.bak
warning: File listed twice: /etc/xymon/tasks.d
warning: File listed twice: /etc/xymon/web
warning: File listed twice: /usr/lib/xymon/client/bin/clientupdate
warning: File listed twice: /usr/lib/xymon/client/bin/logfetch
warning: File listed twice: /usr/lib/xymon/client/ext
warning: File listed twice: /usr/lib/xymon/server/bin/xymonping
warning: File listed twice: /usr/lib/xymon/server/download
warning: File listed twice: /var/lib/xymon/www/menu/xymonmenu-blue.css
warning: File listed twice: /var/lib/xymon/www/menu/xymonmenu-grey.css
warning: File listed twice: /var/lib/xymon/www/rep
warning: File listed twice: /var/lib/xymon/www/snap
Provides: config(xymon) = 4.3.28-14 xymon = 4.3.28-14 xymon(x86-64) = 4.3.28-14
Requires(interp): /bin/sh /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(pre): /bin/sh
Requires(post): /bin/sh
Requires(preun): /bin/sh
Requires: /bin/bash /bin/sh libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.17)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.7)(64bit) libcrypto.so.10()(64bit) libcrypto.so.10(libcrypto.so.10)(64bit) libm.so.6()(64bit) libpcre.so.1()(64bit) librrd.so.4()(64bit) libssl.so.10()(64bit) libssl.so.10(libssl.so.10)(64bit) rtld(GNU_HASH)
Conflicts: xymon-client
Processing files: xymon-client-4.3.28-14.x86_64
warning: Explicit %attr() mode not applicaple to symlink: /root/rpmbuild/BUILDROOT/xymon-4.3.28-14.x86_64/etc/xymonclient
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.fITiCW
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd xymon-4.3.28
+ DOCDIR=/root/rpmbuild/BUILDROOT/xymon-4.3.28-14.x86_64/usr/share/doc/xymon-client-4.3.28
+ export DOCDIR
+ /usr/bin/mkdir -p /root/rpmbuild/BUILDROOT/xymon-4.3.28-14.x86_64/usr/share/doc/xymon-client-4.3.28
+ cp -pr README /root/rpmbuild/BUILDROOT/xymon-4.3.28-14.x86_64/usr/share/doc/xymon-client-4.3.28
+ cp -pr README.CLIENT /root/rpmbuild/BUILDROOT/xymon-4.3.28-14.x86_64/usr/share/doc/xymon-client-4.3.28
+ cp -pr Changes /root/rpmbuild/BUILDROOT/xymon-4.3.28-14.x86_64/usr/share/doc/xymon-client-4.3.28
+ cp -pr COPYING /root/rpmbuild/BUILDROOT/xymon-4.3.28-14.x86_64/usr/share/doc/xymon-client-4.3.28
+ cp -pr CREDITS /root/rpmbuild/BUILDROOT/xymon-4.3.28-14.x86_64/usr/share/doc/xymon-client-4.3.28
+ cp -pr RELEASENOTES /root/rpmbuild/BUILDROOT/xymon-4.3.28-14.x86_64/usr/share/doc/xymon-client-4.3.28
+ exit 0
warning: File listed twice: /usr/lib/xymon/client/bin/clientupdate
warning: File listed twice: /usr/lib/xymon/client/bin/logfetch
warning: File listed twice: /usr/lib/xymon/client/ext
Provides: config(xymon-client) = 4.3.28-14 xymon-client = 4.3.28-14 xymon-client(x86-64) = 4.3.28-14
Requires(interp): /bin/sh /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(pre): /bin/sh
Requires(post): /bin/sh
Requires(preun): /bin/sh
Requires: /bin/sh libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.17)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.7)(64bit) libcrypto.so.10()(64bit) libpcre.so.1()(64bit) libssl.so.10()(64bit) rtld(GNU_HASH)
Conflicts: xymon
Processing files: xymon-debuginfo-4.3.28-14.x86_64
Provides: xymon-debuginfo = 4.3.28-14 xymon-debuginfo(x86-64) = 4.3.28-14
Requires(rpmlib): rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/xymon-4.3.28-14.x86_64
Wrote: /root/rpmbuild/SRPMS/xymon-4.3.28-14.src.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/xymon-4.3.28-14.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/xymon-client-4.3.28-14.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/xymon-debuginfo-4.3.28-14.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.WRBSCu
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd xymon-4.3.28
+ rm -rf /root/rpmbuild/BUILDROOT/xymon-4.3.28-14.x86_64
+ exit 0
[root@vm-notif-tan-be SPECS]# 

На том же самом lpar'е той же самой версией rpm другой пакет ( zabbix-agent ) собрал без проблем

Есть идеи? Пока у меня лишь мысль, что для rpm на aix «file listed twice» не warning, а таки error и придётся править spec

★★★★★

Последнее исправление: router (всего исправлений: 3)
Ответ на: комментарий от anonymous

Нет. Это информация о зависимостях будущего пакета

Пока у меня лишь мысль, что для rpm на aix «file listed twice» не warning, а таки error и придётся править spec

router ★★★★★
() автор топика

Пока у меня лишь мысль, что для rpm на aix «file listed twice» не warning, а таки error и придётся править spec

Подтвердилось

Теперь воевать со spec файлом, т.к. древний rpm 3.0.5 ( новее нет. пересобирать ещё и сам rpm не вариант ) не принимает ни %exclude, ни %dir

router ★★★★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.