Skip to content

build/pkgs/ncurses: Track compatibility symlinks - #42597

Open
cxzhong wants to merge 1 commit into
sagemath:developfrom
cxzhong:agent/track-ncurses-symlinks
Open

build/pkgs/ncurses: Track compatibility symlinks#42597
cxzhong wants to merge 1 commit into
sagemath:developfrom
cxzhong:agent/track-ncurses-symlinks

Conversation

@cxzhong

@cxzhong cxzhong commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

The ncurses package currently creates its compatibility symlinks in spkg-postinst, after sage-spkg has scanned the staged installation and generated the installed-file manifest. As a result, the links are not recorded and remain behind when ncurses is uninstalled.

Move compatibility-link creation into spkg-install.in and create the links under $SAGE_DESTDIR_LOCAL. This makes them part of the staged installation and therefore part of the package manifest. The obsolete post-install hook is removed, existing narrow files remain untouched, and the duplicated ABI-version iteration is collapsed.

Validation

  • bash -n build/pkgs/ncurses/spkg-install.in
  • git diff --check upstream/develop...HEAD
  • Synthetic staged-install test confirming all six compatibility links are created and included in the manifest scan
  • Synthetic staged-install test confirming existing narrow libraries and pkg-config files are preserved

A full ncurses rebuild was not run because this checkout does not contain the ncurses source tarball or a configured local package-build tree.

@github-actions

Copy link
Copy Markdown

Documentation preview for this PR (built with commit c501b6a; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

@cxzhong
cxzhong marked this pull request as ready for review July 30, 2026 02:20
@cxzhong
cxzhong requested a review from dimpase August 4, 2026 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant