[devel] Нужна помощь в сборке пакета
Marat Khayrullin
=?iso-8859-1?q?xmm_=CE=C1_altlinux=2Eru?=
Пн Мар 24 23:07:34 MSK 2008
Ни как не удаётся побороть странную ошибку в пакете pigment
https://core.fluendo.com/pigment/trac/ или
http://elisa.fluendo.com/static/download/pigment/pigment-0.3.5.tar.gz
Валится на этапе инсталляции, в подкаталоге 3 уровня, вот в этом месте
install-pluginLTLIBRARIES: $(plugin_LTLIBRARIES)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(plugindir) <--------------- error
@list='$(plugin_LTLIBRARIES)'; for p in $$list; do \
if test -f $$p; then \
f="`echo $$p | sed -e 's|^.*/||'`"; \
echo " $(LIBTOOL) --mode=install $(pluginLTLIBRARIES_INSTALL)
$(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(plugindir)/$$f"; \
$(LIBTOOL) --mode=install $(pluginLTLIBRARIES_INSTALL)
$(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(plugindir)/$$f; \
else :; fi; \
done
почему-то не подставляется $DESTDIR
Cофт конфигуриться autoreconf и потом configure, т.е Makefile.in появляется в
процессе. Спек приложен в аттаче (пока не допилен на предмет всех Requires &
Provides). Не хотелось бы инсталлить этот пакет методом make install :(
PS: Собирается в 4.0 branch'е .
make[4]: Leaving directory `/work/RPM/libpigment/BUILD/pigment-0.3.5.1/pgm'
make[3]: Leaving directory `/work/RPM/libpigment/BUILD/pigment-0.3.5.1/pgm'
make[2]: Leaving directory `/work/RPM/libpigment/BUILD/pigment-0.3.5.1/pgm'
make[1]: Leaving directory `/work/RPM/libpigment/BUILD/pigment-0.3.5.1/pgm'
Making install in plugins
make[1]: Entering directory
`/work/RPM/libpigment/BUILD/pigment-0.3.5.1/plugins'
Making install in boilerplate
make[2]: Entering directory
`/work/RPM/libpigment/BUILD/pigment-0.3.5.1/plugins/boilerplate'
make[3]: Entering directory
`/work/RPM/libpigment/BUILD/pigment-0.3.5.1/plugins/boilerplate'
make[3]: Nothing to be done for `install-exec-am'.
/bin/sh ../../build-aux/mkinstalldirs /usr/lib/pigment-0.3/0.3.5.1
mkdir -p -- /usr/lib/pigment-0.3/0.3.5.1
mkdir: cannot create directory `/usr/lib/pigment-0.3': Permission denied
make[3]: *** [install-pluginLTLIBRARIES] Error 1
make[3]: Leaving directory
`/work/RPM/libpigment/BUILD/pigment-0.3.5.1/plugins/boilerplate'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory
`/work/RPM/libpigment/BUILD/pigment-0.3.5.1/plugins/boilerplate'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory
`/work/RPM/libpigment/BUILD/pigment-0.3.5.1/plugins'
make: *** [install-recursive] Error 1
make: Leaving directory `/work/RPM/libpigment/BUILD/pigment-0.3.5.1'
ошибка: Неверный код возврата из /tmp/rpm-tmp.60408 (%install)
----------- следующая часть -----------
%define _major 0.3
%define _name pigment
%define _minor 5.1
%define _svn svn20080320
Name: libpigment
Summary: Pigment Media Center Toolkit
License: %lgpl2plus
Group: System/Libraries
Version: %{_major}.%{_minor}
Release: alt1
Url: https://core.fluendo.com/pigment/trac/
Source: http://www.fluendo.com/elisa/downloads/pigment/%{_name}-%{_major}.%{_minor}.tar.bz2
Source2: ChangeLog-rpm.old
Requires: glib2
Requires: gstreamer >= 0.10.0
Requires: gst-plugins-base >= 0.10.0
Requires: libcairo
Requires: python-module-pygtk >= 2.8.4
BuildPreReq: rpm-build-licenses
BuildPreReq: gdk-pixbuf-devel
BuildPreReq: glib2-devel >= 2.8.0
BuildPreReq: gstreamer-devel >= 0.10.0
BuildPreReq: gst-plugins-devel >= 0.10.0
BuildPreReq: libX11-devel
BuildPreReq: libglade-devel
BuildPreReq: libpango-devel >= 1.8
BuildPreReq: python-module-pygtk-devel
# Automatically added by buildreq on Fri Mar 21 2008
BuildRequires: gcc-c++ gtk-doc libgtk+2-devel libmesa-devel valgrind
%description
Pigment is a toolkit for writing Media Center software.
Pigment is a Python library designed to easily build user
interfaces with embedded multimedia. Its design allows to use
it on several platforms, thanks to a plugin system allowing to
choose the underlying graphical API.
Pigment is the rendering engine of Elisa, the Fluendo Media Center
project.
This package contains the shared libraries for Pigment.
%package -n devel
Summary: Libraries/include files for Pigment
Group: Development/C++
Requires: %name = %version
#aRequires: glib2-devel
#aRequires: gstreamer010-devel
#aRequires: gstreamer010-plugins-base-devel
#aRequires: python-devel
#aRequires: python-gobject2-devel
#aRequires: python-gtk-devel >= 2.8.4
#Provides: libpigment-devel = 0.3.2
#aObsoletes: pigment-devel <= 0.3.2
%description -n devel
Pigment is a toolkit for writing Media Center software.
This package contains the libraries and includes files necessary
to develop applications and plugins using Pigment.
%package -n gtk
Summary: Shared libraries for Pigment
Group: System/Libraries
#aProvides: libpigment-gtk3 = 0.3.4.3
#aObsoletes: libpigment-gtk3 <= 0.3.4.3
%description -n gtk
Pigment is a toolkit for writing Media Center software.
Pigment is a Python library designed to easily build user
interfaces with embedded multimedia. Its design allows to use
it on several platforms, thanks to a plugin system allowing to
choose the underlying graphical API.
This package contains the shared libraries for Pigment.
%package -n gtk-devel
Summary: Libraries/include files for Pigment
Group: Development/GNOME and GTK+
Requires: libpigment-gtk = %version
#Requires: gtk2-devel
%description -n gtk-devel
Pigment is a toolkit for writing Media Center software.
This package contains the libraries and includes files necessary
to develop applications and plugins using Pigment.
%package -n doc
Summary: Documentation for Pigment
Group: Development/Documentation
%description -n doc
Documentation for Pigment.
%package -n plugin-opengl
Summary: OpenGL plugin for Pigment
Group: System/Libraries
#aRequires: gstreamer010
#aRequires: gstreamer010-plugins-base
#aRequires: %name = %version
%description -n plugin-opengl
Pigment is a toolkit for writing Media Center software.
Pigment is a Python library designed to easily build user
interfaces with embedded multimedia. Its design allows to use
it on several platforms, thanks to a plugin system allowing to
choose the underlying graphical API.
This package contains the OpenGL plugin for Pigment.
%package -n plugin
Summary: Plugins for Pigment
Group: System/Libraries
#aRequires: gstreamer010
#aRequires: %name = %version
%description -n plugin
Pigment is a toolkit for writing Media Center software.
Pigment is a Python library designed to easily build user
interfaces with embedded multimedia. Its design allows to use
it on several platforms, thanks to a plugin system allowing to
choose the underlying graphical API.
This package contains some plugins for Pigment.
%prep
%setup -q -n %_name-%version
install -p -m644 %SOURCE2 .
%build
gtkdocize
autoreconf -v --install
#__autoreconf
#undefine _configure_target
%configure \
--enable-gtk-doc \
--disable-static
%make_build
%{__make} check
%install
#{__make} install DESTDIR=%{buildroot}
%makeinstall \
docdir="`pwd`/installed-doc"
find %{buildroot} -name '*.la' -exec rm -f {} \;
%post -p %post_ldconfig
%postun -p %postun_ldconfig
%files
%doc AUTHORS ChangeLog ChangeLog-rpm.old COPYING README TODO
%_libdir/%name-%_major.so.*
%files -n devel
%dir %_includedir/%_name-%_major
%_includedir/%_name-%_major/pgm/*.h
%_libdir/%name-%_major.so
%_libdir/pkgconfig/%_name-%_major.pc
%_datadir/gtk-doc/html/%_name
%files -n doc
%doc docs/pgm/html/*
%files -n plugin-opengl
%dir %_libdir/%_name-%_major
%_libdir/%_name-%_major/%version/libpgmopengl.so
%files -n plugin
%dir %_libdir/%_name-%_major
%_libdir/%_name-%_major/%version/libpgmboilerplate.so
%files -n gtk
%_libdir/libpigment-gtk-%_major.so.*
%files -n gtk-devel
%_includedir/%_name-%_major/pgm/gtk/pgmgtk.h
%_libdir/%name-gtk-%_major.so
%_libdir/pkgconfig/pigment-gtk-%_major.pc
#exclude %_libdir/%_name/*/*.la
%changelog
* Fri Mar 21 2008 Marat Khairullin <xmm на altlinux.ru> 0.3.5-alt0.1
- initial build
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя : ./Makefile.am
Тип : text/x-makefile
Размер : 444 байтов
Описание: =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Url : <http://lists.altlinux.org/pipermail/devel/attachments/20080324/7b47a8ca/attachment-0006.bin>
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя : ./plugins/Makefile.am
Тип : text/x-makefile
Размер : 181 байтов
Описание: =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Url : <http://lists.altlinux.org/pipermail/devel/attachments/20080324/7b47a8ca/attachment-0007.bin>
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя : ./plugins/boilerplate/Makefile.am
Тип : text/x-makefile
Размер : 589 байтов
Описание: =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Url : <http://lists.altlinux.org/pipermail/devel/attachments/20080324/7b47a8ca/attachment-0008.bin>
Подробная информация о списке рассылки Devel