|
From: Scott C. <can...@os...> - 2007-08-24 07:03:51
|
> This is strange. Fix is seams OK. Anyway, I have looked on this and I
> can say that ownsAppender is broken in this context. To work as intended
> this function must be virtual. So I will fix it.
Usually "using" works for me when there's a single function override
signature, but there were overloads here, so I probably could qualify it,
but whatever.
Here are the next round of packaging cleanups. I added two missing headers
to the makefiles, and revised log4cpp.spec.in using a process I'm trying on
several libraries. I'm making them work on Solaris, which reveals a lot of
hidden Linux assumptions and missing macros in the specfile, and verifies
that it will work without gcc/g++ and when installed to a different root.
This specfile was in good shape, I just fixed a few small issues.
The side effect is that you can actually install it as an RPM on Solaris
using the Sun supplied rpm port.
-- Scott
Index: include/log4cpp/Makefile.am
===================================================================
RCS file: /cvsroot/log4cpp/log4cpp/include/log4cpp/Makefile.am,v
retrieving revision 1.40
diff -r1.40 Makefile.am
45a46
> convenience.h \
Index: src/Makefile.am
===================================================================
RCS file: /cvsroot/log4cpp/log4cpp/src/Makefile.am,v
retrieving revision 1.36
diff -r1.36 Makefile.am
5c5
< noinst_HEADERS = snprintf.c
---
> noinst_HEADERS = snprintf.c Localtime.hh
Index: log4cpp.spec.in
===================================================================
RCS file: /cvsroot/log4cpp/log4cpp/log4cpp.spec.in,v
retrieving revision 1.12
diff -r1.12 log4cpp.spec.in
12c12
< Copyright: LGPL
---
> License: LGPL
41a42
> %{!?_without_doxygenrpm:BuildRequires: doxygen}
48c49
< rm -rf $RPM_BUILD_ROOT
---
> %{__rm} -rf $RPM_BUILD_ROOT
51c52
< CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --enable-doxygen
---
> CC=%{__cc} CXX=%{__cxx} ./configure --prefix=%{prefix} --enable-doxygen
54c55
< make
---
> %{__make}
57c58
< rm -rf $RPM_BUILD_ROOT
---
> %{__rm} -rf $RPM_BUILD_ROOT
59c60
< make prefix=$RPM_BUILD_ROOT%{prefix} docdir=$RPM_BUILD_ROOT/%{manualdir}
install
---
> %{__make} prefix=$RPM_BUILD_ROOT%{prefix}
docdir=$RPM_BUILD_ROOT/%{manualdir} install
61c62
< rm -rf $RPM_BUILD_ROOT
---
> %{__rm} -rf $RPM_BUILD_ROOT
63,64c64,66
< %post
< /sbin/ldconfig
---
> %ifnos solaris2.8 solaris2.9 solaris2.10
> %post -p /sbin/ldconfig
> %endif
68,69c70,71
< perl -pi -e "s|^libdir='[^\']*'|libdir='$RPM_INSTALL_PREFIX0/lib'|"
$RPM_INSTALL_PREFIX0/lib/liblog4cpp.la
< perl -pi -e "s|^prefix=\"[^\"]*\"|prefix=\"$RPM_INSTALL_PREFIX0\"|"
$RPM_INSTALL_PREFIX0/bin/log4cpp-config
---
> %{__perl} -pi -e
"s|^libdir='[^\']*'|libdir='$RPM_INSTALL_PREFIX0/lib'|"
$RPM_INSTALL_PREFIX0/lib/liblog4cpp.la
> %{__perl} -pi -e
"s|^prefix=\"[^\"]*\"|prefix=\"$RPM_INSTALL_PREFIX0\"|"
$RPM_INSTALL_PREFIX0/bin/log4cpp-config
71,73c73,76
<
< %postun
< /sbin/ldconfig
---
>
> %ifnos solaris2.8 solaris2.9 solaris2.10
> %postun -p /sbin/ldconfig
> %endif
|