tags 450472 +patch
thanks
This package needs the automake command to point to automake 1.4 for the
package to build successfully. There is a conflict on automake1.9 but
not on any other version of automake.
the automake package (which contains automake1.10) will break the build
simply by being installed, I suspect this is what killed the build on
the archive rebuild test.
automake1.7 and automake1.8 will not break the build by default because
they have a lower alternatives priority than 1.4 but will break the
build if the sysadmin manually changes the automake alternative.
there are two simple fixes I can see
1: add build-conflicts on automake, automake1.7 and automake1.8
2: fix the build process to always use the correct automake (I have
attatched a modified debian/rules that does this). After doing this you
should be able to drop the build-conflict on automake1.9 as well.
IMO the second fix is preferable
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This is the debhelper compatability version to use.
export DH_COMPAT=5
export SED=sed
export PATH:=$(shell pwd)/automakelink:$(PATH)
configure: configure-stamp
configure-stamp:
dh_testdir
# Add here commands to configure the package.
libtoolize --force
aclocal
./configure --prefix=/usr --mandir=\$${prefix}/share/man
--infodir=\$${prefix}/share/info
touch configure-stamp
build: configure-stamp build-stamp
build-stamp:
dh_testdir
# Add here commands to compile the package.
mkdir automakelink
ln -s /usr/bin/automake-1.4 automakelink/automake
$(MAKE) CFLAGS="-Wall -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-D_REENTRANT -DUSE_GNOME -g -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H
-I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2
-I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/gdk-pixbuf-1.0"
#/usr/bin/docbook-to-man debian/cronosii.sgml > cronosii.1
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
-rm -rf automakelink
# Add here commands to clean up after the build process.
-$(MAKE) distclean
rm -f config.guess config.sub ltmain.sh
$(MAKE) -C $(CURDIR)/plugins/c2filters-0.4.5patch1 clean
$(MAKE) -C $(CURDIR)/plugins/fortune clean
$(MAKE) -C $(CURDIR)/plugins/sample clean
$(MAKE) -C $(CURDIR)/plugins/nohtml clean
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/cronosii.
$(MAKE) install prefix=$(CURDIR)/debian/cronosii/usr
# Get rid of the .h files
rm -rf $(CURDIR)/debian/cronosii/usr/include
# Remove intel dependant binaries plugins and make the plugins
rm -rf $(CURDIR)/debian/cronosii/usr/share/cronosII/plugins/filters.so
rm -rf $(CURDIR)/debian/cronosii/usr/share/cronosII/plugins/fortune.so
rm -rf $(CURDIR)/debian/cronosii/usr/share/cronosII/plugins/sample.so
rm -rf $(CURDIR)/debian/cronosii/usr/share/cronosII/plugins/nohtml.so
$(MAKE) -C $(CURDIR)/plugins/c2filters-0.4.5patch1
cp $(CURDIR)/plugins/c2filters-0.4.5patch1/filters.so
$(CURDIR)/debian/cronosii/usr/share/cronosII/plugins
$(MAKE) -C $(CURDIR)/plugins/fortune
cp $(CURDIR)/plugins/fortune/fortune.so
$(CURDIR)/debian//cronosii/usr/share/cronosII/plugins
$(MAKE) -C $(CURDIR)/plugins/sample
cp $(CURDIR)/plugins/sample/sample.so
$(CURDIR)/debian/cronosii/usr/share/cronosII/plugins
$(MAKE) -C $(CURDIR)/plugins/nohtml
cp $(CURDIR)/plugins/nohtml/nohtml.so
$(CURDIR)/debian/cronosii/usr/share/cronosII/plugins
# Switch plugins to a FHS compliant location.
mkdir -p $(CURDIR)/debian/cronosii/usr/lib/cronosII/
mv $(CURDIR)/debian/cronosii/usr/share/cronosII/plugins \
$(CURDIR)/debian/cronosii/usr/lib/cronosII/plugins
dh_link usr/lib/cronosII/plugins usr/share/cronosII/plugins
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
# dh_installdebconf
dh_installdocs
dh_installexamples
dh_installmenu
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
# dh_installinit
dh_installcron
dh_installman
dh_installinfo
# dh_undocumented c2addrbook.1 cronosII-config.1
dh_installchangelogs ChangeLog
dh_link
dh_strip
dh_compress
dh_fixperms
# dh_makeshlibs
dh_installdeb
# dh_perl
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure