• Building package exercise

    From Apostolos Kefalas@21:1/5 to All on Sun Dec 11 11:00:01 2022
    Hello,

    I am trying to create a Debian package for rtl-sdr based on Maitland 's work but
    I get the following error:

    $ debuild
    dpkg-buildpackage -us -uc -ui -i -I
    dpkg-buildpackage: info: source package rtl-sdr
    dpkg-buildpackage: info: source version 0.8.0-1
    dpkg-buildpackage: info: source distribution UNRELEASED
    dpkg-buildpackage: info: source changed by Apostolos
    dpkg-source -i -I --before-build .
    dpkg-buildpackage: info: host architecture amd64
    fakeroot debian/rules clean
    dh clean --buildsystem=cmake
    dh_auto_clean -O--buildsystem=cmake
    dh_autoreconf_clean -O--buildsystem=cmake
    dh_clean -O--buildsystem=cmake
    dpkg-source -i -I -b .
    dpkg-source: info: using source format '3.0 (quilt)'
    dpkg-source: info: building rtl-sdr using existing ./rtl-sdr_0.8.0.orig.tar.gz dpkg-source: info: using patch list from debian/patches/series
    dpkg-source: info: building rtl-sdr in rtl-sdr_0.8.0-1.debian.tar.xz dpkg-source: info: building rtl-sdr in rtl-sdr_0.8.0-1.dsc
    debian/rules build
    dh build --buildsystem=cmake
    dh_update_autotools_config -O--buildsystem=cmake
    dh_autoreconf -O--buildsystem=cmake
    libtoolize: putting auxiliary files in '.'.
    libtoolize: copying file './ltmain.sh'
    libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
    libtoolize: copying file 'm4/libtool.m4'
    libtoolize: copying file 'm4/ltoptions.m4'
    libtoolize: copying file 'm4/ltsugar.m4'
    libtoolize: copying file 'm4/ltversion.m4'
    libtoolize: copying file 'm4/lt~obsolete.m4'
    configure.ac:12: installing './compile'
    configure.ac:15: installing './config.guess'
    configure.ac:15: installing './config.sub'
    configure.ac:5: installing './install-sh'
    configure.ac:5: installing './missing'
    Makefile.am:4: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
    src/Makefile.am:6: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
    src/Makefile.am: error: object 'rtlsdr_rpc_msg.$(OBJEXT)' created both with libtool and without
    src/Makefile.am: installing './depcomp'
    autoreconf: automake failed with exit status: 1
    dh_autoreconf: error: autoreconf -f -i returned exit code 1
    make: *** [debian/rules:6: build] Error 25
    dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2 debuild: fatal error at line 1182:
    dpkg-buildpackage -us -uc -ui -i -I failed

    Can anyone please explain why debhelper uses dh_update_autotools_config and dh_autoreconf although buildsystem=cmake is specified?

    Thanks!
    Apostolos

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Christoph Berg@21:1/5 to All on Sun Dec 11 11:00:01 2022
    Re: Apostolos Kefalas
    dh build --buildsystem=cmake
    dh_update_autotools_config -O--buildsystem=cmake
    dh_autoreconf -O--buildsystem=cmake

    Can anyone please explain why debhelper uses dh_update_autotools_config and dh_autoreconf although buildsystem=cmake is specified?

    Hi,

    I don't know the answer to that question, but if that's the only
    problem here, you can override it to do nothing:

    override_dh_autoreconf:

    Christoph

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)