Skip to content

Conversation

@rico-haas
Copy link

GitLab username: haasro

Completed optional tasks

  • libyaml-cpp correctly appears as dependency
  • Compared unstripped size (2.6MiB) and stripped size (192KiB)
  • Fixed more lintian errors & warnings (see below)
  • Modified the container to automatically build and export the packages (see below)

Using the container to automatically build

Run these commands in the project root:

  • docker build -t cpack_auto .
  • docker run --rm --mount type=bind,source="$(pwd)",target=/mnt/cpack-exercise cpack_auto

The built packages will be automatically placed into the project root.

Lintian

Initial output

E: cpackexample: description-synopsis-is-duplicated line 1
E: cpackexample: lacks-ldconfig-trigger usr/lib/libcpackexamplelib.so
E: cpackexample: malformed-contact Maintainer Rico
E: cpackexample: no-changelog usr/share/doc/cpackexample/changelog.gz (native package)
E: cpackexample: no-copyright-file
E: cpackexample: unstripped-binary-or-object [usr/bin/cpackexample]
E: cpackexample: unstripped-binary-or-object [usr/lib/libcpackexamplelib.so]
W: cpackexample: description-synopsis-starts-with-article
W: cpackexample: maintscript-calls-ldconfig [postinst]
W: cpackexample: maintscript-calls-ldconfig [postrm]
W: cpackexample: no-manual-page [usr/bin/cpackexample]
W: cpackexample: package-name-doesnt-match-sonames libcpackexamplelib
W: cpackexample: shared-library-lacks-version usr/lib/libcpackexamplelib.so libcpackexamplelib.so

Fixes

  • (1) Changed CPACK_DEBIAN_PACKAGE_DESCRIPTION to use the longer description instead
  • (3) Added email to CPACK_DEBIAN_PACKAGE_MAINTAINER
  • (6 & 7) Stripped the code as per the exercise
  • (8) Removed "An" article from CPACK_PACKAGE_DESCRIPTION_SUMMARY

Final output

E: cpackexample: lacks-ldconfig-trigger usr/lib/libcpackexamplelib.so
E: cpackexample: no-changelog usr/share/doc/cpackexample/changelog.gz (native package)
E: cpackexample: no-copyright-file
W: cpackexample: maintscript-calls-ldconfig [postinst]
W: cpackexample: maintscript-calls-ldconfig [postrm]
W: cpackexample: no-manual-page [usr/bin/cpackexample]
W: cpackexample: package-name-doesnt-match-sonames libcpackexamplelib
W: cpackexample: shared-library-lacks-version usr/lib/libcpackexamplelib.so libcpackexamplelib.so

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