Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 110603 Details for
Bug 147013
lua requires readline
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Remove the usage of newline from lua
rpm-noreadline.patch (text/plain), 1.74 KB, created by
Mark Hatle
on 2005-02-03 18:18:06 UTC
(
hide
)
Description:
Remove the usage of newline from lua
Filename:
MIME Type:
Creator:
Mark Hatle
Created:
2005-02-03 18:18:06 UTC
Size:
1.74 KB
patch
obsolete
>Source: MontaVista Software, Inc. >Type: Defect Fix >Disposition: merge to http://www.rpm.org >Description: >Red Hat bugzilla 147013. > >lua is bringing in readline, which is not what we want to do, due to license >issues. Remove the readline requirement. > >Index: rpm-4.3.3/lua/Makefile.am >=================================================================== >--- rpm-4.3.3.orig/lua/Makefile.am >+++ rpm-4.3.3/lua/Makefile.am >@@ -16,7 +16,7 @@ > > lua_lua_SOURCES = lua/lua.c > lua_lua_CFLAGS = -DLUA_USERCONFIG='"$(srcdir)/local/userconfig.c"' >-lua_lua_LDADD = $(LDADD) -lreadline -lhistory -lncurses >+lua_lua_LDADD = $(LDADD) -lncurses > luac_luac_SOURCES = luac/luac.c luac/print.c lopcodes.c > luac_luac_CFLAGS = -DLUA_OPNAMES > >Index: rpm-4.3.3/lua/local/userconfig.c >=================================================================== >--- rpm-4.3.3.orig/lua/local/userconfig.c >+++ rpm-4.3.3/lua/local/userconfig.c >@@ -9,43 +9,6 @@ > {"rex", luaopen_rex}, \ > {"luapath", luapath}, > >-#define lua_readline myreadline >-#define lua_saveline mysaveline >- >-#include <ctype.h> >-#include <readline/readline.h> >-#include <readline/history.h> >- >-static int myreadline (lua_State *L, const char *prompt) { >- char *s=readline(prompt); >- if (s==NULL) >- return 0; >- else { >- lua_pushstring(L,s); >- lua_pushliteral(L,"\n"); >- lua_concat(L,2); >- free(s); >- return 1; >- } >-} >- >-static void mysaveline (lua_State *L, const char *s) { >- const char *p; >- for (p=s; isspace(*p); p++) >- ; >- if (*p!=0) { >- size_t n=strlen(s)-1; >- if (s[n]!='\n') >- add_history(s); >- else { >- lua_pushlstring(L,s,n); >- s=lua_tostring(L,-1); >- add_history(s); >- lua_remove(L,-1); >- } >- } >-} >- > static int luapath(lua_State *L) > { > lua_pushstring(L, "LUA_PATH");
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 147013
: 110603