-
-
Notifications
You must be signed in to change notification settings - Fork 763
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
549fa4b
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.
@zmwangx @shaggytwodope @szlin nnn v1.1 released!
549fa4b
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.
The new version of nnn has been packaged and pushed into Debian sid archive.
549fa4b
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.
@jarun aur and ppa updated. I did run into an issue however. So as you may know some distros package ncurses differently. And as such cause some otherwise odd issues. On ubuntu no modifications are needed to build. However on Arch there is no
<ncursesw/curses.h>
, as a temp fix I've added a sed to the package build file:sed -i -e "s#<ncursesw/curses.h>#<curses.h>#g" $srcdir/$pkgname-$pkgver/nnn.c
.This should be a temp solution for now and no major effect. But may effect other distros. I'm wondering if pkg-config would be a possible solution?
549fa4b
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.
I will check this when I'm back home.
549fa4b
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.
Probably we could use a distro-specific
#include
too.549fa4b
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.
Many thanks for taking care of this for now! 👍
549fa4b
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.
Since nnn is FTBFS on non-Linux, there is a Debian user provides a method to solve FTBFS issue on hurd-i386 and kfreebsd~* 1.
I think it's acceptable, would you mind checking on it?
549fa4b
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.
@szlin I think this is fine. Please raise the PR. But @shaggytwodope I don't think this will solve our issue on Arch, right? Is there any macro to identify Arch?
Also, I have made a blunder and missed updating the version to 1.1 in Makefile.generic. What do you suggest to take care of this?
549fa4b
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.
@jarun In an attempt to solve this, I've turned to pkg-config. You can see here my rather simple fix. This builds without fail on both arch and ubuntu machines. This has not been tested for any other platforms, as at this time I have no access to other platforms. While it does bring a new build dep, pkg-config to my understanding is available across the board.
I'd love any feedback as to why this may not work, or even cause issues for the bsd and mac users. @szlin this should address bsd isssues. Unless I've over looked something.
549fa4b
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.
@shaggytwodope I think it solves all the issues we have. I have worked on trimmed down Linux-based embedded systems (a decade back) without pkg-config but I think the case is archaic now and not our target platform.
@zmwangx do you see any issues? On Homebrew?
549fa4b
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.
The dockerfile will likely need to be updated to include pkg-config, but any such issues should be ferreted out by travis on a real PR.
549fa4b
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.
@fennm once we decide to go with this I'ld request @shaggytwodope to raise the PR.
549fa4b
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.
No problem with curses here as we've discussed before. (You know, Makefile has a Darwin branch.)
549fa4b
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.
Awesome! @shaggytwodope please raise the PR.
549fa4b
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.
Oh, I see you were talking about pkg-config. Sure, using pkg-config in Makefile shouldn't be a problem on macOS with any configuration: with or without pkg-config, with stock ncurses 5.x or third-party ncurses 6.x.
549fa4b
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.
@jarun I will check the PR from 1, it perhaps also fixes the issue on hurd and kfreebsd
549fa4b
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.
Thank Lin!