MyTetra Share
Делитесь знаниями!
Проблема сборки rrpmbuild
Время создания: 20.03.2016 22:41
Текстовые метки: meego
Раздел: Компьютер - Программирование - Язык C++ (Си++) - Библиотека Qt - Инсталляция Qt и сборка проектов
Запись: xintrea/mytetra_syncro/master/base/0000003457/text.html на raw.github.com

Программа rrpmbuild содержит ошибку. Она не может генерировать rmp-пакет с файлами, которые не находятся в каталоге /usr.

Пример:

./build_3_rrpmbuild.sh

Executing: %build

+ make

make: Цель `first' не требует выполнения команд.

Executing: %install

+ make install INSTALL_ROOT=rrpmbuild/instroot

install -m 755 -p /media/mx_120_part_3/home/xi/work/game_ksi/mytetra/misc/mytetra-build-meego/bin/mytetra rrpmbuild/instroot/opt/ru.webhamster.mytetra/bin/

install -m 755 -p /media/mx_120_part_3/home/xi/work/game_ksi/mytetra/misc/meego/desktop/mytetra.desktop rrpmbuild/instroot/usr/share/applications/

install -m 644 -p /media/mx_120_part_3/home/xi/work/game_ksi/mytetra/misc/meego/desktop/mytetra.svg rrpmbuild/instroot/usr/share/icons/hicolor/scalable/apps/

install -m 644 -p /media/mx_120_part_3/home/xi/work/game_ksi/mytetra/misc/meego/desktop/mytetra.png rrpmbuild/instroot/usr/share/icons/hicolor/48x48/apps/

Adding directory usr/share

Adding directory usr/share/applications

Adding file usr/share/applications/mytetra.desktop

Adding directory usr/share/icons

Adding directory usr/share/icons/hicolor

Adding directory usr/share/icons/hicolor/scalable

Adding directory usr/share/icons/hicolor/scalable/apps

Adding file usr/share/icons/hicolor/scalable/apps/mytetra.svg

Adding directory usr/share/icons/hicolor/48x48

Adding directory usr/share/icons/hicolor/48x48/apps

Adding file usr/share/icons/hicolor/48x48/apps/mytetra.png

Pushing data "C"

Pushing data "ru.webhamster.mytetra"

Pushing data "1.28.5"

Pushing data "1"

Pushing data "# Add here description of the package."

Pushing data "GPL v.3.0"

Pushing data "Utility"

Pushing data "Linux"

Pushing data "i686"

Pushing data "cpio"

Pushing data "gzip"

Pushing data "ru.webhamster.mytetra-1.28.5-src.rpm"

Исправление:

В файле /usr/lib/madde/linux-i686/madbin/rrpmbuild нужно заменить строку

my ($prefix, $exec_prefix, $lib) = ( '/usr', '/usr', 'lib' );

на

my ($prefix, $exec_prefix, $lib) = ( '/', '/', 'lib' );

После чего пакет начинает правильно создаваться:

./build_3_rrpmbuild.sh

Executing: %build

+ make

make: Цель `first' не требует выполнения команд.

Executing: %install

+ make install INSTALL_ROOT=rrpmbuild/instroot

install -m 755 -p /media/mx_120_part_3/home/xi/work/game_ksi/mytetra/misc/mytetra-build-meego/bin/mytetra rrpmbuild/instroot/opt/ru.webhamster.mytetra/bin/

install -m 755 -p /media/mx_120_part_3/home/xi/work/game_ksi/mytetra/misc/meego/desktop/mytetra.desktop rrpmbuild/instroot/usr/share/applications/

install -m 644 -p /media/mx_120_part_3/home/xi/work/game_ksi/mytetra/misc/meego/desktop/mytetra.svg rrpmbuild/instroot/usr/share/icons/hicolor/scalable/apps/

install -m 644 -p /media/mx_120_part_3/home/xi/work/game_ksi/mytetra/misc/meego/desktop/mytetra.png rrpmbuild/instroot/usr/share/icons/hicolor/48x48/apps/

Adding directory opt

Adding directory opt/ru.webhamster.mytetra

Adding directory opt/ru.webhamster.mytetra/bin

Adding file opt/ru.webhamster.mytetra/bin/mytetra

Adding directory usr

Adding directory usr/share

Adding directory usr/share/applications

Adding file usr/share/applications/mytetra.desktop

Adding directory usr/share/icons

Adding directory usr/share/icons/hicolor

Adding directory usr/share/icons/hicolor/scalable

Adding directory usr/share/icons/hicolor/scalable/apps

Adding file usr/share/icons/hicolor/scalable/apps/mytetra.svg

Adding directory usr/share/icons/hicolor/48x48

Adding directory usr/share/icons/hicolor/48x48/apps

Adding file usr/share/icons/hicolor/48x48/apps/mytetra.png

Pushing data "C"

Pushing data "ru.webhamster.mytetra"

Pushing data "1.28.5"

Pushing data "1"

Pushing data "# Add here description of the package."

Pushing data "GPL v.3.0"

Pushing data "Utility"

Pushing data "Linux"

Pushing data "i686"

Pushing data "cpio"

Pushing data "gzip"

Pushing data "ru.webhamster.mytetra-1.28.5-src.rpm"

Так же в этом разделе:
 
MyTetra Share v.0.65
Яндекс индекс цитирования