ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Выпадание из chroot окружения при сборке rpm-пакета на x86_64
@ 2008-03-25  8:54 Roman Savochenko
  2008-03-25  8:58 ` Igor Vlasenko
  0 siblings, 1 reply; 9+ messages in thread
From: Roman Savochenko @ 2008-03-25  8:54 UTC (permalink / raw)
  To: ALT Linux Team development discussions

[-- Attachment #1: Type: text/plain, Size: 1473 bytes --]

Приветствую Всех.

Собираю тут пакет своей программки для x86_64. В момент вызова make 
install замечается попытка глобальной установки, а не создание в chroot 
директорию. Всё тоже, но на i586 и даже на x86_64, но в директорию 
/usr/lib работает. В проблемном же случае библиотеки кладутся в /usr/lib64:
//--------------------------------------------------------------------------
Making install in DBF
make[4]: Entering directory 
`/home/roman/RPM/BUILD/openscada-0.6.1/src/moduls/bd/DBF'
make[5]: Entering directory `/home/roman/RPM/BUILD/openscada-0.6.1'
make[5]: Leaving directory `/home/roman/RPM/BUILD/openscada-0.6.1'
make[5]: Entering directory 
`/home/roman/RPM/BUILD/openscada-0.6.1/src/moduls/bd/DBF'
make[6]: Entering directory `/home/roman/RPM/BUILD/openscada-0.6.1'
make[6]: Leaving directory `/home/roman/RPM/BUILD/openscada-0.6.1'
make[5]: Nothing to be done for `install-exec-am'.
16 translated messages, 16 untranslated messages.
16 translated messages, 16 untranslated messages.
install -m 755 -d 
/home/roman/tmp/openscada-buildroot/usr/share/doc/openscada-0.6.1/Mod_DB_DBF
cp -r doc/*.pdf 
/home/roman/tmp/openscada-buildroot/usr/share/doc/openscada-0.6.1/Mod_DB_DBF
test -z "/usr/lib64/openscada" || mkdir -p -- "/usr/lib64/openscada"
mkdir: cannot create directory `/usr/lib64/openscada': Permission denied
//--------------------------------------------------------------------------
Что-бы это могло быть и как с этим бороться?

С уважением, Роман

[-- Attachment #2: rom_as.vcf --]
[-- Type: text/x-vcard, Size: 191 bytes --]

begin:vcard
fn:Roman Savochenko
n:Savochenko;Roman
email;internet:rom_as@diyaorg.dp.ua
title:NIP "DIYA"
tel;work:NIP "DIYA"
tel;cell:+380679859815
x-mozilla-html:FALSE
version:2.1
end:vcard


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

* Re: [devel] Выпадание из chroot окружения при сборке rpm-пакета на x86_64
  2008-03-25  8:54 [devel] Выпадание из chroot окружения при сборке rpm-пакета на x86_64 Roman Savochenko
@ 2008-03-25  8:58 ` Igor Vlasenko
  2008-03-25  9:03   ` Roman Savochenko
  0 siblings, 1 reply; 9+ messages in thread
From: Igor Vlasenko @ 2008-03-25  8:58 UTC (permalink / raw)
  To: ALT Linux Team development discussions

On Tue, Mar 25, 2008 at 10:54:03AM +0200, Roman Savochenko wrote:
> Приветствую Всех.
>
> test -z "/usr/lib64/openscada" || mkdir -p -- "/usr/lib64/openscada"
> mkdir: cannot create directory `/usr/lib64/openscada': Permission denied

Это DESTDIR прикручен к install, но не к вышеупомянутому test.


-- 

Dr. Igor Vlasenko
--------------------
Topology Department
Institute of Math
Kiev, Ukraine



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

* Re: [devel] Выпадание из chroot окружения при сборке rpm-пакета на x86_64
  2008-03-25  8:58 ` Igor Vlasenko
@ 2008-03-25  9:03   ` Roman Savochenko
  2008-03-25  9:06     ` Igor Vlasenko
  0 siblings, 1 reply; 9+ messages in thread
From: Roman Savochenko @ 2008-03-25  9:03 UTC (permalink / raw)
  To: ALT Linux Team development discussions

[-- Attachment #1: Type: text/plain, Size: 309 bytes --]

Igor Vlasenko wrote:
>> test -z "/usr/lib64/openscada" || mkdir -p -- "/usr/lib64/openscada"
>> mkdir: cannot create directory `/usr/lib64/openscada': Permission denied
>>     
> Это DESTDIR прикручен к install, но не к вышеупомянутому test.
А i586 и директорией /usr/lib почему работает?

С уважением, Роман

[-- Attachment #2: rom_as.vcf --]
[-- Type: text/x-vcard, Size: 191 bytes --]

begin:vcard
fn:Roman Savochenko
n:Savochenko;Roman
email;internet:rom_as@diyaorg.dp.ua
title:NIP "DIYA"
tel;work:NIP "DIYA"
tel;cell:+380679859815
x-mozilla-html:FALSE
version:2.1
end:vcard


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

* Re: [devel] Выпадание из chroot окружения при сборке rpm-пакета на x86_64
  2008-03-25  9:03   ` Roman Savochenko
@ 2008-03-25  9:06     ` Igor Vlasenko
  2008-03-25 11:19       ` Roman Savochenko
  0 siblings, 1 reply; 9+ messages in thread
From: Igor Vlasenko @ 2008-03-25  9:06 UTC (permalink / raw)
  To: ALT Linux Team development discussions

On Tue, Mar 25, 2008 at 11:03:19AM +0200, Roman Savochenko wrote:
>> Это DESTDIR прикручен к install, но не к вышеупомянутому test.
> А i586 и директорией /usr/lib почему работает?
Смотреть надо. думаю, достаточно всюду насовать $(DESTDIR)

-- 

Dr. Igor Vlasenko
--------------------
Topology Department
Institute of Math
Kiev, Ukraine



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

* Re: [devel] Выпадание из chroot окружения при сборке rpm-пакета на x86_64
  2008-03-25  9:06     ` Igor Vlasenko
@ 2008-03-25 11:19       ` Roman Savochenko
  2008-03-25 11:25         ` Slava Semushin
  2008-03-25 11:44         ` Victor Forsyuk
  0 siblings, 2 replies; 9+ messages in thread
From: Roman Savochenko @ 2008-03-25 11:19 UTC (permalink / raw)
  To: ALT Linux Team development discussions

[-- Attachment #1: Type: text/plain, Size: 544 bytes --]

Igor Vlasenko wrote:
>>> Это DESTDIR прикручен к install, но не к вышеупомянутому test.
>>>       
>> А i586 и директорией /usr/lib почему работает?
>>     
> Смотреть надо. думаю, достаточно всюду насовать $(DESTDIR)
Всем спасибо! Разобрался. Это для сборки и размещения библиотек в 
/usr/lib64 я сделал так:
./configure --prefix=%{_prefix} --libdir=%{_libdir} --disable-FireBird
А оно придавило $(DESTDIR)
Сделал так и всё собралость:
./configure --prefix=%{_prefix} --libdir=$RPM_BUILD_ROOT%{_libdir} 
--disable-FireBird

С уважением, Роман

[-- Attachment #2: rom_as.vcf --]
[-- Type: text/x-vcard, Size: 191 bytes --]

begin:vcard
fn:Roman Savochenko
n:Savochenko;Roman
email;internet:rom_as@diyaorg.dp.ua
title:NIP "DIYA"
tel;work:NIP "DIYA"
tel;cell:+380679859815
x-mozilla-html:FALSE
version:2.1
end:vcard


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

* Re: [devel] Выпадание из chroot окружения при сборке rpm-пакета на x86_64
  2008-03-25 11:19       ` Roman Savochenko
@ 2008-03-25 11:25         ` Slava Semushin
  2008-03-25 11:35           ` Roman Savochenko
  2008-03-25 11:44         ` Victor Forsyuk
  1 sibling, 1 reply; 9+ messages in thread
From: Slava Semushin @ 2008-03-25 11:25 UTC (permalink / raw)
  To: ALT Linux Team development discussions

25.03.08, Roman Savochenko<rom_as / diyaorg.dp.ua> написал(а):
[...]
>  Сделал так и всё собралость:
>  ./configure --prefix=%{_prefix} --libdir=$RPM_BUILD_ROOT%{_libdir}
>  --disable-FireBird

Использование стандартных макросов (в данном случае %configure):
- делает спек короче/прощее/понятнее
- избавляет вас заранее от множества проблем


-- 
+ Slava Semushin | slava.semushin @ gmail.com
+ ALT Linux Team | php-coder @ altlinux.ru

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

* Re: [devel] Выпадание из chroot окружения при сборке rpm-пакета на x86_64
  2008-03-25 11:25         ` Slava Semushin
@ 2008-03-25 11:35           ` Roman Savochenko
  0 siblings, 0 replies; 9+ messages in thread
From: Roman Savochenko @ 2008-03-25 11:35 UTC (permalink / raw)
  To: ALT Linux Team development discussions

[-- Attachment #1: Type: text/plain, Size: 400 bytes --]

Slava Semushin wrote:
>>  Сделал так и всё собралость:
>>  ./configure --prefix=%{_prefix} --libdir=$RPM_BUILD_ROOT%{_libdir}
>>  --disable-FireBird
>>     
> Использование стандартных макросов (в данном случае %configure):
> - делает спек короче/прощее/понятнее
> - избавляет вас заранее от множества проблем
Если он присутствует в других дистрибутивах то обязательно использую.

С уважением, Роман

[-- Attachment #2: rom_as.vcf --]
[-- Type: text/x-vcard, Size: 191 bytes --]

begin:vcard
fn:Roman Savochenko
n:Savochenko;Roman
email;internet:rom_as@diyaorg.dp.ua
title:NIP "DIYA"
tel;work:NIP "DIYA"
tel;cell:+380679859815
x-mozilla-html:FALSE
version:2.1
end:vcard


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

* Re: [devel] Выпадание из chroot окружения при сборке rpm-пакета на x86_64
  2008-03-25 11:19       ` Roman Savochenko
  2008-03-25 11:25         ` Slava Semushin
@ 2008-03-25 11:44         ` Victor Forsyuk
  2008-03-25 16:44           ` Roman Savochenko
  1 sibling, 1 reply; 9+ messages in thread
From: Victor Forsyuk @ 2008-03-25 11:44 UTC (permalink / raw)
  To: ALT Linux Team development discussions

On Tue, Mar 25, 2008 at 01:19:22PM +0200, Roman Savochenko wrote:
> Igor Vlasenko wrote:
> >>>Это DESTDIR прикручен к install, но не к вышеупомянутому test.
> >>>      
> >>А i586 и директорией /usr/lib почему работает?
> >>    
> >Смотреть надо. думаю, достаточно всюду насовать $(DESTDIR)
> Всем спасибо! Разобрался. Это для сборки и размещения библиотек в 
> /usr/lib64 я сделал так:
> ./configure --prefix=%{_prefix} --libdir=%{_libdir} --disable-FireBird
> А оно придавило $(DESTDIR)
> Сделал так и всё собралость:
> ./configure --prefix=%{_prefix} --libdir=$RPM_BUILD_ROOT%{_libdir} 
> --disable-FireBird

И при этом ссылок внутрь $RPM_BUILD_ROOT в собранном не осталось??
Уверены?



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

* Re: [devel] Выпадание из chroot окружения при сборке rpm-пакета на x86_64
  2008-03-25 11:44         ` Victor Forsyuk
@ 2008-03-25 16:44           ` Roman Savochenko
  0 siblings, 0 replies; 9+ messages in thread
From: Roman Savochenko @ 2008-03-25 16:44 UTC (permalink / raw)
  To: ALT Linux Team development discussions

[-- Attachment #1: Type: text/plain, Size: 790 bytes --]

Victor Forsyuk wrote:
>>>>> Это DESTDIR прикручен к install, но не к вышеупомянутому test.     
>>>>>           
>>>> А i586 и директорией /usr/lib почему работает?   
>>>>         
>>> Смотреть надо. думаю, достаточно всюду насовать $(DESTDIR)
>>>       
>> Всем спасибо! Разобрался. Это для сборки и размещения библиотек в 
>> /usr/lib64 я сделал так:
>> ./configure --prefix=%{_prefix} --libdir=%{_libdir} --disable-FireBird
>> А оно придавило $(DESTDIR)
>> Сделал так и всё собралость:
>> ./configure --prefix=%{_prefix} --libdir=$RPM_BUILD_ROOT%{_libdir} 
>> --disable-FireBird
>>     
> И при этом ссылок внутрь $RPM_BUILD_ROOT в собранном не осталось??
> Уверены?
>   
В /usr/lib64 все ссылки относительные и они остались нормальные. Всё 
запускается и работает.

С уважением, Роман

[-- Attachment #2: rom_as.vcf --]
[-- Type: text/x-vcard, Size: 191 bytes --]

begin:vcard
fn:Roman Savochenko
n:Savochenko;Roman
email;internet:rom_as@diyaorg.dp.ua
title:NIP "DIYA"
tel;work:NIP "DIYA"
tel;cell:+380679859815
x-mozilla-html:FALSE
version:2.1
end:vcard


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

end of thread, other threads:[~2008-03-25 16:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-25  8:54 [devel] Выпадание из chroot окружения при сборке rpm-пакета на x86_64 Roman Savochenko
2008-03-25  8:58 ` Igor Vlasenko
2008-03-25  9:03   ` Roman Savochenko
2008-03-25  9:06     ` Igor Vlasenko
2008-03-25 11:19       ` Roman Savochenko
2008-03-25 11:25         ` Slava Semushin
2008-03-25 11:35           ` Roman Savochenko
2008-03-25 11:44         ` Victor Forsyuk
2008-03-25 16:44           ` Roman Savochenko

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