Thanks Alan. Upon checking the files, I saw the following in /usr/lib/rpm/macros
%_prefix /usr
%_exec_prefix %{_prefix}
%_bindir %{_exec_prefix}/bin
So indeed _bindir has /usr/bin. So this leaves the spec file as the culprit, or it seems to be.
So far these are the things that has been verified
1. No lacking package
2. _bindir is defined as it should be
Since those two facts are established. I played around with the spec file and finally got it to rebuild. Below is the patch for the spec file in rapidsvn-0.9.6-2.rf.src.rpm
/***********begin patch************/
*** rapidsvn.spec.orig 2011-05-02 14:51:34.000000000 +0800
--- rapidsvn.spec 2011-05-02 14:52:07.000000000 +0800
***************
*** 11,17 ****
Summary: Graphical front-end for the Subversion concurrent versioning system.
Name: rapidsvn
Version: 0.9.6
! Release: 2.rf
License: BSD
Group: Development/Tools
URL: http://rapidsvn.tigris.org/
--- 11,17 ----
Summary: Graphical front-end for the Subversion concurrent versioning system.
Name: rapidsvn
Version: 0.9.6
! Release: 2.1.rf
License: BSD
Group: Development/Tools
URL: http://rapidsvn.tigris.org/
***************
*** 58,65 ****
--disable-no-exceptions \
--with-docbook-xsl="%{_datadir}/sgml/docbook/xsl-stylesheets" \
--with-svn-lib="%{_libdir}" \
! %{?_with_apr1:--with-apr-config="%{_bindir}/apr-1-config"} \
! %{?_with_apu1:--with-apu-config="%{_bindir}/apu-1-config"}
# --with-svn-include="%{_includedir}/subversion-1" \
# --with-wx-config="%{_bindir}/wxgtk-2.4-config" \
%{__make} %{?_smp_mflags}
--- 58,65 ----
--disable-no-exceptions \
--with-docbook-xsl="%{_datadir}/sgml/docbook/xsl-stylesheets" \
--with-svn-lib="%{_libdir}" \
! --with-apr-config="%{_bindir}/apr-1-config" \
! --with-apu-config="%{_bindir}/apu-1-config"
# --with-svn-include="%{_includedir}/subversion-1" \
# --with-wx-config="%{_bindir}/wxgtk-2.4-config" \
%{__make} %{?_smp_mflags}
/************end patch*************/
I am a little puzzled with my solution because, in my understanding, the following lines should enable the --with-apr-config and --with-apu-config options.
%{?el5: %define _with_apr1 1}
%{?el5: %define _with_apu1 1}
I can only guess that bash does not recognize these lines thus failing to enable the two options. BTW, I forgot to delete those two lines when I created the patch.
Not only I have a working rapidsvn but this also gave me some additional knowledge! Thanks very much to all!
From: Alan Bartlett <ajb at elrepo.org>
Subject: Re: [users] rapidsvn-0.9.6-2 segmentation fault
To: "RPMforge users" <users at lists.rpmforge.net>
Date: Saturday, 30 April, 2011, 3:43 AM
On 29 April 2011 06:53, Abed-nego G.
Escobal, Jr.
<abednegoyulo at yahoo.com>
Post by Abed-nego G. Escobal, Jr.Since it is now verified that I don't have any lacking
packages, I will now try to modify the spec file. Inspecting
the contents of the spec file
<snip>
Post by Abed-nego G. Escobal, Jr.I found a fedora 9 bug that dates back to 2009 which
indicates that fedora 9 redefines %{_bindir} as /bin instead
of /usr/bin. I don't know if it is the case as I am in now
but I just want to be sure. How will I know if %{_bindir}
has /bin or /usr/bin ?
Off the top of my head, I'll say check in your
/usr/lib/rpm/[redhat/]macros files. (Both of them.)
Alan.
_______________________________________________
users mailing list
users at lists.rpmforge.net
http://lists.rpmforge.net/mailman/listinfo/users