pg_stat_plans icon indicating copy to clipboard operation
pg_stat_plans copied to clipboard

Error while building debian package: pg_stat_plans/debian/control doesn't list any binary package

Open hamann opened this issue 11 years ago • 1 comments

I'm trying to build a deb package from git sources on a Debian 6.0.7 box and got the following error:

$ git reflog
6a94960 HEAD@{0}: clone: from https://github.com/2ndQuadrant/pg_stat_plans
$ make deb
Makefile:54: warning: overriding commands for target `install'
/usr/lib/postgresql/9.3/lib/pgxs/src/makefiles/pgxs.mk:129: warning: ignoring old commands for target `install'
Makefile:59: warning: overriding commands for target `installcontrol'
/usr/lib/postgresql/9.3/lib/pgxs/src/makefiles/pgxs.mk:137: warning: ignoring old commands for target `installcontrol'
Makefile:64: warning: overriding commands for target `installdata'
/usr/lib/postgresql/9.3/lib/pgxs/src/makefiles/pgxs.mk:142: warning: ignoring old commands for target `installdata'
Makefile:70: warning: overriding commands for target `installdocs'
/usr/lib/postgresql/9.3/lib/pgxs/src/makefiles/pgxs.mk:153: warning: ignoring old commands for target `installdocs'
Makefile:81: warning: overriding commands for target `installdirs'
/usr/lib/postgresql/9.3/lib/pgxs/src/makefiles/pgxs.mk:169: warning: ignoring old commands for target `installdirs'
make clean
make[1]: Entering directory `/var/tmp/pg_stat_plans/pg_stat_plans'
Makefile:54: warning: overriding commands for target `install'
/usr/lib/postgresql/9.3/lib/pgxs/src/makefiles/pgxs.mk:129: warning: ignoring old commands for target `install'
Makefile:59: warning: overriding commands for target `installcontrol'
/usr/lib/postgresql/9.3/lib/pgxs/src/makefiles/pgxs.mk:137: warning: ignoring old commands for target `installcontrol'
Makefile:64: warning: overriding commands for target `installdata'
/usr/lib/postgresql/9.3/lib/pgxs/src/makefiles/pgxs.mk:142: warning: ignoring old commands for target `installdata'
Makefile:70: warning: overriding commands for target `installdocs'
/usr/lib/postgresql/9.3/lib/pgxs/src/makefiles/pgxs.mk:153: warning: ignoring old commands for target `installdocs'
Makefile:81: warning: overriding commands for target `installdirs'
/usr/lib/postgresql/9.3/lib/pgxs/src/makefiles/pgxs.mk:169: warning: ignoring old commands for target `installdirs'
rm -f pg_stat_plans.so pg_stat_plans.o
rm -f pg_stat_plans--1.0.sql pg_stat_plans--unpackaged--1.0.sql
rm -rf pg_stat_plans.control
rm -rf results/ regression.diffs regression.out tmp_check/ log/
make[1]: Leaving directory `/var/tmp/pg_stat_plans/pg_stat_plans'
make -f debian/rules debian/control
make[1]: Entering directory `/var/tmp/pg_stat_plans/pg_stat_plans'
(set -e; \
    VERSIONS=`pg_buildext supported-versions /var/tmp/pg_stat_plans/pg_stat_plans` || exit $?; \
    grep-dctrl -vP PGVERSION debian/control.in > debian/control.pgxs_tmp; \
    for v in $VERSIONS; \
        do                                         \
        grep -q "^$v" debian/pgversions   \
        && grep-dctrl -P PGVERSION debian/control.in      \
        | sed -e "s:PGVERSION:$v:" >> debian/control.pgxs_tmp; \
    done; \
    mv debian/control.pgxs_tmp debian/control) || (rm -f debian/control.pgxs_tmp; exit 1)
make[1]: Leaving directory `/var/tmp/pg_stat_plans/pg_stat_plans'
dh clean
dh: No packages to build.
make -f debian/rules orig
make[1]: Entering directory `/var/tmp/pg_stat_plans/pg_stat_plans'
dh clean
dh: No packages to build.
git archive --prefix=pgstatplans-1.1/ -o ../pgstatplans_1.1.orig.tar.gz HEAD
make[1]: Leaving directory `/var/tmp/pg_stat_plans/pg_stat_plans'
debuild -us -uc -sa
 dpkg-buildpackage -rfakeroot -D -us -uc -sa
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: source package pgstatplans
dpkg-buildpackage: source version 1.1
dpkg-buildpackage: source changed by Cédric Villemain <[email protected]>
 dpkg-source --before-build pg_stat_plans
dpkg-buildpackage: host architecture amd64
dpkg-source: error: pg_stat_plans/debian/control doesn't list any binary package
dpkg-buildpackage: error: dpkg-source --before-build pg_stat_plans gave error exit status 255
debuild: fatal error at line 1357:
dpkg-buildpackage -rfakeroot -D -us -uc -sa failed
make: *** [deb] Error 29

hamann avatar Oct 01 '13 15:10 hamann

Thank you to notify this issue. The packaging needs to be updated once the extension layout will be change (see other issue relative to that). I'm not sure why you've got this : «dpkg-source: error: pg_stat_plans/debian/control doesn't list any binary package».

klando avatar Oct 03 '13 08:10 klando