Hi,
I've prepared patches for ABRT & libreport so that they build on openSUSE 12.2. There are many ugly hacks just to make it build ;)
== btparser == * master builds without problems
== libreport == * clone latest git & apply the attached patch * install dependencies: dbus-devel = dbus-1-devel; nss-devel = mozilla-nss-devel; json-c-devel = libjson-devel; * for some reason libtar-devel is in "Education" repository, you need to enable it in YaST * ./autogen.sh && ./configure --without-bugzilla && make rpm * this builds everything except bugzilla. libreport-anaconda and libreport-compat are built, but they depend on libreport-bugzilla.
== ABRT == * clone latest git & apply the attached patch * install dependencies: especially dbus-1-glib-devel * ./autogen.sh && ./configure && make rpm * this builds everything except bodhi (bodhi links to libreport-web, which is not built because of missing bugzilla). abrt-cli and abrt-desktop are built, but also depend on bugzilla * disable gpgcheck in /etc/abrt/abrt-action-save-package-data.conf * start services ("service abrt{d,-ccpp,-oops,-xorg} start" works :) * voila
This is just a proof of concept, I'm not familiar enough with autotools to do everything correctly.
Michal
Michal Toman mtoman@redhat.com writes:
Hi,
I've prepared patches for ABRT & libreport so that they build on openSUSE 12.2. There are many ugly hacks just to make it build ;)
== btparser ==
- master builds without problems
== libreport ==
- clone latest git & apply the attached patch
- install dependencies: dbus-devel = dbus-1-devel; nss-devel =
mozilla-nss-devel; json-c-devel = libjson-devel;
- for some reason libtar-devel is in "Education" repository, you need
to enable it in YaST
- ./autogen.sh && ./configure --without-bugzilla && make rpm
- this builds everything except bugzilla. libreport-anaconda and
libreport-compat are built, but they depend on libreport-bugzilla.
== ABRT ==
- clone latest git & apply the attached patch
- install dependencies: especially dbus-1-glib-devel
- ./autogen.sh && ./configure && make rpm
- this builds everything except bodhi (bodhi links to libreport-web,
which is not built because of missing bugzilla). abrt-cli and abrt-desktop are built, but also depend on bugzilla
- disable gpgcheck in /etc/abrt/abrt-action-save-package-data.conf
- start services ("service abrt{d,-ccpp,-oops,-xorg} start" works :)
- voila
This is just a proof of concept, I'm not familiar enough with autotools to do everything correctly.
Michal
%defattr(-,root,root,-) diff --git a/configure.ac b/configure.ac index 3cd7776..1dcf4d8 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ AC_INIT([abrt], [crash-catcher@fedorahosted.org])
AC_CONFIG_MACRO_DIR([m4]) -AM_INIT_AUTOMAKE([-Wall -Werror foreign]) +AM_INIT_AUTOMAKE([-Wall foreign]) # Support silent build rules. Disable by either passing --disable-silent-rules # to ./configure or passing V=1 to make m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) @@ -11,9 +11,11 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) AM_SILENT_RULES([yes])
+AM_PROG_AR AC_DISABLE_STATIC AC_PROG_LIBTOOL AC_PROG_CC +AM_PROG_CC_C_O AC_PROG_LN_S
AC_SYS_LARGEFILE diff --git a/doc/Makefile.am b/doc/Makefile.am index 2ed3714..a78976d 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -18,7 +18,7 @@ MAN1_TXT += abrt-cli.txt MAN1_TXT += abrt-action-save-package-data.txt MAN1_TXT += abrt-install-ccpp-hook.txt MAN1_TXT += abrt-action-analyze-vmcore.txt -MAN1_TXT += abrt-bodhi.txt +#MAN1_TXT += abrt-bodhi.txt
MAN5_TXT = MAN5_TXT += abrt.conf.txt diff --git a/po/POTFILES.in b/po/POTFILES.in index d16d3e0..8cf2df1 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -33,7 +33,7 @@ src/plugins/analyze_LocalGDB.xml.in src/plugins/analyze_RetraceServer.xml.in src/plugins/collect_xsession_errors.xml.in src/plugins/https-utils.c -src/plugins/bodhi.c +#src/plugins/bodhi.c
src/cli/abrt-cli.c src/cli/list.c diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am index eb118ad..16a7e9f 100644 --- a/src/plugins/Makefile.am +++ b/src/plugins/Makefile.am @@ -21,8 +21,8 @@ bin_PROGRAMS = \ abrt-action-generate-core-backtrace \ abrt-action-analyze-backtrace \ abrt-retrace-client \
- abrt-dedup-client \
- abrt-bodhi
- abrt-dedup-client
+# abrt-bodhi
libexec_PROGRAMS = abrt-action-install-debuginfo-to-abrt-cache
@@ -274,22 +274,22 @@ abrt_dedup_client_SOURCES = \ $(BTPARSER_LIBS) \ $(NSS_LIBS)
-abrt_bodhi_SOURCES = \
- bodhi.c
- abrt_bodhi_CPPFLAGS = \
- -I$(srcdir)/../include \
- -I$(srcdir)/../lib \
- $(GLIB_CFLAGS) \
- $(LIBREPORT_CFLAGS) \
- $(LIBREPORT_WEB_CFLAGS) \
- $(JSON_C_CFLAGS) \
- $(RPM_CFLAGS) \
- -D_GNU_SOURCE
- abrt_bodhi_LDADD = \
- $(JSON_C_LIBS) \
- $(RPM_LIBS) \
- $(LIBREPORT_LIBS) \
- $(LIBREPORT_WEB_LIBS)
+#abrt_bodhi_SOURCES = \ +# bodhi.c +# abrt_bodhi_CPPFLAGS = \ +# -I$(srcdir)/../include \ +# -I$(srcdir)/../lib \ +# $(GLIB_CFLAGS) \ +# $(LIBREPORT_CFLAGS) \ +# $(LIBREPORT_WEB_CFLAGS) \ +# $(JSON_C_CFLAGS) \ +# $(RPM_CFLAGS) \ +# -D_GNU_SOURCE +# abrt_bodhi_LDADD = \ +# $(JSON_C_LIBS) \ +# $(RPM_LIBS) \ +# $(LIBREPORT_LIBS) \ +# $(LIBREPORT_WEB_LIBS)
DEFS = -DLOCALEDIR="$(localedir)" @DEFS@
backport those from libreport git repo, and you will have to deal only with spec. and I think that you can tweak it more smartly ;)
commit db913064dc6603e7075f988c0199553949cc0f4f Author: Nikola Pajkovsky npajkovs@redhat.com Date: Thu Sep 20 15:02:27 2012 +0200
build: optional build of ureport plugin
Signed-off-by: Nikola Pajkovsky npajkovs@redhat.com Signed-off-by: Jakub Filak jfilak@redhat.com
commit e99cd4e31e112f42cddceb11d8b2ba9d67a98e09 Author: Nikola Pajkovsky npajkovs@redhat.com Date: Tue Sep 18 14:17:16 2012 +0200
build: portable equivalent of GNU make %-style pattern rules
Signed-off-by: Nikola Pajkovsky npajkovs@redhat.com
commit cb5d04f112556cf6eb8f300b852753a2f5c6c468 Author: Nikola Pajkovsky npajkovs@redhat.com Date: Thu Sep 13 15:31:41 2012 +0200
configure.ac: AM_PROG_AR is not defined in old automake
commit (46435fcb5ead6ff875ba8aa5ee1fc4e2eb1e9f59 build: silence error in configure.ac) introduce AM_PROG_AR which is not defined in old automake. This patch check if it define and if yes, than use it.
Signed-off-by: Nikola Pajkovsky npajkovs@redhat.com
commit b569eab8ff3209c7211f326cd66ade479f4d29ba Author: Nikola Pajkovsky npajkovs@redhat.com Date: Thu Sep 13 14:54:18 2012 +0200
build: add AM_PROG_CC_C_O into configure.ac
warning: compiling 'cli.c' with per-target flags requires 'AM_PROG_CC_C_O' in 'configure.ac'
If the C compiler does not accept the `-c' and `-o' options simultaneously, define NO_MINUS_C_MINUS_O. This macro actually tests both the compiler found by AC_PROG_CC, and, if different, the first cc in the path. The test fails if one fails. This macro was created for GNU Make to choose the default C compilation rule.
Signed-off-by: Nikola Pajkovsky npajkovs@redhat.com
commit 46435fcb5ead6ff875ba8aa5ee1fc4e2eb1e9f59 Author: Nikola Pajkovsky npajkovs@redhat.com Date: Thu Sep 13 14:34:41 2012 +0200
build: silence error in configure.ac
running ./autogen.sh generates errors on every library
/usr/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac' src/client-python/Makefile.am:7: while processing Libtool library '_reportclient.la'
Acked-by: Jiri Moskovcak jmoskovc@redhat.com Signed-off-by: Nikola Pajkovsky npajkovs@redhat.com
-- Nikola
crash-catcher@lists.fedorahosted.org