I looked somewhat further and glared at the amanda*spec file. I
believe it is possible there is a line missing:
144 # Detect Suse variants.
145 %if %{_vendor} == "suse"
146 %define dist SuSE
147 %if %(awk '$1 == "openSUSE" { exit 1; }' /etc/SuSE-release; echo $?)
148 %define disttag suse
149 %define distver %(awk '$1=="openSUSE" {print $2}'
/etc/SuSE-release )
150 %define curl curl
151 %endif
152 %if %(awk '$1 == "SUSE" { exit 1; }' /etc/SuSE-release; echo $?)
153 %define disttag %(awk '$1=="SUSE" {$3=="Enterprise" ? TAG="sles" :
TAG="suse" ; print TAG}' /etc/SuSE-release)
154 %define distver %(awk '$1=="SUSE" {$3=="Enterprise" ? VER=$5 :
VER= $3 ; print VER}' /etc/SuSE-release)
155 # Always use quotes in rpm comparisons if values could be
interpret ed
156 # as integers.
157 %define curl curl
158 %if "%{distver}" == "9"
159 %undefine LDFLAGS
160 %endif
161 %endif
162 %endif
Line 150 "%define curl curl" was missing in the file
and added by me. Now, the compilation runs through
to the end.
Regards, Charles
On Thu, 14 Apr 2011 15:41:40 +0200
Charles Stroom <[email protected]> wrote:
> Greetings,
>
> I recently upgraded to openSUSE 11.4 and wanted to upgrade my amanda
> 2.6 to 3.2.2. As there is no rpm available for 11.4, I am trying the
> same route which was succesful 2 years ago:
> -download the src.rpm package
> -rpm -i amanda*.src.rpm
> -rpmbuild -ba /usr/src/packages/SPECS/amanda.spec
>
> However, this time the rpmbuild fails on something to do with a
> BuildRequire line for curl (I think):
> --
> contrib@fiume:> rpmbuild -ba /usr/src/packages/SPECS/amanda.spec
> error: line 219: Dependency tokens must begin with alpha-numeric, '_'
> or '/': BuildRequires: %{curl} >= 7.10.0 --
>
> I think I have all depencies correct:
> --
> charles@fiume:~> rpm -qa |grep autoconf
> sane-backends-autoconfig-1.0.22-1.5.1.i586
> autoconf-2.68-4.1.noarch
> charles@fiume:~> rpm -qa |grep automake
> automake-1.11.1-7.1.noarch
> charles@fiume:~> rpm -qa |grep binut
> binutils-gold-2.21-13.1.i586
> binutils-2.21-13.1.i586
> charles@fiume:~> rpm -qa |grep bison
> bison-2.4.1-6.1.i586
> charles@fiume:~> rpm -qa |grep flex
> flex-2.5.35-54.4.i586
> charles@fiume:~> rpm -qa |grep gcc
> gcc-c++-4.5-19.1.i586
> gcc45-c++-4.5.1_20101208-9.8.i586
> libstlport_gcc4-4.6.2-9.1.i586
> gcc-4.5-19.1.i586
> libgcc45-4.5.1_20101208-9.8.i586
> gcc45-4.5.1_20101208-9.8.i586
> gcc-fortran-4.5-19.1.i586
> gcc45-fortran-4.5.1_20101208-9.8.i586
> charles@fiume:~> rpm -qa |grep glib2
> libpackagekit-glib2-14-0.6.12-1.4.1.i586
> glib2-branding-openSUSE-11.4-4.2.noarch
> glib2-tools-2.28.0-3.6.1.i586
> glib2-devel-2.28.0-3.6.1.i586
> charles@fiume:~> rpm -qa |grep -i readline
> readline-devel-6.1-18.25.1.i586
> readline-doc-6.1-18.25.1.noarch
> libreadline6-6.1-18.25.1.i586
> perl-TermReadLine-Gnu-1.16-116.1.i586
> charles@fiume:~> rpm -qa |grep -i curl
> curl-7.21.2-9.1.i586
> libcurl4-7.21.2-9.1.i586
> libcurl-devel-7.21.2-9.1.i586
> charles@fiume:~> rpm -qa |grep -i openssl
> perl-Crypt-OpenSSL-Random-0.04-12.1.i586
> libopenssl-devel-1.0.0c-17.1.i586
> libopenssl1_0_0-1.0.0c-17.1.i586
> openssl-1.0.0c-17.1.i586
> perl-Crypt-OpenSSL-RSA-0.26-6.1.i586
> libopenssl0_9_8-0.9.8m-5.2.i586
> --
>
> The particular lines in the SPECS/amanda.spec file are:
> --
> 206 # TODO - Need required versions for these:
> 207 BuildRequires: autoconf
> 208 BuildRequires: automake
> 209 BuildRequires: binutils
> 210 BuildRequires: bison
> 211 BuildRequires: flex
> 212 BuildRequires: gcc
> 213 BuildRequires: glib2 >= 2.2.0
> 214 BuildRequires: glib2-devel
> 215 BuildRequires: readline
> 216 # Note: newer distros have changed most *-devel to lib*-devel,
> and added a 217 # provides tag for backwards compat.
> 218 BuildRequires: readline-devel
> 219 BuildRequires: %{curl} >= 7.10.0
> 220 BuildRequires: %{curl}-devel >= 7.10.0
> 221 BuildRequires: openssl
> 222 BuildRequires: openssl-devel
> 223 BuildRequires: perl(ExtUtils::Embed)
> --
>
> Any help would be appreciated.
>
> Regards, Charles
>
>
>
>
>
>
>
>
> --
> Charles Stroom
> email: charles at no-spam.stremen.xs4all.nl (remove the "no-spam.")
--
Charles Stroom
email: charles at no-spam.stremen.xs4all.nl (remove the "no-spam.")