← Back to issue list

Broken Symlinks when Ubuntu 24.04 with Python plugin and `override-prime` is used

View original Github issue

Metadata

Project
rockcraft
Number
#664
Type
issue
State
open
Author
alithethird
Labels
Created
Updated
Closed

Current evaluation

Broken symlinks with Ubuntu 24.04 + Python plugin + override-prime; PR #498 fix doesn't apply in this scenario. Maintainer questioned user's config approach; no response to follow-up. Inactive 2 years.

Suggested action: close stale

Reason: Maintainer tigarmo asked two clarifying questions (whether the override-prime approach was intentional, and whether /srv/indico/indico.wsgi is actually present in the final rock) but the reporter never answered the second question. The issue has had zero activity for 2 years, and the maintainer's framing ("unfortunate limitation of override-prime today") plus the unaddressed questions indicate this was never confirmed as a reproducible bug.

Impact: 45 Quick Win: 20.25 Staleness: 90 Complexity: 55 Confidence: 65 Support Request: 65

Issue body

### Bug Description The [fix for Ubuntu 24.04 with Python plugin](https://github.com/canonical/rockcraft/pull/498) doesn't work when `override-prime` is used. Doesn't even work when we use `craftctl default` in the `override-prime`. ### To Reproduce Write a rock with Ubuntu 24.04 and Python plugin and do something in `override-prime`. ### Environment Multipass Ubuntu 22.04 Rockcraft 1.5.3 ### rockcraft.yaml ```shell # Copyright 2024 Canonical Ltd. # See LICENSE file for licensing details. name: indico summary: Indico rock description: Indico OCI image for the Indico charm version: "1.0" base: ubuntu@24.04 build-base: ubuntu@24.04 license: Apache-2.0 platforms: amd64: parts: add-user: plugin: nil overlay-script: | chmod 755 $CRAFT_OVERLAY/etc groupadd -R $CRAFT_OVERLAY --gid 2000 indico useradd -R $CRAFT_OVERLAY --system --gid 2000 --uid 2000 --home /srv/indico indico indico: plugin: python build-environment: - UWSGI_EMBED_PLUGINS: stats_pusher_statsd python-packages: - setuptools - wheel - indico==3.3.1 - indico-plugin-payment-paypal==3.3 - indico-plugin-piwik - indico-plugin-storage-s3 - python3-saml - uwsgi - ./anonymize - ./autocreate source: plugins build-packages: - build-essential - libpq-dev - libsasl2-dev - libxmlsec1-dev - pkg-config - wget stage-packages: - python3-venv - python3-dev - build-essential - ca-certificates - git-core - libglib2.0-data - libpq-dev - libsasl2-dev - locales - logrotate - pkg-config - postgresql-client - shared-mime-info - texlive-fonts-recommended - texlive-plain-generic - texlive-xetex - libpangocairo-1.0-0 # required for python3.12 overlay-packages: - libxmlsec1-dev stage-snaps: - celery-prometheus-exporter/latest/edge - gtrkiller-statsd-prometheus-exporter/latest/edge override-prime: | mkdir -p --mode=775 $CRAFT_PART_INSTALL/srv/indico/{archive,cache,custom,etc,log,tmp} cp $CRAFT_PART_INSTALL/lib/python3.12/site-packages/indico/web/indico.wsgi $CRAFT_PART_INSTALL/srv/indico/indico.wsgi cp -R $CRAFT_PART_INSTALL/lib/python3.12/site-packages/indico/web/static $CRAFT_PART_INSTALL/srv/indico/ chown -R 2000:2000 $CRAFT_PART_INSTALL/srv/indico cp /etc/ssl/certs/ca-certificates.crt $CRAFT_PART_INSTALL/etc/ssl/certs/ca-certificates.crt craftctl default copy-config: plugin: dump source: . organize: start-indico.sh: srv/indico/start-indico.sh etc/logrotate.conf: srv/indico/logrotate.conf permissions: - owner: 2000 group: 2000 - path: srv/indico/start-indico.sh mode: "544" - path: etc/ mode: "755" prime: - etc/* - srv/indico/start-indico.sh - srv/indico/logrotate.conf ``` ### Relevant log output ```shell . ```

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 45
Quick Win: 20.25
Staleness: 90
Complexity: 55
Confidence: 65
Support Request: 65
close stale Broken symlinks with Ubuntu 24.04 + Python plugin + override-prime; PR #498 fix doesn't apply in this scenario. Maintainer questioned user's config approach; no response to follow-up. Inactive 2 years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 60
Confidence: 80
Support Request: 15
close stale Bug report regarding broken symlinks on Ubuntu 24.04 when using the Python plugin with override-prime. Open for over two years with maintainer discussion but no fix or confirmed reproducer.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 45
Confidence: 85
Support Request: 30
close stale Python plugin override-prime fails on Ubuntu 24.04, causing broken symlinks. Maintainer noted it is a known limitation and requested clarification, but author has not responded in nearly two years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 40
Confidence: 75
Support Request: 35
close stale Broken symlinks reported when using Ubuntu 24.04, Python plugin, and override-prime. Maintainer identified it as a known limitation, a workaround was provided, and the issue has been inactive for nearly two years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 30
Confidence: 85
Support Request: 50
close stale Broken symlinks occur in Rockcraft when using Ubuntu 24.04, the Python plugin, and override-prime. A prior fix does not apply. Maintainers suggest override-build or override-stage as workarounds. Open and awaiting author feedback for a proper fix.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/rockcraft#498 (confidence 85%)

    PR #498 (fix(lifecycle): remove usrmerge-breaking symlinks) is the fix the reporter says does not work when override-prime is used; the _python_usrmerge_fix in lifecycle.py still only handles the lib64->lib symlink case.

Related issues

No related issues found above the similarity threshold.