From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] HDF5: not yet set-versioned
Date: Wed, 27 Oct 2010 10:05:55 +0400
Message-ID: <20101027060555.GB21739@altlinux.org> (raw)
In-Reply-To: <4CC792F9.900@mmedia2.kemsu.ru>
[-- Attachment #1: Type: text/plain, Size: 1277 bytes --]
On Wed, Oct 27, 2010 at 10:48:25AM +0800, REAL wrote:
> Dmitry V. Levin пишет:
> >lib.prov обрабатывает только те файлы,
> >которые видит ldconfig.
> >И %add_findprov_lib_path в данном случае не поможет.
> >Так что положите ваши разделяемые
> >библиотеки в %_libdir/
> >Ну или хотя бы призрачные ссылки на библиотеки:
> >%ghost %_libdir/lib*.so.*
>
> Этого мы и пытались избежать. Поэтому не вариант.
Чего вы пытались избежать, библиотек или призрачных ссылок на них?
Вот патч, слепленный наспех на коленке, который работает:
--- a/libhdf5.spec
+++ b/libhdf5.spec
@@ -120,8 +120,10 @@ mv %buildroot%hdfdir/lib/lib%oname.settings \
# alternatives
install -d %buildroot%_altdir
+mkdir -p %buildroot%_libdir
pushd %buildroot%hdfdir/lib
for i in $(ls *.so.*) $(ls *.settings); do
+ ln -s ../..%hdfdir/lib/$i %buildroot%_libdir/
echo "%_libdir/$i %hdfdir/lib/$i %priority" >> \
%buildroot%_altdir/%name.alternatives
done
@@ -160,6 +162,7 @@ echo "%_pkgconfigdir/%oname.pc %_pkgconfigdir/%oname-seq.pc %priority" >> \
%files
%doc COPYING README.txt release_docs/{HISTORY*,RELEASE.txt}
+%ghost %_libdir/lib*.so.*
%hdfdir/lib/*.so.*
# used to show configuration at runtime
%hdfdir/lib/libhdf5-%sover.settings
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2010-10-27 6:05 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-26 7:00 REAL
2010-10-26 8:00 ` Dmitry V. Levin
2010-10-26 7:15 ` REAL
2010-10-26 8:17 ` Dmitry V. Levin
2010-10-26 7:50 ` REAL
2010-10-26 10:28 ` Dmitry V. Levin
2010-10-26 9:42 ` REAL
2010-10-26 16:39 ` Dmitry V. Levin
2010-10-27 2:48 ` REAL
2010-10-27 3:05 ` REAL
2010-10-27 6:05 ` Dmitry V. Levin [this message]
2010-10-27 5:16 ` REAL
2010-10-27 5:29 ` REAL
2010-10-27 6:25 ` Денис Смирнов
2010-10-27 5:34 ` REAL
2010-10-27 5:34 ` REAL
2010-10-27 6:42 ` Денис Смирнов
2010-10-27 5:51 ` REAL
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=20101027060555.GB21739@altlinux.org \
--to=ldv@altlinux.org \
--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