* [newbies] RPATH contains standard library path "/usr/lib64"
@ 2016-04-10 18:23 Stas
2016-04-11 15:31 ` Michael Shigorin
0 siblings, 1 reply; 4+ messages in thread
From: Stas @ 2016-04-10 18:23 UTC (permalink / raw)
To: devel-newbies
Хэшером пытаюсь собрать megatools.
Получаю ошибку на стадии автоматической проверки в %install - verify-elf
сообщает о недоспустимом значении RPATH - /usr/lib64
Как с этим бороться? Неужели нужно "родную" бибилиотеку пакета
засовывать в подкаталог относитлеьно /usr/lib64 ?
=================
+ /usr/lib/rpm/brp-alt
Cleaning files in /usr/src/tmp/megatools-buildroot (auto)
removed './usr/lib64/libmega.la'
mode of './usr/lib64/libmega.so.0.0.0' changed from 0755 (rwxr-xr-x) to
0644 (rw-r--r--)
Verifying and fixing files in /usr/src/tmp/megatools-buildroot
(binconfig,pkgconfig,libtool,desktop)
/usr/lib64/pkgconfig/libmega.pc: Cflags: '-I${includedir}' --> ''
/usr/lib64/pkgconfig/libmega.pc: Libs: '-L${libdir} -lmega' --> '-lmega'
Compressing files in /usr/src/tmp/megatools-buildroot (auto)
Adjusting library links in /usr/src/tmp/megatools-buildroot
./usr/lib64:
libmega.so.0 -> libmega.so.0.0.0
Verifying ELF objects in /usr/src/tmp/megatools-buildroot
(arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal)
verify-elf: ERROR: ./usr/bin/megarm: RPATH contains standard library
path "/usr/lib64": /usr/lib64
verify-elf: ERROR: ./usr/bin/megafs: RPATH contains standard library
path "/usr/lib64": /usr/lib64
verify-elf: ERROR: ./usr/bin/megadl: RPATH contains standard library
path "/usr/lib64": /usr/lib64
verify-elf: ERROR: ./usr/bin/megaget: RPATH contains standard library
path "/usr/lib64": /usr/lib64
verify-elf: ERROR: ./usr/bin/megadf: RPATH contains standard library
path "/usr/lib64": /usr/lib64
verify-elf: ERROR: ./usr/bin/megaput: RPATH contains standard library
path "/usr/lib64": /usr/lib64
verify-elf: ERROR: ./usr/bin/megals: RPATH contains standard library
path "/usr/lib64": /usr/lib64
verify-elf: ERROR: ./usr/bin/megareg: RPATH contains standard library
path "/usr/lib64": /usr/lib64
verify-elf: ERROR: ./usr/bin/megacopy: RPATH contains standard library
path "/usr/lib64": /usr/lib64
verify-elf: ERROR: ./usr/bin/megamkdir: RPATH contains standard library
path "/usr/lib64": /usr/lib64
error: Bad exit status from /usr/src/tmp/rpm-tmp.66587 (%install)
=================
--
Станислав Дёгтев
Служба "Ваш админ"
Мои контакты:
- jabber: grumbler@grumbler.org
- email: stas.grumbler@gmail.com и stas@vashadmin.su
- телефоны в Е-бурге +79045430461 и +79222112259
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [newbies] RPATH contains standard library path "/usr/lib64"
2016-04-10 18:23 [newbies] RPATH contains standard library path "/usr/lib64" Stas
@ 2016-04-11 15:31 ` Michael Shigorin
2016-04-11 15:46 ` Mikhail Efremov
0 siblings, 1 reply; 4+ messages in thread
From: Michael Shigorin @ 2016-04-11 15:31 UTC (permalink / raw)
To: devel-newbies
On Sun, Apr 10, 2016 at 11:23:07PM +0500, Stas wrote:
> Как с этим бороться?
Смотреть, кто и зачем порождает этот rpath -- возможно,
хватит какого %configure --disable-rpath, а в клиническом
случае при нежелании чинить можно кувалдой стукнуть:
BuildRequires: chrpath
[...]
%install
[...]
chrpath -d %buildroot%.../...
--
---- WBR, Michael Shigorin / http://altlinux.org
------ http://opennet.ru / http://anna-news.info
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [newbies] RPATH contains standard library path "/usr/lib64"
2016-04-11 15:31 ` Michael Shigorin
@ 2016-04-11 15:46 ` Mikhail Efremov
2016-04-11 15:48 ` Michael Shigorin
0 siblings, 1 reply; 4+ messages in thread
From: Mikhail Efremov @ 2016-04-11 15:46 UTC (permalink / raw)
To: devel-newbies
On Mon, 11 Apr 2016 18:31:14 +0300 Michael Shigorin wrote:
> On Sun, Apr 10, 2016 at 11:23:07PM +0500, Stas wrote:
> > Как с этим бороться?
>
> Смотреть, кто и зачем порождает этот rpath -- возможно,
> хватит какого %configure --disable-rpath, а в клиническом
> случае при нежелании чинить можно кувалдой стукнуть:
>
> BuildRequires: chrpath
> [...]
>
> %install
> [...]
> chrpath -d %buildroot%.../...
Более подробно:
https://lists.altlinux.org/pipermail/devel/2011-December/192727.html
--
WBR, Mikhail Efremov
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [newbies] RPATH contains standard library path "/usr/lib64"
2016-04-11 15:46 ` Mikhail Efremov
@ 2016-04-11 15:48 ` Michael Shigorin
0 siblings, 0 replies; 4+ messages in thread
From: Michael Shigorin @ 2016-04-11 15:48 UTC (permalink / raw)
To: devel-newbies
On Mon, Apr 11, 2016 at 06:46:12PM +0300, Mikhail Efremov wrote:
> > > Как с этим бороться?
> > Смотреть, кто и зачем порождает этот rpath
> https://lists.altlinux.org/pipermail/devel/2011-December/192727.html
Собственно, у нас есть даже страничка вики:
http://www.altlinux.org/ProblemWithVerifyELFAndRPATH
--
---- WBR, Michael Shigorin / http://altlinux.org
------ http://opennet.ru / http://anna-news.info
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-04-11 15:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-10 18:23 [newbies] RPATH contains standard library path "/usr/lib64" Stas
2016-04-11 15:31 ` Michael Shigorin
2016-04-11 15:46 ` Mikhail Efremov
2016-04-11 15:48 ` Michael Shigorin
devel@ where you _can_ ask
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel-newbies/0 devel-newbies/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-newbies devel-newbies/ http://lore.altlinux.org/devel-newbies \
devel-newbies@lists.altlinux.org devel-newbies@lists.altlinux.ru devel-newbies@lists.altlinux.com
public-inbox-index devel-newbies
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel-newbies
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git