Skip Menu |

This queue is for tickets about the DhMakePerl CPAN distribution.

Report information
The Basics
Id: 102067
Status: open
Priority: 0/
Queue: DhMakePerl

People
Owner: Nobody in particular
Requestors: SKIM [...] cpan.org
Cc: gregoa [...] cpan.org
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.84
Fixed in: (no value)



Subject: `dh-make-perl --build --cpan FCGI` problem
Hi, I have a problem with build Debian package for FCGI module (0.77). In attachment is process output and deb package content. As i understand, dh cannot determine perl build system. This means, that i must create own debian/rules file with this content: <pre> #!/usr/bin/make -f %: dh $@ --buildsystem=perl_makemaker </pre> Is a way to create Debian package via dh-make-perl in this situation? Build process is clean, but Debian package isn't right. Kind regards, M.
Subject: build_output.txt
== dh-make-perl 0.84 == Reading '/home/skim/.cpan/Metadata' Database was generated on Wed, 11 Feb 2015 02:53:18 GMT CPAN: Digest::SHA loaded ok (v5.85) Checksum for /home/skim/.cpan/sources/authors/id/E/ET/ETHER/FCGI-0.77.tar.gz ok FCGI-0.77/ FCGI-0.77/ChangeLog FCGI-0.77/configure FCGI-0.77/configure.in FCGI-0.77/configure.readme FCGI-0.77/eg/ FCGI-0.77/fastcgi.h FCGI-0.77/FCGI.pm FCGI-0.77/FCGI.xs FCGI-0.77/fcgi_config.h.in FCGI-0.77/fcgi_config_x86.h FCGI-0.77/fcgiapp.c FCGI-0.77/fcgiapp.h FCGI-0.77/fcgimisc.h FCGI-0.77/fcgios.h FCGI-0.77/LICENSE.TERMS FCGI-0.77/Makefile.PL FCGI-0.77/MANIFEST FCGI-0.77/MANIFEST.SKIP FCGI-0.77/META.json FCGI-0.77/META.yml FCGI-0.77/os_unix.c FCGI-0.77/os_win32.c FCGI-0.77/README FCGI-0.77/test.pl FCGI-0.77/typemap FCGI-0.77/eg/echo.pl FCGI-0.77/eg/remote.pl FCGI-0.77/eg/threaded.pl CPAN: File::Temp loaded ok (v0.2304) Using META.json Found: FCGI 0.77 (libfcgi-perl arch=any) Switched to a new branch 'master' Using cached Contents from Thu Feb 13 11:48:09 2014 = perl >= 5.006 is in core = XSLoader is in core since 5.6.0 Needs the following debian packages: perl (>= 5.6.0) = ExtUtils::MakeMaker is in core since 5.0.0 Needs the following debian packages during building: perl (>= 5.0.0) Using maintainer: Michal Špaček <skim@cpan.org> Found docs: Found examples: eg/* Using rules: /usr/share/dh-make-perl/rules.dh.tiny pristine-tar: committed libfcgi-perl_0.77.orig.tar.gz.delta to branch pristine-tar make: Entering directory `/home/skim/foo/tmp/FCGI-0.77' dh clean dh_testdir dh_auto_clean dh_clean make: Leaving directory `/home/skim/foo/tmp/FCGI-0.77' make: Entering directory `/home/skim/foo/tmp/FCGI-0.77' dh build dh_testdir dh_auto_configure checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for ssize_t... yes checking for sun_len in sys/un.h... no checking for fpos_t in stdio.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking for unistd.h... (cached) yes checking for a fileno() prototype in stdio.h... yes checking whether cross-process locking is required by accept()... no checking whether va_arg(arg, long double) crashes the compiler... no checking for an ANSI C-conforming const... yes configure: creating ./config.status config.status: creating fcgi_config.h dh_auto_build dh_auto_test make: Leaving directory `/home/skim/foo/tmp/FCGI-0.77' make: Entering directory `/home/skim/foo/tmp/FCGI-0.77' dh binary dh_testroot dh_prep dh_installdirs dh_auto_install dh_install dh_installdocs dh_installchangelogs dh_installexamples dh_installman dh_installcatalogs dh_installcron dh_installdebconf dh_installemacsen dh_installifupdown dh_installinfo dh_installinit dh_installmenu dh_installmime dh_installmodules dh_installlogcheck dh_installlogrotate dh_installpam dh_installppp dh_installudev dh_installwm dh_installxfonts dh_installgsettings dh_bugfiles dh_ucf dh_lintian dh_gconf dh_icons dh_perl dh_usrlocal dh_link dh_compress dh_fixperms dh_strip dh_makeshlibs dh_shlibdeps dh_installdeb dh_gencontrol dpkg-gencontrol: warning: Depends field of package libfcgi-perl: unknown substitution variable ${perl:Depends} dpkg-gencontrol: warning: Depends field of package libfcgi-perl: unknown substitution variable ${shlibs:Depends} dh_md5sums dh_builddeb dpkg-deb: building package `libfcgi-perl' in `../libfcgi-perl_0.77-1_amd64.deb'. make: Leaving directory `/home/skim/foo/tmp/FCGI-0.77' Reading package lists... 0% Reading package lists... 100% Reading package lists... Done Building dependency tree... 0% Building dependency tree... 0% Building dependency tree... 50% Building dependency tree... 50% Building dependency tree Reading state information... 0% Reading state information... 0% Reading state information... Done ********** WARNING: a package named 'libfcgi-perl' is already available in APT repositories Maintainer: Michal Špaček Description: Fast CGI module --- Done
Subject: list.txt
drwxr-xr-x root/root 0 2015-02-11 09:46 ./ drwxr-xr-x root/root 0 2015-02-11 09:46 ./usr/ drwxr-xr-x root/root 0 2015-02-11 09:46 ./usr/share/ drwxr-xr-x root/root 0 2015-02-11 09:46 ./usr/share/doc/ drwxr-xr-x root/root 0 2015-02-11 09:46 ./usr/share/doc/libfcgi-perl/ -rw-r--r-- root/root 151 2015-02-11 09:46 ./usr/share/doc/libfcgi-perl/changelog.Debian.gz -rw-r--r-- root/root 1432 2015-02-11 09:46 ./usr/share/doc/libfcgi-perl/copyright -rw-r--r-- root/root 4205 2014-08-05 17:50 ./usr/share/doc/libfcgi-perl/changelog.gz drwxr-xr-x root/root 0 2015-02-11 09:46 ./usr/share/doc/libfcgi-perl/examples/ -rw-r--r-- root/root 828 2014-07-17 01:33 ./usr/share/doc/libfcgi-perl/examples/remote.pl -rw-r--r-- root/root 1615 2014-07-17 01:33 ./usr/share/doc/libfcgi-perl/examples/echo.pl -rw-r--r-- root/root 1149 2014-07-17 01:33 ./usr/share/doc/libfcgi-perl/examples/threaded.pl
On Wed Feb 11 03:50:10 2015, SKIM wrote: Show quoted text
> Hi,
Hi there, Show quoted text
> I have a problem with build Debian package for FCGI module (0.77). > In attachment is process output and deb package content. > > As i understand, dh cannot determine perl build system.
Can you elaborate? Are you using dh-make or dh-make-perl? Show quoted text
> This means, that i must create own debian/rules file with this content: > <pre> > #!/usr/bin/make -f > > %: > dh $@ --buildsystem=perl_makemaker > </pre> > > Is a way to create Debian package via dh-make-perl in this situation?
Yes, you should be able to use dh-make-perl to build debian package from CPAN distributions. Show quoted text
> Build process is clean, but Debian package isn't right.
Can you elaborate? How is the debian package not right? Also, you may want to contact the Debian-perl team if you still encounter errors: https://pkg-perl.alioth.debian.org/ Show quoted text
> Kind regards, > M.
Did you know that there already is a FCGI CPAN module in debian? Try this command; apt-cache show libfcgi-perl. It will show you information about that package. On Wed Feb 11 03:50:10 2015, SKIM wrote: Show quoted text
> Hi, > > I have a problem with build Debian package for FCGI module (0.77). > In attachment is process output and deb package content. > > As i understand, dh cannot determine perl build system. > This means, that i must create own debian/rules file with this content: > <pre> > #!/usr/bin/make -f > > %: > dh $@ --buildsystem=perl_makemaker > </pre> > > Is a way to create Debian package via dh-make-perl in this situation? > Build process is clean, but Debian package isn't right. > > Kind regards, > M.
Dne St 11.úno.2015 05:35:28, jeremiah napsal(a): Show quoted text
> On Wed Feb 11 03:50:10 2015, SKIM wrote:
Hi, Show quoted text
> > I have a problem with build Debian package for FCGI module (0.77). > > In attachment is process output and deb package content. > > > > As i understand, dh cannot determine perl build system.
> > Can you elaborate? Are you using dh-make or dh-make-perl?
I use dh-make-perl. Command is `dh-make-perl --build --cpan FCGI` Output is in first mail. Show quoted text
> > This means, that i must create own debian/rules file with this > > content: > > <pre> > > #!/usr/bin/make -f > > > > %: > > dh $@ --buildsystem=perl_makemaker > > </pre> > > > > Is a way to create Debian package via dh-make-perl in this situation?
> > Yes, you should be able to use dh-make-perl to build debian package > from CPAN distributions.
I know :-) Show quoted text
> > Build process is clean, but Debian package isn't right.
> > Can you elaborate? How is the debian package not right?
See listing in first mail. Not FCGI.pm file in Debian package. And other. Show quoted text
> Also, you may want to contact the Debian-perl team if you still > encounter errors: https://pkg-perl.alioth.debian.org/
I think, that is problem of dh-make-perl. Kind regards, M.
Dne St 11.úno.2015 05:37:32, jeremiah napsal(a): Show quoted text
> Did you know that there already is a FCGI CPAN module in debian? Try > this command; apt-cache show libfcgi-perl. It will show you > information about that package.
Yes, i am using it. But i need FCGI 0.77 in Wheezy now. I am using build scripts from Jessie to create FCGI 0.77 in Wheezy and it's functional. But problem with using dh-make-perl and FCGI to build Debian package alive :-). Kind regards, M.
Looking at the module/package quickly, I can see: 1) we have set dh $@ --buildsystem=perl_makemaker manually in debian/rules as well 2) dh doesn't recognize a perl build system because there's a ./configure script, which has precedence for dh, so the --buildsystem is needed No idea why your package is empty. - For backporting I would suggest to always start from an existing package instead of creating a new one with dh-make-perl; there is a reason the Debian Perl Group is more than a bunch of bots calling dh-make-perl :) Hm, in theory dh-make-perl could add the --buildsystem automatically when it detects a ./configure and {Makefile,Build}.PL ... Cheers, gregor
Dne St 11.úno.2015 16:48:16, GREGOA napsal(a): Show quoted text
> Looking at the module/package quickly, I can see: > 1) we have set dh $@ --buildsystem=perl_makemaker manually in > debian/rules as well
Ok. I changed debian/rules file for dh-make-perl to this way and this is functional. Show quoted text
> 2) dh doesn't recognize a perl build system because there's a > ./configure script, which has precedence for dh, so the --buildsystem > is needed
Yes. Show quoted text
> - For backporting I would suggest > to always start from an existing package instead of creating a new one > with dh-make-perl; there is a reason the Debian Perl Group is more > than a bunch of bots calling dh-make-perl :)
Yes, i understand. Show quoted text
> Hm, in theory dh-make-perl could add the --buildsystem automatically > when it detects a ./configure and {Makefile,Build}.PL ...
It would be nice. I was confused with output without any warning or error. Cheers, M.