summaryrefslogtreecommitdiff
path: root/scite/debian/patches
diff options
context:
space:
mode:
Diffstat (limited to 'scite/debian/patches')
-rw-r--r--scite/debian/patches/0002-do_not_use_remote_logo.patch58
-rw-r--r--scite/debian/patches/0003-reproducible_build.patch20
-rw-r--r--scite/debian/patches/0005-scite-desktop.patch16
-rw-r--r--scite/debian/patches/0007-Build-with-Debian-packaged-Lua.patch78
-rw-r--r--scite/debian/patches/series5
-rw-r--r--scite/debian/patches/use-lua5.4.4.patch187
6 files changed, 364 insertions, 0 deletions
diff --git a/scite/debian/patches/0002-do_not_use_remote_logo.patch b/scite/debian/patches/0002-do_not_use_remote_logo.patch
new file mode 100644
index 0000000..c90927e
--- /dev/null
+++ b/scite/debian/patches/0002-do_not_use_remote_logo.patch
@@ -0,0 +1,58 @@
+From: Antonio Valentino <antonio.valentino@tiscali.it>
+Date: Sat, 14 Apr 2018 17:39:34 +0000
+Subject: Fix the "privacy-breach-logo" error detected by lintian
+
+===================================================================
+---
+ scintilla/doc/index.html | 15 +--------------
+ scite/doc/SciTE.html | 15 +--------------
+ 2 files changed, 2 insertions(+), 28 deletions(-)
+
+--- a/scintilla/doc/index.html
++++ b/scintilla/doc/index.html
+@@ -172,20 +172,7 @@
+ </p>
+ There is a <a href="https://sourceforge.net/projects/scintilla/">Scintilla project page</a>
+ hosted on
+-<script type="text/javascript" language="JavaScript">
+-<!--
+-if (IsRemote()) {
+- document.write('<a href="https://sourceforge.net/projects/scintilla/">');
+- document.write('<img src="https://sflogo.sourceforge.net/sflogo.php?group_id=2439&amp;type=8" width="80" height="15" alt="Get Scintilla at SourceForge.net. Fast, secure and Free Open Source software downloads" /></a> ');
+-} else {
+- document.write('<a href="https://sourceforge.net/projects/scintilla/">SourceForge<\/a>');
+-}
+-//-->
+-</script>
+-<noscript>
+-<a href="https://sourceforge.net/projects/scintilla/">
+-<img src="https://sflogo.sourceforge.net/sflogo.php?group_id=2439&amp;type=8" width="80" height="15" alt="Get Scintilla at SourceForge.net. Fast, secure and Free Open Source software downloads" /></a>
+-</noscript>
++<a href="http://sourceforge.net/projects/scintilla/">SourceForge</a>
+ </body>
+ </html>
+
+--- a/scite/doc/SciTE.html
++++ b/scite/doc/SciTE.html
+@@ -139,20 +139,7 @@
+ <a href="https://sourceforge.net/project/showfiles.php?group_id=2439">the downloads page</a>.
+ </p>
+ There is a <a href="https://sourceforge.net/projects/scintilla/">Scintilla project page</a> hosted on
+-<script type="text/javascript" language="JavaScript">
+-<!--
+-if (IsRemote()) {
+- document.write('<a href="https://sourceforge.net/projects/scintilla/">');
+- document.write('<img src="https://sflogo.sourceforge.net/sflogo.php?group_id=2439&amp;type=8" width="80" height="15" alt="Get Scintilla at SourceForge.net. Fast, secure and Free Open Source software downloads" /></a> ');
+-} else {
+- document.write('<a href="https://sourceforge.net/projects/scintilla/">SourceForge<\/a>');
+-}
+-//-->
+-</script>
+-<noscript>
+-<a href="https://sourceforge.net/projects/scintilla">
+-<img src="https://sflogo.sourceforge.net/sflogo.php?group_id=2439&amp;type=8" width="80" height="15" alt="Get Scintilla at SourceForge.net. Fast, secure and Free Open Source software downloads" /></a>
+-</noscript>
++<a href="http://sourceforge.net/projects/scintilla/">SourceForge</a>
+ </body>
+ </html>
+
diff --git a/scite/debian/patches/0003-reproducible_build.patch b/scite/debian/patches/0003-reproducible_build.patch
new file mode 100644
index 0000000..0a8ce2a
--- /dev/null
+++ b/scite/debian/patches/0003-reproducible_build.patch
@@ -0,0 +1,20 @@
+From: Antonio Valentino <antonio.valentino@tiscali.it>
+Date: Sat, 14 Apr 2018 17:39:34 +0000
+Subject: Allow reproducible build
+
+===================================================================
+---
+ scite/src/Credits.cxx | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/scite/src/Credits.cxx
++++ b/scite/src/Credits.cxx
+@@ -601,7 +601,7 @@
+ }
+ AddStyledText(wsci, GetTranslationToAbout("Version").c_str(), trsSty);
+ AddStyledText(wsci, sVersion.c_str(), 1);
+- AddStyledText(wsci, " " __DATE__ " " __TIME__ "\n", 1);
++ AddStyledText(wsci, " " BUILD_DATE "\n", 1);
+ SetAboutStyle(wsci, 2, ColourRGB(0, 0, 0));
+ wsci.StyleSetItalic(2, true);
+ AddStyledText(wsci, GetTranslationToAbout("by").c_str(), trsSty);
diff --git a/scite/debian/patches/0005-scite-desktop.patch b/scite/debian/patches/0005-scite-desktop.patch
new file mode 100644
index 0000000..c0d0693
--- /dev/null
+++ b/scite/debian/patches/0005-scite-desktop.patch
@@ -0,0 +1,16 @@
+From: Antonio Valentino <antonio.valentino@tiscali.it>
+Date: Sat, 14 Apr 2018 18:30:43 +0000
+Subject: scite-desktop
+
+Add the Keywords entry to the desktop file.
+---
+ scite/gtk/SciTE.desktop | 1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/scite/gtk/SciTE.desktop
++++ b/scite/gtk/SciTE.desktop
+@@ -21,3 +21,4 @@
+ StartupNotify=true
+ Categories=TextEditor;Development;GTK;
+ MimeType=text/plain;
++Keywords=TextEditor;
diff --git a/scite/debian/patches/0007-Build-with-Debian-packaged-Lua.patch b/scite/debian/patches/0007-Build-with-Debian-packaged-Lua.patch
new file mode 100644
index 0000000..0e5e8df
--- /dev/null
+++ b/scite/debian/patches/0007-Build-with-Debian-packaged-Lua.patch
@@ -0,0 +1,78 @@
+From: =?utf-8?q?Andreas_R=C3=B6nnquist?= <gusnan@debian.org>
+Date: Tue, 19 Jun 2018 15:34:57 +0200
+Subject: Build with Debian packaged Lua
+Forwarded: not-needed
+
+---
+ scite/gtk/deps.mak | 6 +-----
+ scite/gtk/makefile | 30 ++++--------------------------
+ 2 files changed, 5 insertions(+), 31 deletions(-)
+
+--- a/scite/gtk/deps.mak
++++ b/scite/gtk/deps.mak
+@@ -265,11 +265,7 @@
+ ../src/Extender.h \
+ ../src/IFaceTable.h \
+ ../src/SciTEKeys.h \
+- ../src/LuaExtension.h \
+- ../lua/src/lua.h \
+- ../lua/src/luaconf.h \
+- ../lua/src/lualib.h \
+- ../lua/src/lauxlib.h
++ ../src/LuaExtension.h
+ MatchMarker.o: \
+ ../src/MatchMarker.cxx \
+ ../../scintilla/include/ScintillaTypes.h \
+--- a/scite/gtk/makefile
++++ b/scite/gtk/makefile
+@@ -33,9 +33,9 @@
+
+ PYTHON = $(if $(windir),pyw,python3)
+
+-# For the Gnome desktop stuff to work, prefix must point to where Gnome thinks it is.
+-CONFIGFLAGS:=$(shell $(PKG_CONFIG) --cflags $(GTK_VERSION))
+-CONFIGLIB:=$(shell $(PKG_CONFIG) --libs $(GTK_VERSION) gthread-2.0 gmodule-no-export-2.0)
++# For the Lua and Gnome desktop stuff to work, prefix must point to where Lua and Gnome thinks it is.
++CONFIGFLAGS:=$(shell $(PKG_CONFIG) --cflags $(GTK_VERSION)) $(shell $(PKG_CONFIG) --cflags lua5.4)
++CONFIGLIB:=$(shell $(PKG_CONFIG) --libs $(GTK_VERSION) gthread-2.0 gmodule-no-export-2.0) $(shell $(PKG_CONFIG) --libs lua5.4)
+ gnomeprefix:=$(shell $(PKG_CONFIG) --variable=prefix $(GTK_VERSION) 2>/dev/null)
+ ifndef prefix
+ ifdef gnomeprefix
+@@ -72,28 +72,6 @@
+ DEFINES += -D$(if $(DEBUG),DEBUG,NDEBUG)
+ BASE_FLAGS += $(if $(DEBUG),-g,-Os)
+
+-ifndef NO_LUA
+-LUA_CORE_OBJS = lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o \
+- lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o \
+- ltable.o ltm.o lundump.o lvm.o lzio.o
+-
+-LUA_LIB_OBJS = lauxlib.o lbaselib.o lbitlib.o lcorolib.o ldblib.o liolib.o lmathlib.o ltablib.o \
+- lstrlib.o loadlib.o loslib.o linit.o lutf8lib.o
+-
+-LUA_OBJS = LuaExtension.o $(LUA_CORE_OBJS) $(LUA_LIB_OBJS)
+-
+-vpath %.c $(srcdir)/../lua/src
+-
+-INCLUDES += -I$(srcdir)/../lua/src
+-LUA_DEFINES = -DLUA_USE_POSIX -DLUA_USE_DLOPEN
+-
+-%.o: %.c
+- $(CC) $(CPPFLAGS) $(DEFINES) $(INCLUDES) $(WARNINGS) $(LUA_DEFINES) $(BASE_FLAGS) $(CFLAGS) -c $< -o $@
+-
+-else
+-DEFINES += -DNO_LUA
+-endif
+-
+ LIBS += -lm -lstdc++
+
+ UNAME:=$(shell uname -s)
+@@ -154,7 +132,7 @@
+ StyleWriter.o \
+ Utf8_16.o
+
+-$(PROG): SciTEGTK.o Strips.o GUIGTK.o Widget.o DirectorExtension.o $(SRC_OBJS) $(LUA_OBJS)
++$(PROG): SciTEGTK.o Strips.o GUIGTK.o Widget.o DirectorExtension.o $(SRC_OBJS) LuaExtension.o
+ $(CXX) $(BASE_FLAGS) $(LDFLAGS) -rdynamic -Wl,--as-needed -Wl,-rpath,'$${ORIGIN}' -Wl,--version-script $(srcdir)/lua.vers -Wl,-rpath,$(libdir) $^ -o $@ $(CONFIGLIB) $(LIBS) -L ../../scintilla/bin -lscintilla $(LDLIBS)
+
+ # Automatically generate header dependencies with "make depend"
diff --git a/scite/debian/patches/series b/scite/debian/patches/series
new file mode 100644
index 0000000..45df0d6
--- /dev/null
+++ b/scite/debian/patches/series
@@ -0,0 +1,5 @@
+0002-do_not_use_remote_logo.patch
+0003-reproducible_build.patch
+0005-scite-desktop.patch
+0007-Build-with-Debian-packaged-Lua.patch
+use-lua5.4.4.patch
diff --git a/scite/debian/patches/use-lua5.4.4.patch b/scite/debian/patches/use-lua5.4.4.patch
new file mode 100644
index 0000000..4268cc1
--- /dev/null
+++ b/scite/debian/patches/use-lua5.4.4.patch
@@ -0,0 +1,187 @@
+Name: Patch scite to use distro package of lua, Devuan
+Version: 5.2.2
+Lua Version: 5.4.4
+Author: bgstack15@gmail.com
+Date: 2022-04-04
+diff -aur scite/gtk/deps.mak scite/gtk/deps.mak
+--- a/scite/gtk/deps.mak 2022-03-30 20:48:24.000000000 -0400
++++ b/scite/gtk/deps.mak 2022-04-04 14:47:39.110529717 -0400
+@@ -469,13 +469,6 @@
+ ../lua/src/luaconf.h \
+ ../lua/src/lauxlib.h \
+ ../lua/src/lualib.h
+-lbitlib.o: \
+- ../lua/src/lbitlib.c \
+- ../lua/src/lprefix.h \
+- ../lua/src/lua.h \
+- ../lua/src/luaconf.h \
+- ../lua/src/lauxlib.h \
+- ../lua/src/lualib.h
+ lcode.o: \
+ ../lua/src/lcode.c \
+ ../lua/src/lprefix.h \
+diff -aur scite/src/LuaExtension.cxx scite/src/LuaExtension.cxx
+--- a/scite/src/LuaExtension.cxx 2022-03-30 20:48:24.000000000 -0400
++++ b/scite/src/LuaExtension.cxx 2022-04-04 14:46:35.097978533 -0400
+@@ -237,7 +237,7 @@
+
+ const int paneIndex = lua_upvalueindex(1);
+ check_pane_object(L, paneIndex);
+- const int message = luaL_checkint(L, 1);
++ const int message = luaL_checkinteger(L, 1);
+
+ lua_pushvalue(L, paneIndex);
+ lua_replace(L, 1);
+@@ -276,7 +276,7 @@
+ }
+
+ static int cf_scite_constname(lua_State *L) {
+- const int message = luaL_checkint(L, 1);
++ const int message = luaL_checkinteger(L, 1);
+ const char *prefix = luaL_optstring(L, 2, nullptr);
+ const std::string constName = IFaceTable::GetConstantName(message, prefix);
+ if (constName.length() > 0) {
+@@ -307,7 +307,7 @@
+ }
+
+ static int cf_scite_menu_command(lua_State *L) {
+- const int cmdID = luaL_checkint(L, 1);
++ const int cmdID = luaL_checkinteger(L, 1);
+ if (cmdID) {
+ host->DoMenuCommand(cmdID);
+ }
+@@ -329,7 +329,7 @@
+ }
+
+ static int cf_scite_strip_set(lua_State *L) {
+- const int control = luaL_checkint(L, 1);
++ const int control = luaL_checkinteger(L, 1);
+ const char *value = luaL_checkstring(L, 2);
+ if (value) {
+ host->UserStripSet(control, value);
+@@ -338,7 +338,7 @@
+ }
+
+ static int cf_scite_strip_set_list(lua_State *L) {
+- const int control = luaL_checkint(L, 1);
++ const int control = luaL_checkinteger(L, 1);
+ const char *value = luaL_checkstring(L, 2);
+ if (value) {
+ host->UserStripSetList(control, value);
+@@ -347,7 +347,7 @@
+ }
+
+ static int cf_scite_strip_value(lua_State *L) {
+- const int control = luaL_checkint(L, 1);
++ const int control = luaL_checkinteger(L, 1);
+ std::string value = host->UserStripValue(control);
+ push_string(L, value);
+ return 1;
+@@ -437,7 +437,7 @@
+ SA::Position rangeStart = 0;
+ SA::Position rangeEnd = 0;
+
+- const int flags = (nArgs > 2) ? luaL_checkint(L, 3) : 0;
++ const int flags = (nArgs > 2) ? luaL_checkinteger(L, 3) : 0;
+ hasError = (flags == 0 && lua_gettop(L) > nArgs);
+
+ if (!hasError) {
+@@ -514,7 +514,7 @@
+
+ SA::ScintillaCall &sc = host->PaneCaller(pmo->pane);
+ sc.SetTarget(pmo->range);
+- sc.ReplaceTarget(lua_strlen(L, 2), replacement);
++ sc.ReplaceTarget(lua_rawlen(L, 2), replacement);
+ pmo->range.end = sc.TargetEnd();
+ return 0;
+ }
+@@ -600,7 +600,7 @@
+ pmo->endPosOrig = 0;
+ pmo->flags = 0;
+ if (nargs >= 3) {
+- pmo->flags = luaL_checkint(L, 3);
++ pmo->flags = luaL_checkinteger(L, 3);
+ if (nargs >= 4) {
+ pmo->range.end = pmo->endPosOrig = luaL_checkinteger(L, 4);
+ if (pmo->range.end < 0) {
+@@ -765,7 +765,7 @@
+ const int nargs = lua_gettop(L);
+ const char *code = luaL_checkstring(L, 1);
+ const char *name = luaL_optstring(L, 2, code);
+- if (0 == luaL_loadbuffer(L, code, lua_strlen(L, 1), name)) {
++ if (0 == luaL_loadbuffer(L, code, lua_rawlen(L, 1), name)) {
+ lua_call(L, 0, LUA_MULTRET);
+ return lua_gettop(L) - nargs;
+ } else {
+@@ -896,7 +896,7 @@
+ int loopParamCount = 2;
+
+ if (func.paramType[0] == iface_length && func.paramType[1] == iface_string) {
+- params[0] = lua_strlen(L, arg);
++ params[0] = lua_rawlen(L, arg);
+ params[1] = SptrFromString(params[0] ? lua_tostring(L, arg) : "");
+ loopParamCount = 0;
+ } else if ((func.paramType[1] == iface_stringresult) || (func.returnType == iface_stringresult)) {
+@@ -915,8 +915,8 @@
+ const char *s = lua_tostring(L, arg++);
+ params[i] = SptrFromString(s ? s : "");
+ } else if (func.paramType[i] == iface_keymod) {
+- const int keycode = luaL_checkint(L, arg++) & 0xFFFF;
+- const int modifiers = luaL_checkint(L, arg++) &
++ const int keycode = luaL_checkinteger(L, arg++) & 0xFFFF;
++ const int modifiers = luaL_checkinteger(L, arg++) &
+ static_cast<int>(SA::KeyMod::Shift|SA::KeyMod::Ctrl|SA::KeyMod::Alt);
+ params[i] = keycode | (modifiers<<16);
+ } else if (func.paramType[i] == iface_bool) {
+@@ -1805,7 +1805,7 @@
+ static int SetLevelAt(lua_State *L) {
+ StylingContext *context = Context(L);
+ const SA::Line line = luaL_checkinteger(L, 2);
+- const int level = luaL_checkint(L, 3);
++ const int level = luaL_checkinteger(L, 3);
+ context->styler->SetLevel(line, static_cast<SA::FoldLevel>(level));
+ return 0;
+ }
+@@ -1820,7 +1820,7 @@
+ static int SetLineState(lua_State *L) {
+ StylingContext *context = Context(L);
+ const SA::Line line = luaL_checkinteger(L, 2);
+- const int stateOfLine = luaL_checkint(L, 3);
++ const int stateOfLine = luaL_checkinteger(L, 3);
+ context->styler->SetLineState(line, stateOfLine);
+ return 0;
+ }
+@@ -1898,7 +1898,7 @@
+ StylingContext *context = Context(L);
+ const SA::Position startPosStyle = luaL_checkinteger(L, 2);
+ const SA::Position lengthStyle = luaL_checkinteger(L, 3);
+- const int initialStyle = luaL_checkint(L, 4);
++ const int initialStyle = luaL_checkinteger(L, 4);
+ context->StartStyling(startPosStyle, lengthStyle, initialStyle);
+ return 0;
+ }
+@@ -1957,7 +1957,7 @@
+ static int SetState(lua_State *L) {
+ StylingContext *context = Context(L);
+ context->Colourize();
+- context->state = luaL_checkint(L, 2);
++ context->state = luaL_checkinteger(L, 2);
+ return 0;
+ }
+
+@@ -1965,13 +1965,13 @@
+ StylingContext *context = Context(L);
+ context->Forward();
+ context->Colourize();
+- context->state = luaL_checkint(L, 2);
++ context->state = luaL_checkinteger(L, 2);
+ return 0;
+ }
+
+ static int ChangeState(lua_State *L) {
+ StylingContext *context = Context(L);
+- context->state = luaL_checkint(L, 2);
++ context->state = luaL_checkinteger(L, 2);
+ return 0;
+ }
+
bgstack15