ALT Linux Team development discussions
 help / color / mirror / Atom feed
* Re: [devel] hasher, rpath, $ORIGIN
  2010-01-24  2:33 [devel] hasher, rpath, $ORIGIN Max Ivanov
@ 2010-01-23  1:30 ` Igor Vlasenko
  2010-01-24 12:50   ` Max Ivanov
  2010-01-24  2:43 ` Max Ivanov
  1 sibling, 1 reply; 5+ messages in thread
From: Igor Vlasenko @ 2010-01-23  1:30 UTC (permalink / raw)
  To: ALT Linux Team development discussions

On Sun, Jan 24, 2010 at 02:33:48AM +0000, Max Ivanov wrote:
> Почему-то javac (от sun) будучи поставленным в hasher не видит
> libjli.so, в хост системе все ок. Ничего не понимаю :)
> 
> [builder@rbnote bin]$ readelf -a ./javac  |grep jli
>  0x00000001 (NEEDED)                     Shared library: [libjli.so]
>  0x0000000f (RPATH)                      Library rpath:
> [$ORIGIN/../lib/i386/jli:$ORIGIN/../jre/lib/i386/jli]
>   0x0030: Version: 1  File: libjli.so  Cnt: 1
> 
> При этом strace javac не показывает даже попыток поиска  по rpath,
> только стандартные пути =(
> 
> Вопрос стандартный, где подкрутить, чтобы заработало?

http://www.altlinux.org/Java/JavaPackagingFAQ#Hasher

-- 

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



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

* Re: [devel] hasher, rpath, $ORIGIN
  2010-01-24 12:50   ` Max Ivanov
@ 2010-01-23  8:18     ` Igor Vlasenko
  0 siblings, 0 replies; 5+ messages in thread
From: Igor Vlasenko @ 2010-01-23  8:18 UTC (permalink / raw)
  To: ALT Linux Team development discussions

On Sun, Jan 24, 2010 at 12:50:32PM +0000, Max Ivanov wrote:
> Спасибо за подсказку :) Но все равно не срослось =( Прописал
> зависимость /proc в BuildReuires (в pre тоже пробовал), в итоге
> получаю отлуп
> hasher-priv: mount: /proc: mount point not allowed
> >> Вопрос стандартный, где подкрутить, чтобы заработало?

man hasher-priv.conf

-- 

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



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

* [devel] hasher, rpath, $ORIGIN
@ 2010-01-24  2:33 Max Ivanov
  2010-01-23  1:30 ` Igor Vlasenko
  2010-01-24  2:43 ` Max Ivanov
  0 siblings, 2 replies; 5+ messages in thread
From: Max Ivanov @ 2010-01-24  2:33 UTC (permalink / raw)
  To: ALT Linux Team development discussions

Почему-то javac (от sun) будучи поставленным в hasher не видит
libjli.so, в хост системе все ок. Ничего не понимаю :)

[builder@rbnote bin]$ readelf -a ./javac  |grep jli
 0x00000001 (NEEDED)                     Shared library: [libjli.so]
 0x0000000f (RPATH)                      Library rpath:
[$ORIGIN/../lib/i386/jli:$ORIGIN/../jre/lib/i386/jli]
  0x0030: Version: 1  File: libjli.so  Cnt: 1

При этом strace javac не показывает даже попыток поиска  по rpath,
только стандартные пути =(

Вопрос стандартный, где подкрутить, чтобы заработало?

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

* Re: [devel] hasher, rpath, $ORIGIN
  2010-01-24  2:33 [devel] hasher, rpath, $ORIGIN Max Ivanov
  2010-01-23  1:30 ` Igor Vlasenko
@ 2010-01-24  2:43 ` Max Ivanov
  1 sibling, 0 replies; 5+ messages in thread
From: Max Ivanov @ 2010-01-24  2:43 UTC (permalink / raw)
  To: ALT Linux Team development discussions

Еще забыл добавить в копилку странностей:

1) $ ldd -r /usr/lib/jvm/java/bin/javac
        linux-gate.so.1 =>  (0xb77c0000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb779f000)
        libjli.so =>
/usr/lib/jvm/java/bin/../jre/lib/i386/jli/libjli.so (0xb7796000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7791000)
        libc.so.6 => /lib/libc.so.6 (0xb7639000)
        /lib/ld-linux.so.2 (0xb77c1000)


2) $ LD_DEBUG=libs /usr/lib/jvm/java/bin/javac
 ....
     10692:     find library=libjli.so [0]; searching
     10692:      search
path=tls/i686/sse2:tls/i686:tls/sse2:tls:i686/sse2:i686:sse2:
 (RPATH from file /usr/lib/jvm/java/bin/javac)
     10692:       trying file=tls/i686/sse2/libjli.so
     10692:       trying file=tls/i686/libjli.so
     10692:       trying file=tls/sse2/libjli.so
     10692:       trying file=tls/libjli.so
     10692:       trying file=i686/sse2/libjli.so
     10692:       trying file=i686/libjli.so
     10692:       trying file=sse2/libjli.so
     10692:       trying file=libjli.so
     10692:      search cache=/etc/ld.so.cache
     10692:      search
path=/lib/tls/i686/sse2:/lib/tls/i686:/lib/tls/sse2:/lib/tls:/lib/i686/sse2:/lib/i686:/lib/sse2:/lib:/usr/lib/tls/i686/sse2:/usr/lib/tls/i686:/usr/lib/tls/sse2:/usr/lib/tls:/usr/lib/i686/sse2:/usr/lib/i686:/usr/lib/sse2:/usr/lib
               (system search path)
     10692:       trying file=/lib/tls/i686/sse2/libjli.so
     10692:       trying file=/lib/tls/i686/libjli.so
     10692:       trying file=/lib/tls/sse2/libjli.so
     10692:       trying file=/lib/tls/libjli.so
     10692:       trying file=/lib/i686/sse2/libjli.so
     10692:       trying file=/lib/i686/libjli.so
     10692:       trying file=/lib/sse2/libjli.so
     10692:       trying file=/lib/libjli.so
     10692:       trying file=/usr/lib/tls/i686/sse2/libjli.so
     10692:       trying file=/usr/lib/tls/i686/libjli.so
     10692:       trying file=/usr/lib/tls/sse2/libjli.so
     10692:       trying file=/usr/lib/tls/libjli.so
     10692:       trying file=/usr/lib/i686/sse2/libjli.so
     10692:       trying file=/usr/lib/i686/libjli.so
     10692:       trying file=/usr/lib/sse2/libjli.so
     10692:       trying file=/usr/lib/libjli.so



24.01.10, Max Ivanov<ivanov.maxim@gmail.com> написал(а):
> Почему-то javac (от sun) будучи поставленным в hasher не видит
> libjli.so, в хост системе все ок. Ничего не понимаю :)
>
> [builder@rbnote bin]$ readelf -a ./javac  |grep jli
>  0x00000001 (NEEDED)                     Shared library: [libjli.so]
>  0x0000000f (RPATH)                      Library rpath:
> [$ORIGIN/../lib/i386/jli:$ORIGIN/../jre/lib/i386/jli]
>   0x0030: Version: 1  File: libjli.so  Cnt: 1
>
> При этом strace javac не показывает даже попыток поиска  по rpath,
> только стандартные пути =(
>
> Вопрос стандартный, где подкрутить, чтобы заработало?
>


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

* Re: [devel] hasher, rpath, $ORIGIN
  2010-01-23  1:30 ` Igor Vlasenko
@ 2010-01-24 12:50   ` Max Ivanov
  2010-01-23  8:18     ` Igor Vlasenko
  0 siblings, 1 reply; 5+ messages in thread
From: Max Ivanov @ 2010-01-24 12:50 UTC (permalink / raw)
  To: ALT Linux Team development discussions

Спасибо за подсказку :) Но все равно не срослось =( Прописал
зависимость /proc в BuildReuires (в pre тоже пробовал), в итоге
получаю отлуп

$ gear --commit --hasher -- hsh-rebuild -v --target=i586
--mountpoints=/proc /tmp/.private/$USER/
...
hsh-install: fetched file dependencies from packages being installed.
hsh-install: calculated mount points: /proc
hsh-install: fetched installed file dependencies.
hsh-install: calculated mount points: /proc
hasher-priv: mount: /proc: mount point not allowed
hsh-install: Packages installation failed.


23.01.10, Igor Vlasenko<vlasenko@imath.kiev.ua> написал(а):
> On Sun, Jan 24, 2010 at 02:33:48AM +0000, Max Ivanov wrote:
>> Почему-то javac (от sun) будучи поставленным в hasher не видит
>> libjli.so, в хост системе все ок. Ничего не понимаю :)
>>
>> [builder@rbnote bin]$ readelf -a ./javac  |grep jli
>>  0x00000001 (NEEDED)                     Shared library: [libjli.so]
>>  0x0000000f (RPATH)                      Library rpath:
>> [$ORIGIN/../lib/i386/jli:$ORIGIN/../jre/lib/i386/jli]
>>   0x0030: Version: 1  File: libjli.so  Cnt: 1
>>
>> При этом strace javac не показывает даже попыток поиска  по rpath,
>> только стандартные пути =(
>>
>> Вопрос стандартный, где подкрутить, чтобы заработало?
>
> http://www.altlinux.org/Java/JavaPackagingFAQ#Hasher
>
> --
>
> Dr. Igor Vlasenko
> --------------------
> Topology Department
> Institute of Math
> Kiev, Ukraine
>
> _______________________________________________
> Devel mailing list
> Devel@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/devel

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

end of thread, other threads:[~2010-01-24 12:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-24  2:33 [devel] hasher, rpath, $ORIGIN Max Ivanov
2010-01-23  1:30 ` Igor Vlasenko
2010-01-24 12:50   ` Max Ivanov
2010-01-23  8:18     ` Igor Vlasenko
2010-01-24  2:43 ` Max Ivanov

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