Alin Năstac kirjoitti:
> Mike Frysinger wrote:
>> how about 'sqlite' means you want sqlite irregardless of version ... then
>> sqlite-2 either gets punted from apr-util or it gets a local USE
>> flag 'sqlite-old' for older cruft
>>
> Wouldn't be better to determine what version of sqlite should be used
> based on the version of sqlite currently installed on the system?
> Something like:
> sqlite_atom=$(best_version dev-db/sqlite)
> sqlite_major_version=${sqlite_atom#*/*-} #reduce it to $PV-$PR
> sqlite_major_version=${sqlite_major_version%%.*} # major version
>
> ... ebuild stuff...
> econf \
> $(use_enable sqlite sqlite${sqlite_major_version})
>
> Better yet, why not make an sqlite.eclass that would contain at least
> get_sqlite_major_version()?
> No. The produced binaries can't depend on the build system like this. Breaks binary packages etc. Regards, Petteri
signature.asc
Description: OpenPGP digital signature
