ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] %makeinstall и %make DESTDIR=%buildroot install в спеке
@ 2007-06-14  4:50 Eugene Prokopiev
  2007-06-14  5:01 ` Slava Semushin
  0 siblings, 1 reply; 5+ messages in thread
From: Eugene Prokopiev @ 2007-06-14  4:50 UTC (permalink / raw)
  To: Devel

Здравствуйте!

Собирая новую версию callweaver, столкнулся со следующей проблемой в 
инсталл-скриптах:

$ make DESTDIR=~/callweaver-install install

создает структуру каталогов с local:

$ ls ~/callweaver-install/usr/
local
$ ls ~/callweaver-install/usr/local/
bin  etc  include  lib  sbin  share  var

С такой проблемой я сталкивался, собирая dbmail, и решил ее 
использованием %makeinstall. Но если сказать (именно в это раскрывается 
%makeinstall):

$ make 'INSTALL=/bin/install -p' prefix=~/callweaver-install/usr 
exec_prefix=~/callweaver-install/usr bindir=~/callweaver-install/usr/bin 
sbindir=~/callweaver-install/usr/sbin 
sysconfdir=~/callweaver-install/etc 
datadir=~/callweaver-install/usr/share 
includedir=~/callweaver-install/usr/include 
libdir=~/callweaver-install/usr/lib 
libexecdir=~/callweaver-install/usr/lib 
localstatedir=~/callweaver-install/var/lib 
sharedstatedir=~/callweaver-install/usr/com 
mandir=~/callweaver-install/usr/share/man 
infodir=~/callweaver-install/usr/share/info install

То получим очень странное сообщение:

test -z "/usr/src/callweaver-install/usr/lib/callweaver" || /bin/mkdir 
-p "/usr/src/callweaver-install/usr/lib/callweaver"
  /bin/sh ../libtool --mode=install /bin/install -p  'libcallweaver.la' 
'/usr/src/callweaver-install/usr/lib/callweaver/libcallweaver.la'
libtool: install: error: cannot install `libcallweaver.la' to a 
directory not ending in /usr/local/lib/callweaver
make[4]: *** [install-opbxlibLTLIBRARIES] Error 1

Если задействовать %makeinstall в спеке, то ошибка будет другой:

/usr/bin/make  install-data-hook
make[3]: Entering directory `/usr/src/RPM/BUILD/callweaver-1.1.99.20070614'
for install_dir in 
/usr/src/tmp/callweaver-buildroot/var/lib/lib/callweaver 
/usr/src/tmp/callweaver-buildroot/var/lib/lib/callweaver 
/usr/src/tmp/callweaver-buildroot/var/lib/lib/callweaver 
/usr/src/tmp/callweaver-buildroot/usr/lib/callweaver/modules 
/usr/src/tmp/callweaver-buildroot/usr/lib/callweaver/modules/icd 
/usr/src/tmp/callweaver-buildroot/var/lib/log/callweaver 
/usr/src/tmp/callweaver-buildroot/var/lib/log/callweaver/cdr-custom 
/usr/src/tmp/callweaver-buildroot/var/lib/log/callweaver/cdr-csv 
/usr/src/tmp/callweaver-buildroot/var/lib/run/callweaver 
/usr/src/tmp/callweaver-buildroot/var/lib/spool/callweaver 
/usr/src/tmp/callweaver-buildroot/var/lib/spool/callweaver/outgoing 
/usr/src/tmp/callweaver-buildroot/var/lib/spool/callweaver/voicemail 
/usr/src/tmp/callweaver-buildroot/usr/share/callweaver/moh 
/usr/src/tmp/callweaver-buildroot/usr/share/callweaver/keys 
/usr/src/tmp/callweaver-buildroot/usr/share/callweaver/images; \
         do \
                 if test ! -d "${install_dir}"; \
                 then \
                         mkdir -p ${install_dir}; \
                         chmod 0750 ${install_dir}; \
                 fi; \
                 if test -z ""; \
                 then \
                         chown callweaver:callweaver ${install_dir}; \
                 fi; \
         done
chown: `callweaver:callweaver': invalid user
...

Кажется, именно поэтому предыдущую версию callweaver я собирал с make 
DESTDIR=%buildroot install.

Что делать теперь?

-- 
С уважением, Прокопьев Евгений


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-06-14  9:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-14  4:50 [devel] %makeinstall и %make DESTDIR=%buildroot install в спеке Eugene Prokopiev
2007-06-14  5:01 ` Slava Semushin
2007-06-14  5:51   ` Eugene Prokopiev
2007-06-14  7:11     ` Damir Shayhutdinov
2007-06-14  9:55       ` Eugene Prokopiev

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git