ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Hihin Ruslan <ruslandh@gmail.com>
To: devel@lists.altlinux.org, Alexey Tourbin <alexey.tourbin@gmail.com>
Subject: Re: [devel] Что такое runpath ?
Date: Sat, 19 Nov 2016 07:11:55 +0300
Message-ID: <201611190712.18209@ruslandh> (raw)
In-Reply-To: <CA+qzenktO2=7uHex7Zfs5wNEf-JTmWrRt8Ec_tho-ZR4EP5iAw@mail.gmail.com>

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

Здравствуйте Alexey Tourbin
  В сообщении от 13 ноября 2016 Alexey Tourbin написал(a):
> > ...
> > Verifying ELF objects in /usr/src/tmp/palemoon-buildroot
> > (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=norma
> >l,stack=normal,textrel=normal,unresolved=normal) verify-elf:
> > ERROR: ./usr/lib64/newmoon/plugin-container: not found:
> > libmozalloc.so
> > verify-elf: ERROR: ./usr/lib64/newmoon/plugin-container: not
> > found: libxul.so
>
> У него в прежней версии прописан RPATH, а в новой, вероятно,
> не прописан (или прописан неверно).
>
> $ rpmpeek newmoon-26.5.0-alt1.x86_64.rpm \
> objdump -p ./usr/lib64/newmoon/plugin-container |grep PATH
>   RPATH                /usr/lib64/newmoon
>
> plugin-container как программу и запустить не получится, если
> только какой-нибудь скрипт перед запуском не выставит ему в
> окружение LD_LIBRARY_PATH=/usr/lib64/newmoon.
>
> Короче, посмотрите, что говорит
> $ objdump -p
> newmoon-buildroot/usr/lib64/newmoon/plugin-container |grep
> PATH
>

Пришли выходные и опять возвращаюсь к этому вопросу

>Получается что-то странное:
>objdump -p plugin-container  | grep PATH
>  RUNPATH              /usr/lib64/newmoon

Ищу что такое RUNPATH , нахожу:

http://stackoverflow.com/questions/7967848/use-rpath-but-not-runpath
	
"problem is, RUNPATH is recommended over RPATH, and RPATH is 
deprecated, but RUNPATH is currently not supported by all 
systems. so what I do today to make application work? as Qt 
article show, when using plugins it is useful to use RPATH more 
than RUNPATH. so the whole situation is very confusing here" 

Со своим знанием английского, понимаю только то, что эта какая-то 
новая фича, которая заменяет RPATH.
Правильно-ли я понимаю, что у нас пока (??) он не поддерживается 
(RPM ??? )  и мне надо разбираться, почему у меня где-то 
включился соответствующий ключ? Как я понял, если стоят оба 
ключа - собирать и RUNPATH и RPATH, то собирается RPATH, a 
chrpath умеет превращать RPATH в RUNPATH, но не наоборот?

Просто объясните - в каком направлении двигаться - удалять 
RUNPATH, или вешать багу на наш rpm ?

PS Может он не только rpm не поддерживается, но и вообще эта фича 
у нас не работает? 


-- 
  А ещё говорят так  (fortune): 
 
Be free and open and breezy! Enjoy! Things won't get any better 
so get used to it. 
________________________________________________________________________
С уважением Хихин Руслан 

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

  parent reply	other threads:[~2016-11-19  4:11 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-13  8:23 [devel] Проблема при сборке newmon 27.0 Hihin Ruslan
2016-11-13 12:11 ` Alexey Tourbin
2016-11-13 12:29   ` Hihin Ruslan
2016-11-14 22:22   ` Hihin Ruslan
2016-11-15 13:34     ` Ruslan Hihin
2016-11-25 18:02     ` Ivan Zakharyaschev
2016-11-26  9:05       ` Hihin Ruslan
2016-11-27 10:32       ` Ivan Zakharyaschev
2016-11-27 11:11         ` Hihin Ruslan
2016-11-27 11:54           ` Ivan Zakharyaschev
2016-12-02 12:20           ` Ivan Zakharyaschev
2016-12-02 12:34             ` Ivan Zakharyaschev
2016-12-02 13:09             ` Ivan Zakharyaschev
2016-12-03 14:56             ` Hihin Ruslan
2016-12-03 21:19               ` Ivan Zakharyaschev
2016-12-03 23:53               ` Ivan Zakharyaschev
2016-12-04  9:40                 ` Hihin Ruslan
2016-12-04 10:11                   ` Ivan Zakharyaschev
2016-11-27 11:12         ` [devel] [PATCH] verify-elf: honor RUNPATH, too ; was: " Ivan Zakharyaschev
2016-11-29 12:00           ` Ivan Zakharyaschev
2016-11-19  4:11   ` Hihin Ruslan [this message]
2016-11-19  4:20     ` [devel] Что такое runpath ? Hihin Ruslan
2016-11-19  4:39     ` Hihin Ruslan
2016-11-25 18:07     ` Ivan Zakharyaschev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201611190712.18209@ruslandh \
    --to=ruslandh@gmail.com \
    --cc=alexey.tourbin@gmail.com \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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