[lvm-devel] Question: build and install LVM2 on Centos7
Leo Yan
leo.yan at linaro.org
Wed Jul 1 02:01:06 UTC 2020
Hi Marian,
On Fri, Jun 26, 2020 at 05:15:25PM +0200, Marian Csontos wrote:
[...]
> > I can manually copy libs from /usr/lib to /usr/lib64 for libdevmapper-*,
> > but seems to me this is not the formal way to do. My question is how I
> > can smoothly upgrade self built LVM tools on Centos7?
>
>
> I think you should just do what rpm macro `%configure` used in EL7 spec file
> does. That expands to rather long statement:
>
>
> ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu
> --program-prefix= --disable-dependency-tracking --prefix=/usr
> --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
> --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64
> --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib
> --mandir=/usr/share/man --infodir=/usr/share/info
Thanks for kindly replying; It's very useful, I tried it and works
well. Just note, I also found the macro `%configure` can be read out
with the command 'rpm --eval %configure'.
For the best practice for releasing, I recognized the rpm package might
be a better way to move forward [1]. Will find time to try this as
well.
Thank you for the helping.
Leo
[1] https://www.thegeekstuff.com/2015/02/rpm-build-package-example/
More information about the lvm-devel
mailing list