Skip to content

Build: enable building for Debian 11#914

Merged
pstorz merged 11 commits intomasterfrom
dev/pstorz/master/debian11
Sep 9, 2021
Merged

Build: enable building for Debian 11#914
pstorz merged 11 commits intomasterfrom
dev/pstorz/master/debian11

Conversation

@pstorz
Copy link
Member

@pstorz pstorz commented Aug 24, 2021

Thank you for contributing to the Bareos Project!

Please check

  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

If you have any questions or problems, please give a comment in the PR.

Helpful documentation and best practices

Checklist for the reviewer of the PR (will be processed by the Bareos team)

General
  • PR name is meaningful
  • Purpose of the PR is understood
  • Separate commit for this PR in the CHANGELOG.md, PR number referenced is same
  • Commit descriptions are understandable and well formatted
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR
  • bareos-check-sources --since-merge does not report any problems
  • git status should not report modifications in the source tree after building and testing
Tests
  • Decision taken that a system- or unittest is required (if not, then remove this paragraph)
  • The decision towards a systemtest is reasonable compared to a unittest
  • Testname matches exactly what is being tested
  • Output of the test leads quickly to the origin of the fault

@pstorz pstorz force-pushed the dev/pstorz/master/debian11 branch from 36d9173 to 4a4f559 Compare August 27, 2021 10:23
Copy link
Member

@arogge arogge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We seem to have to remove dh-python as it conflicts with python-is-python2 and python-is-python3. However, I believe the real fix for this is not to use a versionless-python anymore.
We can probably require python2-dev and python3-dev for Bareos itself and dh-python for python-bareos resulting in clean dependencies.
AFAICT the only uses of a plain python are in python-bareos/setup.py and core/cmake/get_python_compile_settings.py - which seems to be easily fixable.

pkg-config,
po-debconf (>= 0.8.2),
python-dev,
# python-dev,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't there a useful replacement for this? Maybe python-dev-is-python3 (or python-dev-is-python2).

Copy link
Member Author

@pstorz pstorz Aug 31, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bug that required this change is here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=972726

Comment on lines 51 to 53
librados-dev <buster> <stretch> <xenial> <bionic>,
libradosstriper-dev <buster> <stretch> <xenial> <bionic>,
libcephfs-dev <buster> <stretch> <xenial> <bionic>,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these conditionals will need to have <bullseye> added to work as expected for us

# python-dev,
zlib1g-dev,
systemd,
dh-systemd,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we should tag it with the versions where we want it like this:

dh-systemd <buster> <stretch> <xenial> <bionic>,

This way at least our own builds will require it for these older releases.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point

@pstorz pstorz changed the base branch from master to bareos-20 September 1, 2021 16:42
@aba-rechsteiner
Copy link

Are there any plans by when the packages for Debian 11 will be ready?

@pstorz pstorz changed the base branch from bareos-20 to master September 8, 2021 16:02
Copy link
Member

@arogge arogge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to add a record to the CHANGELOG, but otherwise it looks fine!

@pstorz pstorz force-pushed the dev/pstorz/master/debian11 branch from e7adb4c to 08b27cd Compare September 9, 2021 08:28
@pstorz pstorz merged commit ae03f03 into master Sep 9, 2021
@pstorz pstorz deleted the dev/pstorz/master/debian11 branch September 9, 2021 08:31
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.

3 participants