On Fri, Apr 2, 2010 at 4:35 AM, Marko Gabud <marko.ga...@metronet.hr> wrote: > On Thu, 2010-04-01 at 19:49 +0100, Martin Simmons wrote: >> >>>>> On Thu, 01 Apr 2010 13:46:34 +0200, Marko Gabud said: >> > >> > Hi, >> > >> > did anyone manage to build RPM of bacula 5 on redhat 7.3? >> > >> > I'm trying for some time now without success. >> > >> > This is the output that I get when trying: >> > >> > rpm -bb --define "build_rh7 1" bacula.spec >> > error: parse error in expression >> > error: /root/bacula/bacula-5.0.1/platforms/rpm/bacula.spec:108: >> > parseExpressionBoolean returns -1 >> > >> > Line 108 in bacula.spec file is: >> > %if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version} >> > >> > >> > What am I doing wrong? >> >> I suspect it is because redhat 7.3 uses an older version of rpm that doesn't >> support this syntax. >> >> It might be possible to make the bacula.spec work, but you'll need to edit it >> carefully. >> >> Can you build from the tar file instead of using rpm? >> >> __Martin > > I could build from tar file but we prefer using packages in ourp > roduction enviroment.
I know you might not like what I'm about to say but you really should consider just upgrading your production environment, I know all about the scenarios that might prevent this from happening but RH 7.3 is quite old and would it really matter if you install from source or not at this point? I'd imagine most of your upgrades just to keep a system that old inline with security updates, bug fixes, you'll spend more time and resources editing RPM spec files, finding RPM's that work with 7.3, etc, as it's only going to get worse from this point on. > > Could you direct me to some documentation where I could try to discover > how spec files work? http://rpm.org has everything you need to know about RPM's. > > For now I will try to get spec file from an old version of bacula that > was available on RH 7.3 and try to see what has changed. Probably more than it's worth to be honest. Different versions, syntax, dependencies, etc. In cases like this where you are dealing with old outdated OS's that are no longer maintained and abandoned, installing from source if there are no other means to upgrade your OS is really the more resourceful and less time consuming way to go. -Drew ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users