* [PR PATCH] codelite: update to 14.0.2
@ 2020-11-15 1:38 ndowens
2020-11-15 1:40 ` [PR PATCH] [Updated] " ndowens
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: ndowens @ 2020-11-15 1:38 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 312 bytes --]
There is a new pull request by ndowens against master on the void-packages repository
https://github.com/ndowens/void-packages codelite
https://github.com/void-linux/void-packages/pull/26387
codelite: update to 14.0.2
A patch file from https://github.com/void-linux/void-packages/pull/26387.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-codelite-26387.patch --]
[-- Type: text/x-diff, Size: 6178 bytes --]
From f7aec022ddf6871ee12db6f6c31dfadf9ae1464c Mon Sep 17 00:00:00 2001
From: Nathan Owens <ndowens@artixlinux.org>
Date: Sat, 14 Nov 2020 19:38:09 -0600
Subject: [PATCH] codelite: update to 14.0.2
---
srcpkgs/codelite/patches/92ed90e07.patch | 48 --------------------
srcpkgs/codelite/patches/musl.patch | 56 ------------------------
srcpkgs/codelite/template | 20 +++++----
3 files changed, 12 insertions(+), 112 deletions(-)
delete mode 100644 srcpkgs/codelite/patches/92ed90e07.patch
delete mode 100644 srcpkgs/codelite/patches/musl.patch
diff --git a/srcpkgs/codelite/patches/92ed90e07.patch b/srcpkgs/codelite/patches/92ed90e07.patch
deleted file mode 100644
index 89fba88f14d..00000000000
--- a/srcpkgs/codelite/patches/92ed90e07.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-From 92ed90e07774dfc8556bee02c66120eed4938a40 Mon Sep 17 00:00:00 2001
-From: dghart <dghart david@4Pane.co.uk>
-Date: Wed, 19 Jun 2019 11:23:38 +0100
-Subject: [PATCH] Compilation fix for wx3.0 gtk+3 builds
-
----
- codelite_terminal/TextView.cpp | 12 ++++++++++++
- 1 file changed, 12 insertions(+)
-
-diff --git a/codelite_terminal/TextView.cpp b/codelite_terminal/TextView.cpp
-index 83d2e260c..5966f9972 100644
---- codelite_terminal/TextView.cpp
-+++ codelite_terminal/TextView.cpp
-@@ -12,7 +12,11 @@ TextView::TextView(wxWindow* parent, wxWindowID winid)
- m_ctrl->SetCaretStyle(wxSTC_CARETSTYLE_BLOCK);
- m_ctrl->SetYCaretPolicy(wxSTC_CARET_STRICT | wxSTC_CARET_SLOP, 4);
- m_ctrl->SetLexer(wxSTC_LEX_CONTAINER);
-+#if wxCHECK_VERSION(3, 1, 1)
- m_ctrl->StartStyling(0);
-+#else
-+ m_ctrl->StartStyling(0, 0x1f);
-+#endif
- m_ctrl->SetWrapMode(wxSTC_WRAP_CHAR);
- #else
- m_ctrl = new TextCtrl_t(this, wxID_ANY, "", wxDefaultPosition, wxDefaultSize,
-@@ -61,7 +65,11 @@ void TextView::SetDefaultStyle(const wxTextAttr& attr)
- {
- #if USE_STC
- m_defaultAttr = attr;
-+#if wxCHECK_VERSION(3, 1, 1)
- m_ctrl->StartStyling(m_ctrl->GetLastPosition());
-+#else
-+ m_ctrl->StartStyling(m_ctrl->GetLastPosition(), 0x1f);
-+#endif
- #else
- m_ctrl->SetDefaultStyle(attr);
- #endif
-@@ -210,6 +218,10 @@ void TextView::Clear()
- #if USE_STC
- m_ctrl->ClearAll();
- m_ctrl->ClearDocumentStyle();
-+#if wxCHECK_VERSION(3, 1, 1)
- m_ctrl->StartStyling(0);
-+#else
-+ m_ctrl->StartStyling(0, 0x1f);
-+#endif
- #endif
- }
diff --git a/srcpkgs/codelite/patches/musl.patch b/srcpkgs/codelite/patches/musl.patch
deleted file mode 100644
index 8a345ed9753..00000000000
--- a/srcpkgs/codelite/patches/musl.patch
+++ /dev/null
@@ -1,56 +0,0 @@
---- codelitegcc/main.cpp.orig 2019-06-29 08:37:38.818622077 +0200
-+++ codelitegcc/main.cpp 2019-06-29 08:38:04.090937646 +0200
-@@ -33,6 +33,7 @@ extern int ExecuteProcessWIN(const std::
- #include <sys/file.h>
- #include <sys/stat.h>
- #include <sys/stat.h>
-+#include <fcntl.h>
-
- void WriteContent( const std::string& logfile, const std::string& filename, const std::string& flags )
- {
---- sdk/codelite_indexer/libctags/read.c.orig 2019-06-29 08:54:26.592208449 +0200
-+++ sdk/codelite_indexer/libctags/read.c 2019-06-29 08:56:18.688608501 +0200
-@@ -605,6 +605,9 @@ extern int readChars (char *buffer, size
- #if defined(__WXMSW__) || defined(__APPLE__) || defined(__FreeBSD__)
- if(location < 0)
- return 0;
-+#elif defined(__linux__) && !defined(__GLIBC__) /* musl */
-+ if(location.__lldata < 0)
-+ return 0;
- #else
- if(location.__pos < 0)
- return 0;
-@@ -619,6 +622,8 @@ extern int readChars (char *buffer, size
-
- #if defined(__WXMSW__) || defined(__APPLE__) || defined(__FreeBSD__)
- sizeToRead = endPos - location;
-+#elif defined(__linux__) && !defined(__GLIBC__) /* musl */
-+ sizeToRead = endPos.__lldata - location.__lldata;
- #else
- sizeToRead = endPos.__pos - location.__pos;
- #endif
---- sdk/codelite_indexer/network/named_pipe.cpp.orig 2019-06-29 09:06:20.260132366 +0200
-+++ sdk/codelite_indexer/network/named_pipe.cpp 2019-06-29 09:06:38.468360112 +0200
-@@ -27,9 +27,9 @@
-
- #ifndef __WXMSW__
- # include <sys/types.h>
--# include <sys/unistd.h>
- # include <sys/socket.h>
- # include <sys/time.h>
-+# include <unistd.h>
- #endif
-
- #ifdef __WXMSW__
---- sdk/codelite_indexer/network/named_pipe_server.cpp.orig 2019-06-29 09:07:26.077955618 +0200
-+++ sdk/codelite_indexer/network/named_pipe_server.cpp 2019-06-29 09:07:35.484073269 +0200
-@@ -26,8 +26,8 @@
- #include "named_pipe_server.h"
- #ifndef __WXMSW__
- # include <sys/types.h>
--# include <sys/unistd.h>
- # include <sys/socket.h>
-+# include <unistd.h>
- #endif
- clNamedPipeServer::clNamedPipeServer(const char* pipePath)
- : clNamedPipe(pipePath)
diff --git a/srcpkgs/codelite/template b/srcpkgs/codelite/template
index a2a09d79fa1..f1a197752f4 100644
--- a/srcpkgs/codelite/template
+++ b/srcpkgs/codelite/template
@@ -1,8 +1,8 @@
# Template file for 'codelite'
pkgname=codelite
-version=13.0
-revision=3
-archs="i686* x86_64* ppc64le*"
+version=14.0.2
+revision=1
+#archs="i686* x86_64* ppc64le*"
build_style=cmake
configure_args="-DWITH_PCH=0
$(vopt_if sftp -DENABLE_SFTP=1)
@@ -16,19 +16,23 @@ maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://www.codelite.org"
distfiles="https://github.com/eranif/${pkgname}/archive/${version}.tar.gz"
-checksum=f2653fa42d6214999718236998cb223e6de00a498c0cfde795e901be693fb9ac
-nocross=yes
-python_version=2 #unverified
+checksum=76694ceed866b90a8226bbf4e3945c5898d43d5da11114148e196e5c046d735a
build_options="hunspell lldb mysql sftp"
-build_options_default="hunspell lldb sftp"
+build_options_default="hunspell sftp"
desc_option_hunspell="Enable SpellCheck plugin"
desc_option_lldb="Enable support for LLDB"
desc_option_mysql="Enable mysql/mariadb support"
desc_option_sftp="Enable Workspace Mirroring plugin"
+# Arm-based gives lldb-devel not found
+case "$XBPS_TARGET_MACHINE" in
+ arm*|aarch64*) ;;
+ *) build_options_default+=" lldb" ;;
+esac
+
pre_configure() {
- sed -i -e 's,wx-config,&-gtk3,g' \
+ vsed -i -e 's,wx-config,&-gtk3,g' \
-e "1i\SET(wxWidgets_CONFIG_EXECUTABLE wx-config-gtk3)" \
CMakeLists.txt
}
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PR PATCH] [Updated] codelite: update to 14.0.2
2020-11-15 1:38 [PR PATCH] codelite: update to 14.0.2 ndowens
@ 2020-11-15 1:40 ` ndowens
2020-11-15 1:41 ` ndowens
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: ndowens @ 2020-11-15 1:40 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 317 bytes --]
There is an updated pull request by ndowens against master on the void-packages repository
https://github.com/ndowens/void-packages codelite
https://github.com/void-linux/void-packages/pull/26387
codelite: update to 14.0.2
A patch file from https://github.com/void-linux/void-packages/pull/26387.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-codelite-26387.patch --]
[-- Type: text/x-diff, Size: 8286 bytes --]
From 910620c8ff1725c75a42c54ccd576c1ee5722127 Mon Sep 17 00:00:00 2001
From: Nathan Owens <ndowens@artixlinux.org>
Date: Sat, 14 Nov 2020 19:38:09 -0600
Subject: [PATCH] codelite: update to 14.0.2
---
srcpkgs/codelite/patches/0001-musl.patch | 48 ++++++++++++++++++++
srcpkgs/codelite/patches/92ed90e07.patch | 48 --------------------
srcpkgs/codelite/patches/musl.patch | 56 ------------------------
srcpkgs/codelite/template | 20 +++++----
4 files changed, 60 insertions(+), 112 deletions(-)
create mode 100644 srcpkgs/codelite/patches/0001-musl.patch
delete mode 100644 srcpkgs/codelite/patches/92ed90e07.patch
delete mode 100644 srcpkgs/codelite/patches/musl.patch
diff --git a/srcpkgs/codelite/patches/0001-musl.patch b/srcpkgs/codelite/patches/0001-musl.patch
new file mode 100644
index 00000000000..5a2276283fd
--- /dev/null
+++ b/srcpkgs/codelite/patches/0001-musl.patch
@@ -0,0 +1,48 @@
+From 62f450b79993ea12e81007158471aadaf2d7f67d Mon Sep 17 00:00:00 2001
+From: Nathan Owens <ndowens@artixlinux.org>
+Date: Sat, 14 Nov 2020 19:37:11 -0600
+Subject: [PATCH] musl
+
+---
+ codelitegcc/main.cpp | 1 +
+ sdk/codelite_indexer/libctags/read.c | 5 +++++
+ 2 files changed, 6 insertions(+)
+
+diff --git codelitegcc/main.cpp codelitegcc/main.cpp
+index 1b78e08..a4ffdc3 100644
+--- codelitegcc/main.cpp
++++ codelitegcc/main.cpp
+@@ -33,6 +33,7 @@ extern int ExecuteProcessWIN(const std::string& commandline);
+ #include <sys/file.h>
+ #include <sys/stat.h>
+ #include <sys/stat.h>
++#include <fcntl.h>
+
+ void WriteContent( const std::string& logfile, const std::string& filename, const std::string& flags )
+ {
+diff --git sdk/codelite_indexer/libctags/read.c sdk/codelite_indexer/libctags/read.c
+index 7dffde6..d6cc961 100644
+--- sdk/codelite_indexer/libctags/read.c
++++ sdk/codelite_indexer/libctags/read.c
+@@ -605,6 +605,9 @@ extern int readChars (char *buffer, size_t bufferSize, fpos_t location, fpos_t e
+ #if defined(__WXMSW__) || defined(__APPLE__) || defined(__FreeBSD__)
+ if(location < 0)
+ return 0;
++#elif defined(__linux__) && !defined(__GLIBC__) /* musl */
++ if(location.__lldata < 0)
++ return 0;
+ #elif defined(__NetBSD__)
+ if(location._pos < 0)
+ return 0;
+@@ -625,6 +628,8 @@ extern int readChars (char *buffer, size_t bufferSize, fpos_t location, fpos_t e
+
+ #if defined(__WXMSW__) || defined(__APPLE__) || defined(__FreeBSD__)
+ sizeToRead = endPos - location;
++#elif defined(__linux__) && !defined(__GLIBC__) /* musl */
++ sizeToRead = endPos.__lldata - location.__lldata;
+ #elif defined(__NetBSD__)
+ sizeToRead = endPos._pos - location._pos;
+ #else
+--
+2.29.2
+
diff --git a/srcpkgs/codelite/patches/92ed90e07.patch b/srcpkgs/codelite/patches/92ed90e07.patch
deleted file mode 100644
index 89fba88f14d..00000000000
--- a/srcpkgs/codelite/patches/92ed90e07.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-From 92ed90e07774dfc8556bee02c66120eed4938a40 Mon Sep 17 00:00:00 2001
-From: dghart <dghart david@4Pane.co.uk>
-Date: Wed, 19 Jun 2019 11:23:38 +0100
-Subject: [PATCH] Compilation fix for wx3.0 gtk+3 builds
-
----
- codelite_terminal/TextView.cpp | 12 ++++++++++++
- 1 file changed, 12 insertions(+)
-
-diff --git a/codelite_terminal/TextView.cpp b/codelite_terminal/TextView.cpp
-index 83d2e260c..5966f9972 100644
---- codelite_terminal/TextView.cpp
-+++ codelite_terminal/TextView.cpp
-@@ -12,7 +12,11 @@ TextView::TextView(wxWindow* parent, wxWindowID winid)
- m_ctrl->SetCaretStyle(wxSTC_CARETSTYLE_BLOCK);
- m_ctrl->SetYCaretPolicy(wxSTC_CARET_STRICT | wxSTC_CARET_SLOP, 4);
- m_ctrl->SetLexer(wxSTC_LEX_CONTAINER);
-+#if wxCHECK_VERSION(3, 1, 1)
- m_ctrl->StartStyling(0);
-+#else
-+ m_ctrl->StartStyling(0, 0x1f);
-+#endif
- m_ctrl->SetWrapMode(wxSTC_WRAP_CHAR);
- #else
- m_ctrl = new TextCtrl_t(this, wxID_ANY, "", wxDefaultPosition, wxDefaultSize,
-@@ -61,7 +65,11 @@ void TextView::SetDefaultStyle(const wxTextAttr& attr)
- {
- #if USE_STC
- m_defaultAttr = attr;
-+#if wxCHECK_VERSION(3, 1, 1)
- m_ctrl->StartStyling(m_ctrl->GetLastPosition());
-+#else
-+ m_ctrl->StartStyling(m_ctrl->GetLastPosition(), 0x1f);
-+#endif
- #else
- m_ctrl->SetDefaultStyle(attr);
- #endif
-@@ -210,6 +218,10 @@ void TextView::Clear()
- #if USE_STC
- m_ctrl->ClearAll();
- m_ctrl->ClearDocumentStyle();
-+#if wxCHECK_VERSION(3, 1, 1)
- m_ctrl->StartStyling(0);
-+#else
-+ m_ctrl->StartStyling(0, 0x1f);
-+#endif
- #endif
- }
diff --git a/srcpkgs/codelite/patches/musl.patch b/srcpkgs/codelite/patches/musl.patch
deleted file mode 100644
index 8a345ed9753..00000000000
--- a/srcpkgs/codelite/patches/musl.patch
+++ /dev/null
@@ -1,56 +0,0 @@
---- codelitegcc/main.cpp.orig 2019-06-29 08:37:38.818622077 +0200
-+++ codelitegcc/main.cpp 2019-06-29 08:38:04.090937646 +0200
-@@ -33,6 +33,7 @@ extern int ExecuteProcessWIN(const std::
- #include <sys/file.h>
- #include <sys/stat.h>
- #include <sys/stat.h>
-+#include <fcntl.h>
-
- void WriteContent( const std::string& logfile, const std::string& filename, const std::string& flags )
- {
---- sdk/codelite_indexer/libctags/read.c.orig 2019-06-29 08:54:26.592208449 +0200
-+++ sdk/codelite_indexer/libctags/read.c 2019-06-29 08:56:18.688608501 +0200
-@@ -605,6 +605,9 @@ extern int readChars (char *buffer, size
- #if defined(__WXMSW__) || defined(__APPLE__) || defined(__FreeBSD__)
- if(location < 0)
- return 0;
-+#elif defined(__linux__) && !defined(__GLIBC__) /* musl */
-+ if(location.__lldata < 0)
-+ return 0;
- #else
- if(location.__pos < 0)
- return 0;
-@@ -619,6 +622,8 @@ extern int readChars (char *buffer, size
-
- #if defined(__WXMSW__) || defined(__APPLE__) || defined(__FreeBSD__)
- sizeToRead = endPos - location;
-+#elif defined(__linux__) && !defined(__GLIBC__) /* musl */
-+ sizeToRead = endPos.__lldata - location.__lldata;
- #else
- sizeToRead = endPos.__pos - location.__pos;
- #endif
---- sdk/codelite_indexer/network/named_pipe.cpp.orig 2019-06-29 09:06:20.260132366 +0200
-+++ sdk/codelite_indexer/network/named_pipe.cpp 2019-06-29 09:06:38.468360112 +0200
-@@ -27,9 +27,9 @@
-
- #ifndef __WXMSW__
- # include <sys/types.h>
--# include <sys/unistd.h>
- # include <sys/socket.h>
- # include <sys/time.h>
-+# include <unistd.h>
- #endif
-
- #ifdef __WXMSW__
---- sdk/codelite_indexer/network/named_pipe_server.cpp.orig 2019-06-29 09:07:26.077955618 +0200
-+++ sdk/codelite_indexer/network/named_pipe_server.cpp 2019-06-29 09:07:35.484073269 +0200
-@@ -26,8 +26,8 @@
- #include "named_pipe_server.h"
- #ifndef __WXMSW__
- # include <sys/types.h>
--# include <sys/unistd.h>
- # include <sys/socket.h>
-+# include <unistd.h>
- #endif
- clNamedPipeServer::clNamedPipeServer(const char* pipePath)
- : clNamedPipe(pipePath)
diff --git a/srcpkgs/codelite/template b/srcpkgs/codelite/template
index a2a09d79fa1..f1a197752f4 100644
--- a/srcpkgs/codelite/template
+++ b/srcpkgs/codelite/template
@@ -1,8 +1,8 @@
# Template file for 'codelite'
pkgname=codelite
-version=13.0
-revision=3
-archs="i686* x86_64* ppc64le*"
+version=14.0.2
+revision=1
+#archs="i686* x86_64* ppc64le*"
build_style=cmake
configure_args="-DWITH_PCH=0
$(vopt_if sftp -DENABLE_SFTP=1)
@@ -16,19 +16,23 @@ maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://www.codelite.org"
distfiles="https://github.com/eranif/${pkgname}/archive/${version}.tar.gz"
-checksum=f2653fa42d6214999718236998cb223e6de00a498c0cfde795e901be693fb9ac
-nocross=yes
-python_version=2 #unverified
+checksum=76694ceed866b90a8226bbf4e3945c5898d43d5da11114148e196e5c046d735a
build_options="hunspell lldb mysql sftp"
-build_options_default="hunspell lldb sftp"
+build_options_default="hunspell sftp"
desc_option_hunspell="Enable SpellCheck plugin"
desc_option_lldb="Enable support for LLDB"
desc_option_mysql="Enable mysql/mariadb support"
desc_option_sftp="Enable Workspace Mirroring plugin"
+# Arm-based gives lldb-devel not found
+case "$XBPS_TARGET_MACHINE" in
+ arm*|aarch64*) ;;
+ *) build_options_default+=" lldb" ;;
+esac
+
pre_configure() {
- sed -i -e 's,wx-config,&-gtk3,g' \
+ vsed -i -e 's,wx-config,&-gtk3,g' \
-e "1i\SET(wxWidgets_CONFIG_EXECUTABLE wx-config-gtk3)" \
CMakeLists.txt
}
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PR PATCH] [Updated] codelite: update to 14.0.2
2020-11-15 1:38 [PR PATCH] codelite: update to 14.0.2 ndowens
2020-11-15 1:40 ` [PR PATCH] [Updated] " ndowens
@ 2020-11-15 1:41 ` ndowens
2020-11-15 1:41 ` [PR PATCH] [Closed]: " ndowens
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: ndowens @ 2020-11-15 1:41 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 317 bytes --]
There is an updated pull request by ndowens against master on the void-packages repository
https://github.com/ndowens/void-packages codelite
https://github.com/void-linux/void-packages/pull/26387
codelite: update to 14.0.2
A patch file from https://github.com/void-linux/void-packages/pull/26387.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-codelite-26387.patch --]
[-- Type: text/x-diff, Size: 8296 bytes --]
From c1a69d870caaace8f4f4de3416babe38271b326e Mon Sep 17 00:00:00 2001
From: Nathan Owens <ndowens@artixlinux.org>
Date: Sat, 14 Nov 2020 19:38:09 -0600
Subject: [PATCH] codelite: update to 14.0.2
[ci skip]
---
srcpkgs/codelite/patches/0001-musl.patch | 48 ++++++++++++++++++++
srcpkgs/codelite/patches/92ed90e07.patch | 48 --------------------
srcpkgs/codelite/patches/musl.patch | 56 ------------------------
srcpkgs/codelite/template | 20 +++++----
4 files changed, 60 insertions(+), 112 deletions(-)
create mode 100644 srcpkgs/codelite/patches/0001-musl.patch
delete mode 100644 srcpkgs/codelite/patches/92ed90e07.patch
delete mode 100644 srcpkgs/codelite/patches/musl.patch
diff --git a/srcpkgs/codelite/patches/0001-musl.patch b/srcpkgs/codelite/patches/0001-musl.patch
new file mode 100644
index 00000000000..5a2276283fd
--- /dev/null
+++ b/srcpkgs/codelite/patches/0001-musl.patch
@@ -0,0 +1,48 @@
+From 62f450b79993ea12e81007158471aadaf2d7f67d Mon Sep 17 00:00:00 2001
+From: Nathan Owens <ndowens@artixlinux.org>
+Date: Sat, 14 Nov 2020 19:37:11 -0600
+Subject: [PATCH] musl
+
+---
+ codelitegcc/main.cpp | 1 +
+ sdk/codelite_indexer/libctags/read.c | 5 +++++
+ 2 files changed, 6 insertions(+)
+
+diff --git codelitegcc/main.cpp codelitegcc/main.cpp
+index 1b78e08..a4ffdc3 100644
+--- codelitegcc/main.cpp
++++ codelitegcc/main.cpp
+@@ -33,6 +33,7 @@ extern int ExecuteProcessWIN(const std::string& commandline);
+ #include <sys/file.h>
+ #include <sys/stat.h>
+ #include <sys/stat.h>
++#include <fcntl.h>
+
+ void WriteContent( const std::string& logfile, const std::string& filename, const std::string& flags )
+ {
+diff --git sdk/codelite_indexer/libctags/read.c sdk/codelite_indexer/libctags/read.c
+index 7dffde6..d6cc961 100644
+--- sdk/codelite_indexer/libctags/read.c
++++ sdk/codelite_indexer/libctags/read.c
+@@ -605,6 +605,9 @@ extern int readChars (char *buffer, size_t bufferSize, fpos_t location, fpos_t e
+ #if defined(__WXMSW__) || defined(__APPLE__) || defined(__FreeBSD__)
+ if(location < 0)
+ return 0;
++#elif defined(__linux__) && !defined(__GLIBC__) /* musl */
++ if(location.__lldata < 0)
++ return 0;
+ #elif defined(__NetBSD__)
+ if(location._pos < 0)
+ return 0;
+@@ -625,6 +628,8 @@ extern int readChars (char *buffer, size_t bufferSize, fpos_t location, fpos_t e
+
+ #if defined(__WXMSW__) || defined(__APPLE__) || defined(__FreeBSD__)
+ sizeToRead = endPos - location;
++#elif defined(__linux__) && !defined(__GLIBC__) /* musl */
++ sizeToRead = endPos.__lldata - location.__lldata;
+ #elif defined(__NetBSD__)
+ sizeToRead = endPos._pos - location._pos;
+ #else
+--
+2.29.2
+
diff --git a/srcpkgs/codelite/patches/92ed90e07.patch b/srcpkgs/codelite/patches/92ed90e07.patch
deleted file mode 100644
index 89fba88f14d..00000000000
--- a/srcpkgs/codelite/patches/92ed90e07.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-From 92ed90e07774dfc8556bee02c66120eed4938a40 Mon Sep 17 00:00:00 2001
-From: dghart <dghart david@4Pane.co.uk>
-Date: Wed, 19 Jun 2019 11:23:38 +0100
-Subject: [PATCH] Compilation fix for wx3.0 gtk+3 builds
-
----
- codelite_terminal/TextView.cpp | 12 ++++++++++++
- 1 file changed, 12 insertions(+)
-
-diff --git a/codelite_terminal/TextView.cpp b/codelite_terminal/TextView.cpp
-index 83d2e260c..5966f9972 100644
---- codelite_terminal/TextView.cpp
-+++ codelite_terminal/TextView.cpp
-@@ -12,7 +12,11 @@ TextView::TextView(wxWindow* parent, wxWindowID winid)
- m_ctrl->SetCaretStyle(wxSTC_CARETSTYLE_BLOCK);
- m_ctrl->SetYCaretPolicy(wxSTC_CARET_STRICT | wxSTC_CARET_SLOP, 4);
- m_ctrl->SetLexer(wxSTC_LEX_CONTAINER);
-+#if wxCHECK_VERSION(3, 1, 1)
- m_ctrl->StartStyling(0);
-+#else
-+ m_ctrl->StartStyling(0, 0x1f);
-+#endif
- m_ctrl->SetWrapMode(wxSTC_WRAP_CHAR);
- #else
- m_ctrl = new TextCtrl_t(this, wxID_ANY, "", wxDefaultPosition, wxDefaultSize,
-@@ -61,7 +65,11 @@ void TextView::SetDefaultStyle(const wxTextAttr& attr)
- {
- #if USE_STC
- m_defaultAttr = attr;
-+#if wxCHECK_VERSION(3, 1, 1)
- m_ctrl->StartStyling(m_ctrl->GetLastPosition());
-+#else
-+ m_ctrl->StartStyling(m_ctrl->GetLastPosition(), 0x1f);
-+#endif
- #else
- m_ctrl->SetDefaultStyle(attr);
- #endif
-@@ -210,6 +218,10 @@ void TextView::Clear()
- #if USE_STC
- m_ctrl->ClearAll();
- m_ctrl->ClearDocumentStyle();
-+#if wxCHECK_VERSION(3, 1, 1)
- m_ctrl->StartStyling(0);
-+#else
-+ m_ctrl->StartStyling(0, 0x1f);
-+#endif
- #endif
- }
diff --git a/srcpkgs/codelite/patches/musl.patch b/srcpkgs/codelite/patches/musl.patch
deleted file mode 100644
index 8a345ed9753..00000000000
--- a/srcpkgs/codelite/patches/musl.patch
+++ /dev/null
@@ -1,56 +0,0 @@
---- codelitegcc/main.cpp.orig 2019-06-29 08:37:38.818622077 +0200
-+++ codelitegcc/main.cpp 2019-06-29 08:38:04.090937646 +0200
-@@ -33,6 +33,7 @@ extern int ExecuteProcessWIN(const std::
- #include <sys/file.h>
- #include <sys/stat.h>
- #include <sys/stat.h>
-+#include <fcntl.h>
-
- void WriteContent( const std::string& logfile, const std::string& filename, const std::string& flags )
- {
---- sdk/codelite_indexer/libctags/read.c.orig 2019-06-29 08:54:26.592208449 +0200
-+++ sdk/codelite_indexer/libctags/read.c 2019-06-29 08:56:18.688608501 +0200
-@@ -605,6 +605,9 @@ extern int readChars (char *buffer, size
- #if defined(__WXMSW__) || defined(__APPLE__) || defined(__FreeBSD__)
- if(location < 0)
- return 0;
-+#elif defined(__linux__) && !defined(__GLIBC__) /* musl */
-+ if(location.__lldata < 0)
-+ return 0;
- #else
- if(location.__pos < 0)
- return 0;
-@@ -619,6 +622,8 @@ extern int readChars (char *buffer, size
-
- #if defined(__WXMSW__) || defined(__APPLE__) || defined(__FreeBSD__)
- sizeToRead = endPos - location;
-+#elif defined(__linux__) && !defined(__GLIBC__) /* musl */
-+ sizeToRead = endPos.__lldata - location.__lldata;
- #else
- sizeToRead = endPos.__pos - location.__pos;
- #endif
---- sdk/codelite_indexer/network/named_pipe.cpp.orig 2019-06-29 09:06:20.260132366 +0200
-+++ sdk/codelite_indexer/network/named_pipe.cpp 2019-06-29 09:06:38.468360112 +0200
-@@ -27,9 +27,9 @@
-
- #ifndef __WXMSW__
- # include <sys/types.h>
--# include <sys/unistd.h>
- # include <sys/socket.h>
- # include <sys/time.h>
-+# include <unistd.h>
- #endif
-
- #ifdef __WXMSW__
---- sdk/codelite_indexer/network/named_pipe_server.cpp.orig 2019-06-29 09:07:26.077955618 +0200
-+++ sdk/codelite_indexer/network/named_pipe_server.cpp 2019-06-29 09:07:35.484073269 +0200
-@@ -26,8 +26,8 @@
- #include "named_pipe_server.h"
- #ifndef __WXMSW__
- # include <sys/types.h>
--# include <sys/unistd.h>
- # include <sys/socket.h>
-+# include <unistd.h>
- #endif
- clNamedPipeServer::clNamedPipeServer(const char* pipePath)
- : clNamedPipe(pipePath)
diff --git a/srcpkgs/codelite/template b/srcpkgs/codelite/template
index a2a09d79fa1..f1a197752f4 100644
--- a/srcpkgs/codelite/template
+++ b/srcpkgs/codelite/template
@@ -1,8 +1,8 @@
# Template file for 'codelite'
pkgname=codelite
-version=13.0
-revision=3
-archs="i686* x86_64* ppc64le*"
+version=14.0.2
+revision=1
+#archs="i686* x86_64* ppc64le*"
build_style=cmake
configure_args="-DWITH_PCH=0
$(vopt_if sftp -DENABLE_SFTP=1)
@@ -16,19 +16,23 @@ maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://www.codelite.org"
distfiles="https://github.com/eranif/${pkgname}/archive/${version}.tar.gz"
-checksum=f2653fa42d6214999718236998cb223e6de00a498c0cfde795e901be693fb9ac
-nocross=yes
-python_version=2 #unverified
+checksum=76694ceed866b90a8226bbf4e3945c5898d43d5da11114148e196e5c046d735a
build_options="hunspell lldb mysql sftp"
-build_options_default="hunspell lldb sftp"
+build_options_default="hunspell sftp"
desc_option_hunspell="Enable SpellCheck plugin"
desc_option_lldb="Enable support for LLDB"
desc_option_mysql="Enable mysql/mariadb support"
desc_option_sftp="Enable Workspace Mirroring plugin"
+# Arm-based gives lldb-devel not found
+case "$XBPS_TARGET_MACHINE" in
+ arm*|aarch64*) ;;
+ *) build_options_default+=" lldb" ;;
+esac
+
pre_configure() {
- sed -i -e 's,wx-config,&-gtk3,g' \
+ vsed -i -e 's,wx-config,&-gtk3,g' \
-e "1i\SET(wxWidgets_CONFIG_EXECUTABLE wx-config-gtk3)" \
CMakeLists.txt
}
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PR PATCH] [Closed]: codelite: update to 14.0.2
2020-11-15 1:38 [PR PATCH] codelite: update to 14.0.2 ndowens
2020-11-15 1:40 ` [PR PATCH] [Updated] " ndowens
2020-11-15 1:41 ` ndowens
@ 2020-11-15 1:41 ` ndowens
2020-11-15 1:56 ` [PR PATCH] [Updated] " ndowens
2021-10-12 18:38 ` [PR PATCH] [Closed]: " ericonr
4 siblings, 0 replies; 6+ messages in thread
From: ndowens @ 2020-11-15 1:41 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 160 bytes --]
There's a closed pull request on the void-packages repository
codelite: update to 14.0.2
https://github.com/void-linux/void-packages/pull/26387
Description:
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PR PATCH] [Updated] codelite: update to 14.0.2
2020-11-15 1:38 [PR PATCH] codelite: update to 14.0.2 ndowens
` (2 preceding siblings ...)
2020-11-15 1:41 ` [PR PATCH] [Closed]: " ndowens
@ 2020-11-15 1:56 ` ndowens
2021-10-12 18:38 ` [PR PATCH] [Closed]: " ericonr
4 siblings, 0 replies; 6+ messages in thread
From: ndowens @ 2020-11-15 1:56 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 317 bytes --]
There is an updated pull request by ndowens against master on the void-packages repository
https://github.com/ndowens/void-packages codelite
https://github.com/void-linux/void-packages/pull/26387
codelite: update to 14.0.2
A patch file from https://github.com/void-linux/void-packages/pull/26387.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-codelite-26387.patch --]
[-- Type: text/x-diff, Size: 9218 bytes --]
From 530b3e760742a85963a4dd6531125d0eab4c76ff Mon Sep 17 00:00:00 2001
From: Nathan Owens <ndowens@artixlinux.org>
Date: Sat, 14 Nov 2020 19:38:09 -0600
Subject: [PATCH] codelite: update to 14.0.2
[ci skip]
---
srcpkgs/codelite/patches/0001-musl.patch | 74 ++++++++++++++++++++++++
srcpkgs/codelite/patches/92ed90e07.patch | 48 ---------------
srcpkgs/codelite/patches/musl.patch | 56 ------------------
srcpkgs/codelite/template | 20 ++++---
4 files changed, 86 insertions(+), 112 deletions(-)
create mode 100644 srcpkgs/codelite/patches/0001-musl.patch
delete mode 100644 srcpkgs/codelite/patches/92ed90e07.patch
delete mode 100644 srcpkgs/codelite/patches/musl.patch
diff --git a/srcpkgs/codelite/patches/0001-musl.patch b/srcpkgs/codelite/patches/0001-musl.patch
new file mode 100644
index 00000000000..154016a1b8e
--- /dev/null
+++ b/srcpkgs/codelite/patches/0001-musl.patch
@@ -0,0 +1,74 @@
+From 62f450b79993ea12e81007158471aadaf2d7f67d Mon Sep 17 00:00:00 2001
+From: Nathan Owens <ndowens@artixlinux.org>
+Date: Sat, 14 Nov 2020 19:37:11 -0600
+Subject: [PATCH] musl
+
+---
+ codelitegcc/main.cpp | 1 +
+ sdk/codelite_indexer/libctags/read.c | 5 +++++
+ 2 files changed, 6 insertions(+)
+
+diff --git codelitegcc/main.cpp codelitegcc/main.cpp
+index 1b78e08..a4ffdc3 100644
+--- codelitegcc/main.cpp
++++ codelitegcc/main.cpp
+@@ -33,6 +33,7 @@ extern int ExecuteProcessWIN(const std::string& commandline);
+ #include <sys/file.h>
+ #include <sys/stat.h>
+ #include <sys/stat.h>
++#include <fcntl.h>
+
+ void WriteContent( const std::string& logfile, const std::string& filename, const std::string& flags )
+ {
+diff --git sdk/codelite_indexer/libctags/read.c sdk/codelite_indexer/libctags/read.c
+index 7dffde6..d6cc961 100644
+--- sdk/codelite_indexer/libctags/read.c
++++ sdk/codelite_indexer/libctags/read.c
+@@ -605,6 +605,9 @@ extern int readChars (char *buffer, size_t bufferSize, fpos_t location, fpos_t e
+ #if defined(__WXMSW__) || defined(__APPLE__) || defined(__FreeBSD__)
+ if(location < 0)
+ return 0;
++#elif defined(__linux__) && !defined(__GLIBC__) /* musl */
++ if(location.__lldata < 0)
++ return 0;
+ #elif defined(__NetBSD__)
+ if(location._pos < 0)
+ return 0;
+@@ -625,6 +628,8 @@ extern int readChars (char *buffer, size_t bufferSize, fpos_t location, fpos_t e
+
+ #if defined(__WXMSW__) || defined(__APPLE__) || defined(__FreeBSD__)
+ sizeToRead = endPos - location;
++#elif defined(__linux__) && !defined(__GLIBC__) /* musl */
++ sizeToRead = endPos.__lldata - location.__lldata;
+ #elif defined(__NetBSD__)
+ sizeToRead = endPos._pos - location._pos;
+ #else
+--
+2.29.2
+
+diff --git sdk/codelite_indexer/network/named_pipe.cpp sdk/codelite_indexer/network/named_pipe.cpp
+index 6e72994..4acc6bb 100644
+--- sdk/codelite_indexer/network/named_pipe.cpp
++++ sdk/codelite_indexer/network/named_pipe.cpp
+@@ -27,7 +27,7 @@
+
+ #ifndef __WXMSW__
+ # include <sys/types.h>
+-# include <sys/unistd.h>
++# include <unistd.h>
+ # include <sys/socket.h>
+ # include <sys/time.h>
+ #endif
+diff --git sdk/codelite_indexer/network/named_pipe_server.cpp sdk/codelite_indexer/network/named_pipe_server.cpp
+index 708df48..6171cf3 100644
+--- sdk/codelite_indexer/network/named_pipe_server.cpp
++++ sdk/codelite_indexer/network/named_pipe_server.cpp
+@@ -26,7 +26,7 @@
+ #include "named_pipe_server.h"
+ #ifndef __WXMSW__
+ # include <sys/types.h>
+-# include <sys/unistd.h>
++# include <unistd.h>
+ # include <sys/socket.h>
+ #endif
+ clNamedPipeServer::clNamedPipeServer(const char* pipePath)
diff --git a/srcpkgs/codelite/patches/92ed90e07.patch b/srcpkgs/codelite/patches/92ed90e07.patch
deleted file mode 100644
index 89fba88f14d..00000000000
--- a/srcpkgs/codelite/patches/92ed90e07.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-From 92ed90e07774dfc8556bee02c66120eed4938a40 Mon Sep 17 00:00:00 2001
-From: dghart <dghart david@4Pane.co.uk>
-Date: Wed, 19 Jun 2019 11:23:38 +0100
-Subject: [PATCH] Compilation fix for wx3.0 gtk+3 builds
-
----
- codelite_terminal/TextView.cpp | 12 ++++++++++++
- 1 file changed, 12 insertions(+)
-
-diff --git a/codelite_terminal/TextView.cpp b/codelite_terminal/TextView.cpp
-index 83d2e260c..5966f9972 100644
---- codelite_terminal/TextView.cpp
-+++ codelite_terminal/TextView.cpp
-@@ -12,7 +12,11 @@ TextView::TextView(wxWindow* parent, wxWindowID winid)
- m_ctrl->SetCaretStyle(wxSTC_CARETSTYLE_BLOCK);
- m_ctrl->SetYCaretPolicy(wxSTC_CARET_STRICT | wxSTC_CARET_SLOP, 4);
- m_ctrl->SetLexer(wxSTC_LEX_CONTAINER);
-+#if wxCHECK_VERSION(3, 1, 1)
- m_ctrl->StartStyling(0);
-+#else
-+ m_ctrl->StartStyling(0, 0x1f);
-+#endif
- m_ctrl->SetWrapMode(wxSTC_WRAP_CHAR);
- #else
- m_ctrl = new TextCtrl_t(this, wxID_ANY, "", wxDefaultPosition, wxDefaultSize,
-@@ -61,7 +65,11 @@ void TextView::SetDefaultStyle(const wxTextAttr& attr)
- {
- #if USE_STC
- m_defaultAttr = attr;
-+#if wxCHECK_VERSION(3, 1, 1)
- m_ctrl->StartStyling(m_ctrl->GetLastPosition());
-+#else
-+ m_ctrl->StartStyling(m_ctrl->GetLastPosition(), 0x1f);
-+#endif
- #else
- m_ctrl->SetDefaultStyle(attr);
- #endif
-@@ -210,6 +218,10 @@ void TextView::Clear()
- #if USE_STC
- m_ctrl->ClearAll();
- m_ctrl->ClearDocumentStyle();
-+#if wxCHECK_VERSION(3, 1, 1)
- m_ctrl->StartStyling(0);
-+#else
-+ m_ctrl->StartStyling(0, 0x1f);
-+#endif
- #endif
- }
diff --git a/srcpkgs/codelite/patches/musl.patch b/srcpkgs/codelite/patches/musl.patch
deleted file mode 100644
index 8a345ed9753..00000000000
--- a/srcpkgs/codelite/patches/musl.patch
+++ /dev/null
@@ -1,56 +0,0 @@
---- codelitegcc/main.cpp.orig 2019-06-29 08:37:38.818622077 +0200
-+++ codelitegcc/main.cpp 2019-06-29 08:38:04.090937646 +0200
-@@ -33,6 +33,7 @@ extern int ExecuteProcessWIN(const std::
- #include <sys/file.h>
- #include <sys/stat.h>
- #include <sys/stat.h>
-+#include <fcntl.h>
-
- void WriteContent( const std::string& logfile, const std::string& filename, const std::string& flags )
- {
---- sdk/codelite_indexer/libctags/read.c.orig 2019-06-29 08:54:26.592208449 +0200
-+++ sdk/codelite_indexer/libctags/read.c 2019-06-29 08:56:18.688608501 +0200
-@@ -605,6 +605,9 @@ extern int readChars (char *buffer, size
- #if defined(__WXMSW__) || defined(__APPLE__) || defined(__FreeBSD__)
- if(location < 0)
- return 0;
-+#elif defined(__linux__) && !defined(__GLIBC__) /* musl */
-+ if(location.__lldata < 0)
-+ return 0;
- #else
- if(location.__pos < 0)
- return 0;
-@@ -619,6 +622,8 @@ extern int readChars (char *buffer, size
-
- #if defined(__WXMSW__) || defined(__APPLE__) || defined(__FreeBSD__)
- sizeToRead = endPos - location;
-+#elif defined(__linux__) && !defined(__GLIBC__) /* musl */
-+ sizeToRead = endPos.__lldata - location.__lldata;
- #else
- sizeToRead = endPos.__pos - location.__pos;
- #endif
---- sdk/codelite_indexer/network/named_pipe.cpp.orig 2019-06-29 09:06:20.260132366 +0200
-+++ sdk/codelite_indexer/network/named_pipe.cpp 2019-06-29 09:06:38.468360112 +0200
-@@ -27,9 +27,9 @@
-
- #ifndef __WXMSW__
- # include <sys/types.h>
--# include <sys/unistd.h>
- # include <sys/socket.h>
- # include <sys/time.h>
-+# include <unistd.h>
- #endif
-
- #ifdef __WXMSW__
---- sdk/codelite_indexer/network/named_pipe_server.cpp.orig 2019-06-29 09:07:26.077955618 +0200
-+++ sdk/codelite_indexer/network/named_pipe_server.cpp 2019-06-29 09:07:35.484073269 +0200
-@@ -26,8 +26,8 @@
- #include "named_pipe_server.h"
- #ifndef __WXMSW__
- # include <sys/types.h>
--# include <sys/unistd.h>
- # include <sys/socket.h>
-+# include <unistd.h>
- #endif
- clNamedPipeServer::clNamedPipeServer(const char* pipePath)
- : clNamedPipe(pipePath)
diff --git a/srcpkgs/codelite/template b/srcpkgs/codelite/template
index a2a09d79fa1..f1a197752f4 100644
--- a/srcpkgs/codelite/template
+++ b/srcpkgs/codelite/template
@@ -1,8 +1,8 @@
# Template file for 'codelite'
pkgname=codelite
-version=13.0
-revision=3
-archs="i686* x86_64* ppc64le*"
+version=14.0.2
+revision=1
+#archs="i686* x86_64* ppc64le*"
build_style=cmake
configure_args="-DWITH_PCH=0
$(vopt_if sftp -DENABLE_SFTP=1)
@@ -16,19 +16,23 @@ maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://www.codelite.org"
distfiles="https://github.com/eranif/${pkgname}/archive/${version}.tar.gz"
-checksum=f2653fa42d6214999718236998cb223e6de00a498c0cfde795e901be693fb9ac
-nocross=yes
-python_version=2 #unverified
+checksum=76694ceed866b90a8226bbf4e3945c5898d43d5da11114148e196e5c046d735a
build_options="hunspell lldb mysql sftp"
-build_options_default="hunspell lldb sftp"
+build_options_default="hunspell sftp"
desc_option_hunspell="Enable SpellCheck plugin"
desc_option_lldb="Enable support for LLDB"
desc_option_mysql="Enable mysql/mariadb support"
desc_option_sftp="Enable Workspace Mirroring plugin"
+# Arm-based gives lldb-devel not found
+case "$XBPS_TARGET_MACHINE" in
+ arm*|aarch64*) ;;
+ *) build_options_default+=" lldb" ;;
+esac
+
pre_configure() {
- sed -i -e 's,wx-config,&-gtk3,g' \
+ vsed -i -e 's,wx-config,&-gtk3,g' \
-e "1i\SET(wxWidgets_CONFIG_EXECUTABLE wx-config-gtk3)" \
CMakeLists.txt
}
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PR PATCH] [Closed]: codelite: update to 14.0.2
2020-11-15 1:38 [PR PATCH] codelite: update to 14.0.2 ndowens
` (3 preceding siblings ...)
2020-11-15 1:56 ` [PR PATCH] [Updated] " ndowens
@ 2021-10-12 18:38 ` ericonr
4 siblings, 0 replies; 6+ messages in thread
From: ericonr @ 2021-10-12 18:38 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 160 bytes --]
There's a closed pull request on the void-packages repository
codelite: update to 14.0.2
https://github.com/void-linux/void-packages/pull/26387
Description:
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-10-12 18:38 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-15 1:38 [PR PATCH] codelite: update to 14.0.2 ndowens
2020-11-15 1:40 ` [PR PATCH] [Updated] " ndowens
2020-11-15 1:41 ` ndowens
2020-11-15 1:41 ` [PR PATCH] [Closed]: " ndowens
2020-11-15 1:56 ` [PR PATCH] [Updated] " ndowens
2021-10-12 18:38 ` [PR PATCH] [Closed]: " ericonr
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).