Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure the .deps file is included in debian source #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amandasaurus
Copy link

This (empty) file is needed to build the dep. Without it, you get this error:

dh clean --with apache2
dh: warning: Compatibility levels before 10 are deprecated (level 9 in use)
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/home/amanda/third-party-software/apache2-mod-log-ipmask'
make clean
make[2]: Entering directory '/home/amanda/third-party-software/apache2-mod-log-ipmask'
/usr/share/apache2/build/rules.mk:236: .deps: No such file or directory
make[2]: *** No rule to make target '.deps'.  Stop.
make[2]: Leaving directory '/home/amanda/third-party-software/apache2-mod-log-ipmask'
make[1]: *** [debian/rules:7: override_dh_auto_clean] Error 2
make[1]: Leaving directory '/home/amanda/third-party-software/apache2-mod-log-ipmask'
make: *** [debian/rules:4: clean] Error 2
dpkg-buildpackage: error: fakeroot debian/rules clean subprocess returned exit status 2

The deb file can be built with dpkg-buildpackage without this change. However if you want to build a deb using cowbuilder for a different distribution, you need to create a source package and .dsc file. The .deps file will be excluded by default by dpkg, and the deb file will fail to build.

The fix here is to overwrite the dpkg-source “don't include these files” argument to remove the .deps.

This (empty) file is needed to build the dep. Without it, you get this
error:

    dh clean --with apache2
    dh: warning: Compatibility levels before 10 are deprecated (level 9 in use)
       debian/rules override_dh_auto_clean
    make[1]: Entering directory '/home/amanda/third-party-software/apache2-mod-log-ipmask'
    make clean
    make[2]: Entering directory '/home/amanda/third-party-software/apache2-mod-log-ipmask'
    /usr/share/apache2/build/rules.mk:236: .deps: No such file or directory
    make[2]: *** No rule to make target '.deps'.  Stop.
    make[2]: Leaving directory '/home/amanda/third-party-software/apache2-mod-log-ipmask'
    make[1]: *** [debian/rules:7: override_dh_auto_clean] Error 2
    make[1]: Leaving directory '/home/amanda/third-party-software/apache2-mod-log-ipmask'
    make: *** [debian/rules:4: clean] Error 2
    dpkg-buildpackage: error: fakeroot debian/rules clean subprocess returned exit status 2

The deb file can be built with `dpkg-buildpackage` without this change.
However if you want to build a deb using cowbuilder for a different
distribution, you need to create a source package and `.dsc` file. The
`.deps` file will be excluded by default by dpkg, and the deb file will
fail to build.

The fix here is to overwrite the dpkg-source “don't include these files”
argument to remove the `.deps`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant