[OE-core] [PATCH] cracklib, zlib: install to /lib instead of /usr/libxx

Yao Zhao yao.zhao at windriver.com
Tue Aug 7 18:35:53 UTC 2012


On 12-08-07 02:30 PM, Phil Blundell wrote:
> On Tue, 2012-08-07 at 14:30 -0400, Yao Zhao wrote:
>> On 12-08-07 01:39 PM, Derek Buitenhuis wrote:
>>> On 07/08/2012 1:31 PM, Yao Zhao wrote:
>>>> In order to fix the QA Issue for libpam which installed to /lib but
>>>> reference /usr/libxx/libz and libcrack, install libz and libcrack
>>>> to /lib.
>>> OpenBSD puts libpam.so in /lib, so it seems kosher...
>>>
>>>>    do_install() {
>>>> -	oe_runmake DESTDIR=${D} install
>>>> +	#libz.a installs to libdir, overwrite the env libdir
>>>> +	#install pkgconfig to env libdir/pkgconfig
>>>> +	oe_runmake DESTDIR=${D} pkgconfigdir="${libdir}/pkgconfig" \
>>>> +		   libdir="${base_libdir}" install
>>>>    }
>>> If you're specifying --libdir when configuring, why do you need
>>> libdir during make, as well?
>> zlib is not using autotools although it has configure.
>> when install, oe_runmake will be make -e so Makefile will always use
>> env's libdir which is the usr/libxx, we have to overwrite it when install.
> Where do libz.a and libz.so end up after your patch?
packages-split$ tree
.
├── zlib
│ └── lib
│ ├── libz.so.1 -> libz.so.1.2.7
│ └── libz.so.1.2.7
├── zlib-dbg
│ ├── lib
│ └── usr
│ └── src
│ └── debug
│ └── zlib-1.2.7-r0
│ └── zlib-1.2.7
│ ├── adler32.c
│ ├── compress.c
│ ├── crc32.c
│ ├── crc32.h
│ ├── deflate.c
│ ├── deflate.h
│ ├── gzclose.c
│ ├── gzguts.h
│ ├── gzlib.c
│ ├── gzread.c
│ ├── gzwrite.c
│ ├── infback.c
│ ├── inffast.c
│ ├── inffast.h
│ ├── inffixed.h
│ ├── inflate.c
│ ├── inflate.h
│ ├── inftrees.c
│ ├── inftrees.h
│ ├── trees.c
│ ├── trees.h
│ ├── uncompr.c
│ ├── zconf.h
│ ├── zlib.h
│ ├── zutil.c
│ └── zutil.h
├── zlib-dev
│ ├── lib
│ │ └── libz.so -> libz.so.1.2.7
│ └── usr
│ ├── include
│ │ ├── zconf.h
│ │ └── zlib.h
│ └── lib
│ └── pkgconfig
│ └── zlib.pc
├── zlib-doc
│ └── usr
│ └── share
│ └── man
│ └── man3
│ └── zlib.3
├── zlib-locale
├── zlib.shlibdeps
└── zlib-staticdev
└── lib
└── libz.a

cracklib
├── lib
│ ├── libcrack.so.2 -> libcrack.so.2.8.1
│ └── libcrack.so.2.8.1
└── usr
├── sbin
│ ├── cracklib-check
│ ├── cracklib-format
│ ├── cracklib-packer
│ ├── cracklib-unpacker
│ └── create-cracklib-dict
└── share
└── cracklib
├── cracklib.magic
└── cracklib-small
cracklib-staticdev/
└── lib
└── libcrack.a

usr/sbin/* reference lib should be fine, so I didn't change that part.

yao
> p.
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core




More information about the Openembedded-core mailing list