SPECS (rpm-4_5): rpm.spec - deem. need different sources for db due md5

Jakub Bogusz qboosh at pld-linux.org
Wed Sep 3 17:15:30 CEST 2008


On Wed, Sep 03, 2008 at 04:44:34PM +0200, glen wrote:
> Author: glen                         Date: Wed Sep  3 14:44:34 2008 GMT
> Module: SPECS                         Tag: rpm-4_5
> ---- Log message:
> - deem. need different sources for db due md5

> -Source19:	http://download.oracle.com/berkeley-db/db-%{reqdb_ver}.tar.gz
> +Source19:	http://download.oracle.com/berkeley-db/db-4.5.20.tar.gz
>  # Source19-md5:	b0f1c777708cb8e9d37fb47e7ed3312d
> +Source20:	http://download.oracle.com/berkeley-db/db-4.7.25.tar.gz
> +# Source20-md5:	ec2b87e833779681a0c3a814aa71359e
>  %patchset_source -f http://www.oracle.com/technology/products/berkeley-db/db/update/%{reqdb_ver}/patch.%{reqdb_ver}.%g 1 %{reqdb_patch}
>  Patch1067:	%{name}-disable-features.patch
>  Patch1070:	%{name}-rpmrc-ac.patch
> @@ -656,8 +658,12 @@
>  %prep
>  %setup -q
>  %if %{with internal_db}
> +%if "%{pld_release}" == "th"
> +%{__tar} -zxf %{SOURCE20} -C db3 --strip-components=1
> +%else
>  %{__tar} -zxf %{SOURCE19} -C db3 --strip-components=1
>  %endif
> +%endif

Uh oh. Haven't "internal db" madness reached its maximum yet?

Serveral issues now:
- It makes rpm sources weight almost 30MB(!) (compared to 7MB from upstream,
  which IIRC include yet one more copy of db sources)

- files (patches) list is conditional, not strictly defined by spec
  alone

- using different version of db than system one requires to provide
  db utils (db_recover, db_dump etc.) in that particular version as well

What are profits?
None if version of internal db ever changes. This would mean need to
maintain some old db version even if Oracle stops.


-- 
Jakub Bogusz    http://qboosh.pl/


More information about the pld-devel-en mailing list