Project

Profile

Help

Issue #6757

closed

Debug packages from Ubuntu Bionic and newer can't be uploaded

Added by lieter over 4 years ago. Updated almost 3 years ago.

Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Debian:
Platform Release:
Target Release - Debian:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Ticket moved to GitHub: "pulp/pulp_deb/384":https://github.com/pulp/pulp_deb/issues/384


From Ubuntu Bionic onward, Canonical has patched debuild to change the suffix for debug ($package-dbgsym_$version) package from .deb to .ddeb.

When attempting to upload packages with this suffix, the tasks has the following error:

  File "/home/lieter/.virtualenvs/pulp3-devel/lib/python3.8/site-packages/rq/worker.py", line 886, in perform_job
    rv = job.perform()
  File "/home/lieter/.virtualenvs/pulp3-devel/lib/python3.8/site-packages/rq/job.py", line 664, in perform
    self._result = self._execute()
  File "/home/lieter/.virtualenvs/pulp3-devel/lib/python3.8/site-packages/rq/job.py", line 670, in _execute
    return self.func(*self.args, **self.kwargs)
  File "/home/lieter/src/Pulp/pulpcore/pulpcore/app/tasks/base.py", line 40, in general_create
    serializer.is_valid(raise_exception=True)
  File "/home/lieter/.virtualenvs/pulp3-devel/lib/python3.8/site-packages/rest_framework/serializers.py", line 243, in is_valid
    raise ValidationError(self.errors)

This is because the plugin (rightfully) assumes that all packages are called .deb (or .udeb for installer packages). I believe adding a 'DebugPackage` model that inherits from Package (changing only SUFFIX) would be a good addition to pulp_deb.

The workaround here would be to upload the .ddeb with a relatve_path ending with .deb, but I don't know if Ubuntu's apt/dpkg would like that (afaik, it accepts it).

Actions #1

Updated by lieter over 4 years ago

Work in progress PR is here: https://github.com/pulp/pulp_deb/pull/170

Actions #2

Updated by quba42 over 4 years ago

  • Sprint/Milestone set to Katello
Actions #4

Updated by quba42 over 4 years ago

I finally found were to find example packages as well:

Found via:

Actions #5

Updated by quba42 over 4 years ago

Without having looked in detail at the WIP PR already provided, I think these ddeb packages should be pretty analogous to udeb packages in the pulp_deb plugin implementation.

Actions #6

Updated by quba42 over 4 years ago

  • Sprint/Milestone changed from Katello to Wishlist
Actions #7

Updated by pulpbot almost 3 years ago

  • Description updated (diff)
  • Status changed from NEW to CLOSED - DUPLICATE

Also available in: Atom PDF