Page 1 of 1

zoneminder 1.28.1 debian rules wont compile

Posted: Mon Mar 23, 2015 4:14 pm
by salatiel
I just download v1.28.1.tar.gz, moved the distros/debian to the correct place and tried dpkg-buildpackage.
It fails with:

Code: Select all

# /tmp/ZoneMinder-1.28.1$ dpkg-buildpackage 
dpkg-buildpackage: source package zoneminder
dpkg-buildpackage: source version 1.28.1-testing
dpkg-buildpackage: source changed by Isaac Connor <iconnor connortechnology com>
dpkg-buildpackage: host architecture amd64
 dpkg-source --before-build ZoneMinder-1.28.1
 fakeroot debian/rules clean
dh clean --with quilt,autoreconf
   dh_testdir
   dh_auto_clean
   dh_quilt_unpatch
No patch removed
   dh_autoreconf_clean
   debian/rules override_dh_clean
make[1]: Entering directory `/tmp/ZoneMinder-1.28.1'
# Add here commands to clean up after the build process.
[ ! -f Makefile ] || /usr/bin/make distclean
dh_clean
make[1]: Leaving directory `/tmp/ZoneMinder-1.28.1'
 dpkg-source -b ZoneMinder-1.28.1
dpkg-source: warning: no source format specified in debian/source/format, see dpkg-source(1)
dpkg-source: info: using source format `1.0'
dpkg-source: warning: source directory 'ZoneMinder-1.28.1' is not <sourcepackage>-<upstreamversion> 'zoneminder-1.28.1'
dpkg-source: info: building zoneminder in zoneminder_1.28.1-testing.tar.gz
dpkg-source: info: building zoneminder in zoneminder_1.28.1-testing.dsc
 debian/rules build
dh build --with quilt,autoreconf
   dh_testdir
   dh_quilt_patch
Applying patch 01_vendor-perl.diff
patching file configure.ac
Hunk #1 FAILED at 443.
1 out of 1 hunk FAILED -- rejects in file configure.ac
Patch 01_vendor-perl.diff can be reverse-applied
dh_quilt_patch: quilt --quiltrc /dev/null push -a || test $? = 2 returned exit code 1
make: *** [build] Error 25
dpkg-buildpackage: error: debian/rules build gave error exit status 2
Was anyone able to create the package for debian 7.8 ?

Re: zoneminder 1.28.1 debian rules wont compile

Posted: Mon Mar 23, 2015 4:36 pm
by sime
i successfully packaged a .deb after editing /usr/src/zoneminder/distros/debian/patches/series to remove the patch..

Code: Select all

#01_vendor-perl.diff
the .deb installed

Simon

Re: zoneminder 1.28.1 debian rules wont compile

Posted: Mon Mar 23, 2015 11:28 pm
by salatiel
Thank you. It worked.

Re: zoneminder 1.28.1 debian rules wont compile

Posted: Tue Mar 24, 2015 12:44 pm
by sime
I don't know for what this patch is used

Code: Select all

Index: ZoneMinder/configure.ac
===================================================================
--- ZoneMinder.orig/configure.ac	2014-12-13 15:10:27.705191682 +0100
+++ ZoneMinder/configure.ac	2014-12-13 16:50:07.101049743 +0100
@@ -443,10 +443,10 @@
     PERL_SITE_LIB=`perl -V:installsitelib | sed -e "s/.*='\(.*\)';/\1/"`
     PERL_LIB_PATH=`echo $PERL_SITE_LIB | sed -e "s|^$PERL_SITE_PREFIX||"`
     EXTRA_PERL_LIB="use lib '$prefix$PERL_LIB_PATH'; # Include custom perl install path"
-    PERL_MM_PARMS="PREFIX=$prefix"
+    PERL_MM_PARMS="\"PREFIX=$prefix INSTALLDIRS=vendor\""
 else
     EXTRA_PERL_LIB="# Include from system perl paths only"
-    PERL_MM_PARMS=
+    PERL_MM_PARMS="\"INSTALLDIRS=vendor\""
 fi
 AC_SUBST(PERL_MM_PARMS)
 AC_SUBST(EXTRA_PERL_LIB)
I was on IRC yesterday and they seem to have trouble with perl directories...

anyway, my installation works well without it.

Simon