-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Specify terminfo dirs #23
Conversation
@@ -21,6 +21,8 @@ do | |||
--enable-termcap \ | |||
--enable-pc-files \ | |||
--with-termlib \ | |||
--with-terminfo-dirs="/etc/terminfo:/lib/terminfo:/usr/share/terminfo:$PREFIX/share/terminfo" \ | |||
--with-default-terminfo-dir="/usr/share/terminfo" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like the default should be ours, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Hi! This is the friendly automated conda-forge-linting service. I was trying to look for recipes to lint for you, but it appears we have a merge conflict. Please ping the 'conda-forge/core' team (using the @ notation in a comment) if you believe this is a bug. |
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
Please bump the build number as well. |
@mingwandroid, could you please take a look at this and share your thoughts? |
If you build Perhaps both building My take was to defer to the system as much as I could for everything above The only useful advice I can give is to test on a multitude of different Linux installations and if it works on them all, then I'd call that good enough, but my instinct would be for you guys to use my recipe as reference here: https://github.com/mingwandroid/conda-recipes/tree/master/ncurses .. because if it isn't broke (and is well tested) then don't fix it. |
However we can't use your recipe as dropping |
@@ -21,6 +21,8 @@ do | |||
--enable-termcap \ | |||
--enable-pc-files \ | |||
--with-termlib \ | |||
--with-terminfo-dirs="/etc/terminfo:/lib/terminfo:/usr/share/terminfo:$PREFIX/share/terminfo" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the suggestion is to move $PREFIX/share/terminfo
to the front of the list, which seems reasonable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
What will break? Are you sure anything will? These changes to ncurses on conda-forge broke compatibility with defaults. What Linux distros do is not always instructive for what conda/conda-forge should do because we do not provide a complete software stack down to glibc and the kernel so accommodations like this are sometimes necessary; you can call out to some conda-forge package from something linked to and running the system's ncurses, having already set a bunch of env. vars and this is where you'll probably have difficulties. My change to remove My suggestion is to unify your package with ours. |
No we had fixed that in PR ( #19 ). AFAICT the previous build and this build of Please see issue ( ContinuumIO/anaconda-issues#455 ) for a bit more history on why we have our own termlib. |
I find it hard to follow these multiple threads of discussion but what I did find seemed to circle back to what you already said "We did it because that's what Linux distros do". The fact is, since I removed I would urge you to push changes to |
While there is some of that. This is not the crux of the problem. The problem is the system may supply a newer copy of the terminfo db from a newer If we must, we can try to fallback to the system as proposed here. Though it may causes issues if the system has a newer version. |
I build on CentOS 5.11 then test on that, then I test on a fully up to date ArchLinux system (which uses ncurses-6). This procedure gives me a good level of confidence about the compatibility of my packages. It seems to me, from #19, that an incorrect partial fix was applied (after I had shared my experience that removing However the important thing is that if your way proves itself to work well, and you run with it, then your Whatever we do for ncurses should be done in common so that we are not incompatible, and in this case, I got there first and tried to advise. Note, with this, if you find an actual bug with my way and your way fixes it then great, I will adopt your way and rebuild everything that I need to as soon as I can. This isn't about trying to prove who is right or wrong, it's about being compatible and building working software. |
We have been using As everyone is reliant on The proposal here seems like a simple reasonable change that should help out in a few other cases by searching some system paths. Feel free to test other things against this change. That being said, unless there are some clear blockers, I'm in favor of going forward with this strategy. |
Going to put a hold on this while we work on |
I admit it has been a bit technical for me here :) Anyway, we worked on my PR to add So I would close this PR. |
Inspired by https://github.com/conda/conda-recipes/pull/223/files and https://lists.gnu.org/archive/html/bug-ncurses/2011-06/msg00020.html