Repository navigation
Conversation
There was a problem hiding this comment.
I'm kinda blindly copying this idiom from the OpenSUSE packaging docs, but it seems like the only "sane" way to handle this situation where something else might also be providing libtinfo (unless I'm misunderstanding something here).
There was a problem hiding this comment.
Surely you meant to check for unicode? That’s the difference between libncurses and libncursesw.
But, libtinfo and libtinfow are supposed to be compatible, so that a separate libtinfow is not necessary. There have been bugs with this in the past, but they were treated as bugs by the upstream maintainer and fixed (https://bugzilla.redhat.com/show_bug.cgi?id=1580323).
There was a problem hiding this comment.
Thanks for this; I'm pretty unfamiliar with ncurses packaging and I've been piecing things together today in an attempt to workaround some local tooling packaging.
I've dropped this, so at the moment it seems as if there's nothing useful in this PR at all; I'm inclined to close it since I can't figure out whether --with-versioned-symbols actually resolves my issue or not.
Is there anything else you would need to help get #95141 finalized?
There was a problem hiding this comment.
Honestly I'm not 100% sure what the right approach here is.
I was hoping this would address some issues I had been running into around "no version information available" noise but it doesn't seem to be the case (at least based on a quick local test).
There was a problem hiding this comment.
I'm getting lots of errors here that all look like:
Moving /nix/store/nrw7dh0d9pggn1ngf6l1v5rciagqjpr7-ncurses-6.2-dev/bin/clear to /nix/store/x8d5mqkmnsw5n27fpw5f0jba3dxixdln-ncurses-6.2/bin/clear
rmdir: failed to remove '/nix/store/nrw7dh0d9pggn1ngf6l1v5rciagqjpr7-ncurses-6.2-dev/bin': Directory not empty` errors
Is there a way to resolve this?
There was a problem hiding this comment.
Totally unsure whether this is appropriate, hopefully someone with more experience can chime in.
There was a problem hiding this comment.
Rebased & removed this.
|
Per @bgamari's comment w.r.t.
|
Motivation for this change
This is a riff off of #95141 (which I tried and was unable to use locally to resolve some problems); it should address #89769.
As this is mostly an appropriation of the work @andersk did in #95141 with a few extra items, I'm more than happy to close it in favor of that PR if that's preferable.
Things done
In addition to the work covered in #95141, this PR incorporates
--with-versioned-symsin a manner similar to how OpenSUSE packages upncurses(cf.--with-versioned-symsfrom https://build.opensuse.org/package/view_file/home:rhuitl/ncurses/ncurses.spec).I've tested this locally with a package that refused to compile due to issues with
ltinfoand these changes seem to have addressed the compilation failures.Unfortunately I'm still seeing "no version information available" errors for
libtinfoso I'm not really sure what to do about that... I've gated the--with-versioned-symsstuff behind a flag for now and I'm opening this as a draft PR to hopefully start some sort of discussion around this.sandboxinnix.confon non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)