This repository was archived by the owner on Jan 27, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
readline: add version 7.0 #181
Open
sknsean
wants to merge
4
commits into
oe-lite:master
Choose a base branch
from
sknsean:readline
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes.
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,159 @@ | ||
| From 77f68e56182c4e1f20a00f1dd4b1fcf4a41a1129 Mon Sep 17 00:00:00 2001 | ||
| From: Sean Nyekjaer <sean.nyekjaer@prevas.dk> | ||
| Date: Thu, 3 Nov 2016 20:17:28 +0100 | ||
| Subject: [PATCH] mingw patch | ||
|
|
||
| --- | ||
| colors.c | 23 ++++++++++++++++++++--- | ||
| posixstat.h | 4 ---- | ||
| 2 files changed, 20 insertions(+), 7 deletions(-) | ||
|
|
||
| diff --git a/colors.c b/colors.c | ||
| index 7859f5d..605fe27 100644 | ||
| --- a/colors.c | ||
| +++ b/colors.c | ||
| @@ -37,6 +37,10 @@ | ||
| #include "posixstat.h" // stat related macros (S_ISREG, ...) | ||
| #include <fcntl.h> // S_ISUID | ||
|
|
||
| +#ifndef S_ISDIR | ||
| +#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) | ||
| +#endif | ||
| + | ||
| // strlen() | ||
| #if defined (HAVE_STRING_H) | ||
| # include <string.h> | ||
| @@ -153,6 +157,7 @@ _rl_print_color_indicator (const char *f) | ||
| { | ||
| mode = astat.st_mode; | ||
| #if defined (HAVE_LSTAT) | ||
| +#ifdef S_ISLNK | ||
| if (S_ISLNK (mode)) | ||
| { | ||
| linkok = stat (name, &linkstat) == 0; | ||
| @@ -161,6 +166,7 @@ _rl_print_color_indicator (const char *f) | ||
| } | ||
| else | ||
| #endif | ||
| +#endif | ||
| linkok = 1; | ||
| } | ||
| else | ||
| @@ -170,8 +176,10 @@ _rl_print_color_indicator (const char *f) | ||
|
|
||
| if (linkok == -1 && _rl_color_indicator[C_MISSING].string != NULL) | ||
| colored_filetype = C_MISSING; | ||
| +#ifdef S_ISLNK | ||
| else if (linkok == 0 && S_ISLNK(mode) && _rl_color_indicator[C_ORPHAN].string != NULL) | ||
| colored_filetype = C_ORPHAN; /* dangling symlink */ | ||
| +#endif | ||
| else if(stat_ok != 0) | ||
| { | ||
| static enum indicator_no filetype_indicator[] = FILETYPE_INDICATORS; | ||
| @@ -182,12 +190,17 @@ _rl_print_color_indicator (const char *f) | ||
| if (S_ISREG (mode)) | ||
| { | ||
| colored_filetype = C_FILE; | ||
| - | ||
| +#ifdef S_ISUID | ||
| if ((mode & S_ISUID) != 0 && is_colored (C_SETUID)) | ||
| colored_filetype = C_SETUID; | ||
| - else if ((mode & S_ISGID) != 0 && is_colored (C_SETGID)) | ||
| + else | ||
| +#endif | ||
| +#ifdef S_ISGID | ||
| + if ((mode & S_ISGID) != 0 && is_colored (C_SETGID)) | ||
| colored_filetype = C_SETGID; | ||
| - else if (is_colored (C_CAP) && 0) //f->has_capability) | ||
| + else | ||
| +#endif | ||
| + if (is_colored (C_CAP) && 0) //f->has_capability) | ||
| colored_filetype = C_CAP; | ||
| else if ((mode & S_IXUGO) != 0 && is_colored (C_EXEC)) | ||
| colored_filetype = C_EXEC; | ||
| @@ -211,12 +224,16 @@ _rl_print_color_indicator (const char *f) | ||
| colored_filetype = C_STICKY; | ||
| #endif | ||
| } | ||
| +#ifdef S_ISLNK | ||
| else if (S_ISLNK (mode)) | ||
| colored_filetype = C_LINK; | ||
| +#endif | ||
| else if (S_ISFIFO (mode)) | ||
| colored_filetype = C_FIFO; | ||
| +#ifdef S_ISSOCK | ||
| else if (S_ISSOCK (mode)) | ||
| colored_filetype = C_SOCK; | ||
| +#endif | ||
| else if (S_ISBLK (mode)) | ||
| colored_filetype = C_BLK; | ||
| else if (S_ISCHR (mode)) | ||
| diff --git a/posixstat.h b/posixstat.h | ||
| index 3eb7f29..3707f68 100644 | ||
| --- a/posixstat.h | ||
| +++ b/posixstat.h | ||
| @@ -108,14 +108,12 @@ | ||
| * POSIX 1003.1 5.6.1.2 <sys/stat.h> File Modes | ||
| */ | ||
|
|
||
| -#if !defined (S_IRWXU) | ||
| # if !defined (S_IREAD) | ||
| # define S_IREAD 00400 | ||
| # define S_IWRITE 00200 | ||
| # define S_IEXEC 00100 | ||
| # endif /* S_IREAD */ | ||
|
|
||
| -# if !defined (S_IRUSR) | ||
| # define S_IRUSR S_IREAD /* read, owner */ | ||
| # define S_IWUSR S_IWRITE /* write, owner */ | ||
| # define S_IXUSR S_IEXEC /* execute, owner */ | ||
| @@ -127,12 +125,10 @@ | ||
| # define S_IROTH (S_IREAD >> 6) /* read, other */ | ||
| # define S_IWOTH (S_IWRITE >> 6) /* write, other */ | ||
| # define S_IXOTH (S_IEXEC >> 6) /* execute, other */ | ||
| -# endif /* !S_IRUSR */ | ||
|
|
||
| # define S_IRWXU (S_IRUSR | S_IWUSR | S_IXUSR) | ||
| # define S_IRWXG (S_IRGRP | S_IWGRP | S_IXGRP) | ||
| # define S_IRWXO (S_IROTH | S_IWOTH | S_IXOTH) | ||
| -#endif /* !S_IRWXU */ | ||
|
|
||
| /* These are non-standard, but are used in builtins.c$symbolic_umask() */ | ||
| #define S_IRUGO (S_IRUSR | S_IRGRP | S_IROTH) | ||
| diff --git a/histfile.c b/histfile.c | ||
| index 3eb7f29..3707f68 100644 | ||
| --- a/histfile.c | ||
| +++ b/histfile.c | ||
| @@ -606,12 +606,14 @@ | ||
| history_lines_written_to_file = 0; | ||
| } | ||
|
|
||
| +#if defined (HAVE_CHOWN) | ||
| /* Make sure the new filename is owned by the same user as the old. If one | ||
| user is running this, it's a no-op. If the shell is running after sudo | ||
| with a shared history file, we don't want to leave the history file | ||
| owned by root. */ | ||
| if (rv == 0 && exists) | ||
| r = chown (filename, finfo.st_uid, finfo.st_gid); | ||
| +#endif | ||
|
|
||
| xfree (filename); | ||
| FREE (tempname); | ||
| @@ -753,12 +755,14 @@ | ||
| history_lines_written_to_file = 0; | ||
| } | ||
|
|
||
| +#if defined (HAVE_CHOWN) | ||
| /* Make sure the new filename is owned by the same user as the old. If one | ||
| user is running this, it's a no-op. If the shell is running after sudo | ||
| with a shared history file, we don't want to leave the history file | ||
| owned by root. */ | ||
| if (rv == 0 && exists) | ||
| mode = chown (histname, finfo.st_uid, finfo.st_gid); | ||
| +#endif | ||
|
|
||
| FREE (histname); | ||
| FREE (tempname); | ||
| -- | ||
| 2.10.2 | ||
|
|
||
File renamed without changes.
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| d9095fa14a812495052357e1d678b3f2ac635463 readline-7.0.tar.gz |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| #We don't want this for anything else than mingw | ||
| COMPATIBLE_HOST_ARCHS = ".*-mingw.*" | ||
|
|
||
| inherit autotools library | ||
|
|
||
| SRC_URI += "https://ftp.gnu.org/gnu/termcap/termcap-${PV}.tar.gz" | ||
|
|
||
| do_configure() { | ||
| ${CONFIGURE_SCRIPT} \ | ||
| --prefix=${prefix} --build=${BUILD_ARCH} --host=${HOST_ARCH} \ | ||
| --target=${TARGET_ARCH} | ||
| } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need this custom stripped down do_configure function? |
||
|
|
||
| do_install() { | ||
| make install prefix=${D}/usr/ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So, termcap does not have DESTDIR support? |
||
| rm -rf ${D}/usr/info/ | ||
| } | ||
|
|
||
| PROVIDES_${PN} = "libtermcap" | ||
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 42dd1e6beee04f336c884f96314f0c96cc2578be termcap-1.3.1.tar.gz |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Please add an Upstream-status header.