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

Release 27 lintian warnings #1628

Closed
wants to merge 3 commits into from

Conversation

blackboxsw
Copy link
Collaborator

@blackboxsw blackboxsw commented May 12, 2021

#wip will update with content for what was released to impish

Sync changelog for what we just released in packaging branches on impish for 27.0.2

  • Fix a number of lintian warnings as part of upload review and apt-json-hook compile time flags
  • Also ignore lintian ubuntu-advantage-pro: systemd-service-file-refers-to-unusual-wantedby-target lib/systemd/system/ua-auto-attach.service cloud-config.service

Plan is to propose this PR back up into main after landing in release-27 to sync commits back up to tip

Proposed Commit Message

Fixes: #1624

Test Steps

build-package
sbuild-it ../out/ubuntu-advantage-tools_27.0.2.dsc
lintian ubuntu-advantage-tools_27.0.2_amd64.deb

Desired commit type::

  • Squash and merge: Using the "Proposed Commit Message"
  • Create a merge commit and use "Proposed Commit Message"
  • Rebase and merge, no merge commit, rely only on existing commit messages

Checklist:

  • I have updated or added any unit tests accordingly
  • I have updated or added any integration tests accordingly
  • I have updated or added any documentation accordingly

@blackboxsw blackboxsw changed the title Release 27 Release 27 lintian errors. May 12, 2021
@blackboxsw blackboxsw changed the title Release 27 lintian errors. Release 27 lintian warnings May 12, 2021

ubuntu-advantage-tools (27.0) impish; urgency=medium

* New upstream release 27.0:
- apt-hook: mitigate failures with true
- [redacted: actually landed in 27.0.1] apt-hook: mitigate failures with
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry if I am missing something here, but do we need to have those updates on the changelog ? Can't we just remove keep the correct line on release 27.0.1 and remove the other ones ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@lucasmoura since we already released a d/changelog in impish incorrectly published this line, Robie thought it was more correct and less confusing to others who may have seen the impush release changelog to avoid a complete redaction of a line item. It was a point raised in SRU that we probably shouldn't be magically manipulating old d/changelog entries if we can avoid it.

@lucasmoura
Copy link
Contributor

@blackboxsw after building the package, I am seeing the following lintian errors:

E: ubuntu-advantage-tools changes: bad-distribution-in-changes-file impish                                                                                                                                         
E: ubuntu-advantage-tools source: build-depends-on-essential-package-without-using-version Build-Depends: debianutils                                                                                              
E: ubuntu-advantage-tools: malformed-override Unknown tag ubuntu-advantage-pro: in line 8                                                                                                                          
W: ubuntu-advantage-tools source: package-uses-deprecated-debhelper-compat-version 9                                                                                                                               
W: ubuntu-advantage-pro: systemd-service-file-refers-to-unusual-wantedby-target lib/systemd/system/ua-auto-attach.service cloud-config.service                                                                     
W: ubuntu-advantage-tools changes: unknown-architecture amd64_translations

Looking at this output, it seems that we still have the problem wanted-by warning.

However, if I run the following lintian command:
lintian -L ">=warning" --show-overrides ubuntu-advantage-tools_27.0.2_source.changes

I see the following output:

E: ubuntu-advantage-tools source: build-depends-on-essential-package-without-using-version Build-Depends: debianutils
W: ubuntu-advantage-tools source: newer-standards-version 4.5.1 (current is 4.5.0)
W: ubuntu-advantage-tools source: package-uses-deprecated-debhelper-compat-version 9

Which looks like what we expect. So I don't know exactly what is happening here regarding the lintian diff between sbuild and lintian. @paride do you know what can cause different outputs like this ?

Also, maybe we can address this lintian error too in this PR:
E: ubuntu-advantage-tools source: build-depends-on-essential-package-without-using-version Build-Depends: debianutils

@paride
Copy link
Contributor

paride commented May 13, 2021

Hi Lucas, the difference is caused by what you lint. There are three kind of things that lintian can lint:

  1. Binary packages (.deb files)
  2. Source packages (.dsc files, which contain a reference to a tarball that contains the debian/ packaging directory, cat one to see it)
  3. Upload manifest files (.changes files, which can list source and/or binary packages, depending on the build tool and settings).

so:

  1. When passed a .deb file lintian lints it (do the installed files respect the naming/permission conventions? these kind of things). It can not lint the source package bits (debian/).
  2. When passed a source package that's linted (basically: the debian/* packaging is linted)
  3. When passed a .changes file, whatever that file refers to is linted.

Now you passed lintian a *_source.changes files, which is an upload manifest for a source-only upload (it only refers to a source package). And indeed you have only source: lintian messages. There should also be a _amd64.changes files referring to the binary packages, and if you lint that it will output the other warnings.

When it's sbuild that runs lintian that's done in the schroot and the .changes file contains both the source and binary packages, so everything is linted.

FWIW I normally run lintian with: lintian -EvIL +pedantic to get all possible messages (it's somehow really evil and pedantic!).

@paride
Copy link
Contributor

paride commented May 13, 2021

You should be able to replicate the sbuild lintian result by running sbuild with --source and then passing lintian the _amd64.changes.

@blackboxsw
Copy link
Collaborator Author

Closed in favor of a PR against main #1645
Will cherry-pick those accepted commits from main into release-27 once 1645 lands.

@blackboxsw blackboxsw closed this May 19, 2021
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