Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] MEGAcmd: update to 1.5.1
@ 2022-10-05 10:53 cultab
  2022-10-06  9:56 ` cultab
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: cultab @ 2022-10-05 10:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1457 bytes --]

There is a new pull request by cultab against master on the void-packages repository

https://github.com/cultab/void-packages megasdk
https://github.com/void-linux/void-packages/pull/39733

MEGAcmd: update to 1.5.1
I am trying to update `MEGAcmd` to `1.5.1` and `MEGAsdk` to `3.9.11d` (as per the version submoduled in MEGAcmd's repo). 
But am I getting a very peculiar issue with the ./configure script.

```
configure: line 22309: syntax error near unexpected token `cat'
configure: line 22309: `cat >confcache <<\_ACEOF'
```

It doesn't really seem like there is a syntax error there.
It runs just fine when manually run outside of the chroot. So I tried the following:

 - using `chroot-bash` outside the chroot to run `./configure` and replicated the issue. 
 - using `bash` outside the chroot to run `./configure` and replicated the issue. 
 - using `zsh` inside the chroot (by redefining `do_configure` to use `zsh`) which bypasses the issue but creates another issue.
 - using `sh`  outside the chroot works as expected.

_I don't think using another shell is a real solution._


I don't really know how to continue so I'm making a **broken draft pull request** to ask for help.
What could bash be doing differently so as to cause this issue?
Maybe I messed something up when porting `autotools.patch` to the new version of `MEGAcmd`?


A patch file from https://github.com/void-linux/void-packages/pull/39733.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-megasdk-39733.patch --]
[-- Type: text/x-diff, Size: 7291 bytes --]

From 86db52cfa7a92f638375d1df00aea1617b3dae8e Mon Sep 17 00:00:00 2001
From: cultab <rroarck@gmail.com>
Date: Wed, 5 Oct 2022 13:30:24 +0300
Subject: [PATCH 1/2] MEGAsdk: update to v3.9.11d

Added a patch to include a missing header file
that MEGAcmd expects to exist.
---
 common/shlibs                                 |  2 +-
 srcpkgs/MEGAsdk/patches/missing_headers.patch | 11 +++++++++++
 srcpkgs/MEGAsdk/template                      |  6 +++---
 3 files changed, 15 insertions(+), 4 deletions(-)
 create mode 100644 srcpkgs/MEGAsdk/patches/missing_headers.patch

diff --git a/common/shlibs b/common/shlibs
index 5d4b0a9899ad..147f2e056606 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3120,7 +3120,7 @@ libvted-3.so.0 libvted-3.7.0_2
 libpeasd-3.so.0 libpeasd-3.7.0_2
 libgstreamerd-3.so.0 libgstreamerd-3.7.0_2
 libgtkdgl-3.so.0 libgtkdgl-3.7.0_2
-libmega.so.30703 MEGAsdk-3.7.3c_2
+libmega.so.30911 MEGAsdk-3.9.11d_1
 libopenglrecorder.so.0 libopenglrecorder-0.1.0_1
 libgpod.so.4 libgpod-0.8.3_1
 libi2c.so.0 i2c-tools-4.0_1
diff --git a/srcpkgs/MEGAsdk/patches/missing_headers.patch b/srcpkgs/MEGAsdk/patches/missing_headers.patch
new file mode 100644
index 000000000000..0d66e5f76d47
--- /dev/null
+++ b/srcpkgs/MEGAsdk/patches/missing_headers.patch
@@ -0,0 +1,11 @@
+diff --color -Naru --show-c-function a/include/Makefile.am b/include/Makefile.am
+--- a/include/Makefile.am	2022-06-15 15:24:15.000000000 +0300
++++ b/include/Makefile.am	2022-10-05 12:13:09.443571788 +0300
+@@ -56,6 +56,7 @@ nobase_libmegainclude_HEADERS = \
+ 	mega/gfx/freeimage.h \
+ 	mega/gfx/GfxProcCG.h \
+ 	mega/raid.h \
++	mega/heartbeats.h \
+ 	mega/mediafileattribute.h
+ 
+ if BUILD_MEGAAPI
diff --git a/srcpkgs/MEGAsdk/template b/srcpkgs/MEGAsdk/template
index e9cbeb70f5db..e64da0364276 100644
--- a/srcpkgs/MEGAsdk/template
+++ b/srcpkgs/MEGAsdk/template
@@ -1,7 +1,7 @@
 # Template file for 'MEGAsdk'
 pkgname=MEGAsdk
-version=3.7.3c
-revision=2
+version=3.9.11d
+revision=1
 wrksrc="sdk-${version}"
 build_style=gnu-configure
 configure_args="--enable-chat --disable-examples $(vopt_with libuv)"
@@ -16,7 +16,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="BSD-2-Clause"
 homepage="https://mega.nz"
 distfiles="https://github.com/meganz/sdk/archive/v${version}.tar.gz"
-checksum=0b55c1752d590a0367b9fcddd2465ea574308eb97e065540121f6261807aa111
+checksum=30e82b1ae1e1cc1b0b525dd88546ad12daa331d2e98fd9bbd85f1b936e404582
 replaces="libmega>=0"
 
 build_options="libuv mediainfo"

From cc5622ebcad38061812b65dd73a92d2904e7d4c0 Mon Sep 17 00:00:00 2001
From: cultab <rroarck@gmail.com>
Date: Wed, 5 Oct 2022 13:33:17 +0300
Subject: [PATCH 2/2] MEGAcmd: update to 1.5.1

WIP: This does not build as of now.
---
 srcpkgs/MEGAcmd/patches/autotools.patch | 18 +++++++++---------
 srcpkgs/MEGAcmd/template                |  4 ++--
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/srcpkgs/MEGAcmd/patches/autotools.patch b/srcpkgs/MEGAcmd/patches/autotools.patch
index 770cc5a89b3b..fec6d4c3a5ef 100644
--- a/srcpkgs/MEGAcmd/patches/autotools.patch
+++ b/srcpkgs/MEGAcmd/patches/autotools.patch
@@ -6,7 +6,7 @@
  bin_PROGRAMS += $(MEGACMD)
 -$(MEGACMD): $(top_builddir)/sdk/src/libmega.la
 +$(MEGACMD):
- noinst_HEADERS += src/comunicationsmanager.h src/configurationmanager.h src/megacmd.h src/megacmdlogger.h src/megacmdsandbox.h src/megacmdutils.h src/megacmdcommonutils.h src/listeners.h src/megacmdexecuter.h src/megacmdversion.h src/megacmdplatform.h src/comunicationsmanagerportsockets.h
+ noinst_HEADERS += src/comunicationsmanager.h src/configurationmanager.h src/megacmd.h src/megacmdlogger.h src/megacmdsandbox.h src/megacmdutils.h src/megacmdcommonutils.h src/listeners.h src/megacmdexecuter.h src/megacmdtransfermanager.h src/megacmdversion.h src/megacmdplatform.h src/comunicationsmanagerportsockets.h
 -megacmdcompletiondir = $(sysconfdir)/bash_completion.d/
 +megacmdcompletiondir = $(datarootdir)/bash-completion/completions
  megacmdcompletion_DATA = src/client/megacmd_completion.sh
@@ -35,7 +35,7 @@
 -mega_cmd_LDADD = $(RL_LDFLAGS) $(RL_LIBS) $(TERMCAP_LDFLAGS) $(TERMCAP_LIBS) 
 +mega_cmd_LDADD = $(RL_LDFLAGS) $(RL_LIBS) $(TERMCAP_LDFLAGS) $(TERMCAP_LIBS) $(MEGA_LIBS)
  
- mega_cmd_server_CXXFLAGS = $(LMEGAINC)
+ mega_cmd_server_CXXFLAGS = $(LMEGAINC) $(DB_CXXFLAGS)
  if USE_PCRE
 @@ -41,9 +42,7 @@ mega_cmd_server_CXXFLAGS += -DUSE_PCRE=1
  endif
@@ -52,8 +52,8 @@
  
  else
  
--mega_cmd_server_LDADD=$(PCRE_LIBS) $(top_builddir)/sdk/src/libmega.la
-+mega_cmd_server_LDADD=$(PCRE_LIBS) $(MEGA_LIBS)
+-mega_cmd_server_LDADD=$(DB_LDFLAGS) $(DB_LIBS) $(PCRE_LIBS) $(top_builddir)/sdk/src/libmega.la
++mega_cmd_server_LDADD=$(DB_LDFLAGS) $(DB_LIBS) $(PCRE_LIBS) $(MEGA_LIBS)
  
  mega_cmd_server_SOURCES += src/comunicationsmanagerfilesockets.cpp
 -noinst_HEADERS += src/comunicationsmanagerfilesockets.h sdk/include/mega/thread/posixthread.h sdk/include/mega/logging.h
@@ -75,23 +75,23 @@
  #EXTRA_DIST += autogen.sh
 --- a/configure.ac
 +++ b/configure.ac
-@@ -18,9 +18,6 @@
+@@ -18,10 +18,6 @@
  #                                               -*- Autoconf -*-
  # Process this file with autoconf to produce a configure script.
  
 -m4_include([sdk/m4/ax_check_compile_flag.m4])
 -m4_include([sdk/m4/ax_check_link_flag.m4])
 -m4_include([sdk/m4/ax_cxx_compile_stdcxx.m4])
+-m4_include([sdk/m4/ax_atomic.m4])
  
  m4_define([megacmd_major_version], [$(cat src/megacmdversion.h | grep "define MEGACMD_MAJOR" | cut -d" " -f 3)])
  m4_define([megacmd_minor_version], [$(cat src/megacmdversion.h | grep "define MEGACMD_MINOR" | cut -d" " -f 3)])
-@@ -37,20 +34,18 @@ m4_define([megacmd_lt_age], [0])
+@@ -38,18 +34,18 @@ m4_define([megacmd_lt_age], [0])
  
  AC_INIT([MEGAcmd], m4_esyscmd([ grep define < src/megacmdversion.h | awk '{print $3}' | awk 'BEGIN { RS = "" ; FS = "\n" } {printf $1"."$2"."$3}']), [https://github.com/meganz/megacmd])
  
--AM_INIT_AUTOMAKE
 +AM_INIT_AUTOMAKE([1.11 foreign silent-rules])
- 
++
  AC_PROG_CC
  AC_CONFIG_FILES(Makefile)
  AC_OUTPUT
@@ -107,7 +107,7 @@
  AC_CONFIG_HEADERS([src/megacmdconfig.h]) #this avoids inline definitions of stuff already defined in sdk's config.h (e.g: -DPACKAGE_NAME)
  
  LT_INIT([shared disable-static win32-dll])
-@@ -449,7 +444,8 @@ AM_CONDITIONAL([HAVE_PTHREAD], [test "${
+@@ -541,7 +537,8 @@ CHECK_ATOMIC()
  #This will simulate compilation of sdk and extract the includes defined for it. Thus we can
  # take care of the configuration done for the subproject withtout having to recheck here
  AC_OUTPUT
diff --git a/srcpkgs/MEGAcmd/template b/srcpkgs/MEGAcmd/template
index ba2108f3aa25..a17851eb7e00 100644
--- a/srcpkgs/MEGAcmd/template
+++ b/srcpkgs/MEGAcmd/template
@@ -1,6 +1,6 @@
 # Template file for 'MEGAcmd'
 pkgname=MEGAcmd
-version=1.4.0
+version=1.5.1
 revision=1
 wrksrc="${pkgname}-${version}_Linux"
 build_style=gnu-configure
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="BSD-2-Clause, GPL-3.0-or-later"
 homepage="https://github.com/meganz/MEGAcmd"
 distfiles="https://github.com/meganz/MEGAcmd/archive/${version}_Linux.tar.gz"
-checksum=2a3626a9f1d22303fe2123f984a8ecf3779d6d59ac6c67c1bf43c2423dcb832d
+checksum=911197d777c13bf3ff5c38af0b5fce478a3f96f1fecfc9647b38614512f5c1f3
 replaces="megacmd>=0"
 
 if [ "$CROSS_BUILD" ]; then

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: MEGAcmd: update to 1.5.1
  2022-10-05 10:53 [PR PATCH] MEGAcmd: update to 1.5.1 cultab
@ 2022-10-06  9:56 ` cultab
  2022-10-06 10:51 ` [PR PATCH] [Updated] " cultab
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: cultab @ 2022-10-06  9:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 271 bytes --]

New comment by cultab on void-packages repository

https://github.com/void-linux/void-packages/pull/39733#issuecomment-1269720420

Comment:
It seems we're just missing the m4 definition of CHECK_ATOMIC(), it exists in the sdk so there I think I can figure something out.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated] MEGAcmd: update to 1.5.1
  2022-10-05 10:53 [PR PATCH] MEGAcmd: update to 1.5.1 cultab
  2022-10-06  9:56 ` cultab
@ 2022-10-06 10:51 ` cultab
  2022-10-06 10:58 ` cultab
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: cultab @ 2022-10-06 10:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1462 bytes --]

There is an updated pull request by cultab against master on the void-packages repository

https://github.com/cultab/void-packages megasdk
https://github.com/void-linux/void-packages/pull/39733

MEGAcmd: update to 1.5.1
I am trying to update `MEGAcmd` to `1.5.1` and `MEGAsdk` to `3.9.11d` (as per the version submoduled in MEGAcmd's repo). 
But am I getting a very peculiar issue with the ./configure script.

```
configure: line 22309: syntax error near unexpected token `cat'
configure: line 22309: `cat >confcache <<\_ACEOF'
```

It doesn't really seem like there is a syntax error there.
It runs just fine when manually run outside of the chroot. So I tried the following:

 - using `chroot-bash` outside the chroot to run `./configure` and replicated the issue. 
 - using `bash` outside the chroot to run `./configure` and replicated the issue. 
 - using `zsh` inside the chroot (by redefining `do_configure` to use `zsh`) which bypasses the issue but creates another issue.
 - using `sh`  outside the chroot works as expected.

_I don't think using another shell is a real solution._


I don't really know how to continue so I'm making a **broken draft pull request** to ask for help.
What could bash be doing differently so as to cause this issue?
Maybe I messed something up when porting `autotools.patch` to the new version of `MEGAcmd`?


A patch file from https://github.com/void-linux/void-packages/pull/39733.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-megasdk-39733.patch --]
[-- Type: text/x-diff, Size: 8517 bytes --]

From 60f77ca01646d41dd04dc45fb2d1157a92b115bc Mon Sep 17 00:00:00 2001
From: cultab <rroarck@gmail.com>
Date: Wed, 5 Oct 2022 13:30:24 +0300
Subject: [PATCH 1/2] MEGAsdk: update to v3.9.11d

Added a patch to include a missing header file
that MEGAcmd expects to exist.
---
 common/shlibs                                 |  2 +-
 srcpkgs/MEGAsdk/patches/missing_headers.patch | 11 +++++++++++
 srcpkgs/MEGAsdk/template                      | 11 ++++++++---
 3 files changed, 20 insertions(+), 4 deletions(-)
 create mode 100644 srcpkgs/MEGAsdk/patches/missing_headers.patch

diff --git a/common/shlibs b/common/shlibs
index 5d4b0a9899ad..147f2e056606 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3120,7 +3120,7 @@ libvted-3.so.0 libvted-3.7.0_2
 libpeasd-3.so.0 libpeasd-3.7.0_2
 libgstreamerd-3.so.0 libgstreamerd-3.7.0_2
 libgtkdgl-3.so.0 libgtkdgl-3.7.0_2
-libmega.so.30703 MEGAsdk-3.7.3c_2
+libmega.so.30911 MEGAsdk-3.9.11d_1
 libopenglrecorder.so.0 libopenglrecorder-0.1.0_1
 libgpod.so.4 libgpod-0.8.3_1
 libi2c.so.0 i2c-tools-4.0_1
diff --git a/srcpkgs/MEGAsdk/patches/missing_headers.patch b/srcpkgs/MEGAsdk/patches/missing_headers.patch
new file mode 100644
index 000000000000..0d66e5f76d47
--- /dev/null
+++ b/srcpkgs/MEGAsdk/patches/missing_headers.patch
@@ -0,0 +1,11 @@
+diff --color -Naru --show-c-function a/include/Makefile.am b/include/Makefile.am
+--- a/include/Makefile.am	2022-06-15 15:24:15.000000000 +0300
++++ b/include/Makefile.am	2022-10-05 12:13:09.443571788 +0300
+@@ -56,6 +56,7 @@ nobase_libmegainclude_HEADERS = \
+ 	mega/gfx/freeimage.h \
+ 	mega/gfx/GfxProcCG.h \
+ 	mega/raid.h \
++	mega/heartbeats.h \
+ 	mega/mediafileattribute.h
+ 
+ if BUILD_MEGAAPI
diff --git a/srcpkgs/MEGAsdk/template b/srcpkgs/MEGAsdk/template
index e9cbeb70f5db..90721c701f8b 100644
--- a/srcpkgs/MEGAsdk/template
+++ b/srcpkgs/MEGAsdk/template
@@ -1,7 +1,7 @@
 # Template file for 'MEGAsdk'
 pkgname=MEGAsdk
-version=3.7.3c
-revision=2
+version=3.9.11d
+revision=1
 wrksrc="sdk-${version}"
 build_style=gnu-configure
 configure_args="--enable-chat --disable-examples $(vopt_with libuv)"
@@ -16,7 +16,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="BSD-2-Clause"
 homepage="https://mega.nz"
 distfiles="https://github.com/meganz/sdk/archive/v${version}.tar.gz"
-checksum=0b55c1752d590a0367b9fcddd2465ea574308eb97e065540121f6261807aa111
+checksum=30e82b1ae1e1cc1b0b525dd88546ad12daa331d2e98fd9bbd85f1b936e404582
 replaces="libmega>=0"
 
 build_options="libuv mediainfo"
@@ -26,6 +26,10 @@ case "$XBPS_TARGET_MACHINE" in
 	*) build_options_default="libuv mediainfo";;
 esac
 
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+	makedepends+=" libatomic-devel"
+fi
+
 do_check() {
 	: #requires static gtest libs
 }
@@ -58,5 +62,6 @@ MEGAsdk-devel_package() {
 		vmove usr/include
 		vmove "usr/lib/*.so"
 		vmove usr/lib/pkgconfig
+        vinstall ${wrksrc}/m4/ax_atomic.m4 644 usr/share/aclocal  # expected to be provided from vendored MEGAsdk by MEGAcmd
 	}
 }

From a1164b3d85a6cf93623738467ef27f45847ef79e Mon Sep 17 00:00:00 2001
From: cultab <rroarck@gmail.com>
Date: Wed, 5 Oct 2022 13:33:17 +0300
Subject: [PATCH 2/2] MEGAcmd: update to 1.5.1

---
 srcpkgs/MEGAcmd/patches/autotools.patch | 24 +++++++++++++++---------
 srcpkgs/MEGAcmd/template                |  4 ++--
 srcpkgs/MEGAsdk/template                |  2 +-
 3 files changed, 18 insertions(+), 12 deletions(-)

diff --git a/srcpkgs/MEGAcmd/patches/autotools.patch b/srcpkgs/MEGAcmd/patches/autotools.patch
index 770cc5a89b3b..9524ad3431d6 100644
--- a/srcpkgs/MEGAcmd/patches/autotools.patch
+++ b/srcpkgs/MEGAcmd/patches/autotools.patch
@@ -6,7 +6,7 @@
  bin_PROGRAMS += $(MEGACMD)
 -$(MEGACMD): $(top_builddir)/sdk/src/libmega.la
 +$(MEGACMD):
- noinst_HEADERS += src/comunicationsmanager.h src/configurationmanager.h src/megacmd.h src/megacmdlogger.h src/megacmdsandbox.h src/megacmdutils.h src/megacmdcommonutils.h src/listeners.h src/megacmdexecuter.h src/megacmdversion.h src/megacmdplatform.h src/comunicationsmanagerportsockets.h
+ noinst_HEADERS += src/comunicationsmanager.h src/configurationmanager.h src/megacmd.h src/megacmdlogger.h src/megacmdsandbox.h src/megacmdutils.h src/megacmdcommonutils.h src/listeners.h src/megacmdexecuter.h src/megacmdtransfermanager.h src/megacmdversion.h src/megacmdplatform.h src/comunicationsmanagerportsockets.h
 -megacmdcompletiondir = $(sysconfdir)/bash_completion.d/
 +megacmdcompletiondir = $(datarootdir)/bash-completion/completions
  megacmdcompletion_DATA = src/client/megacmd_completion.sh
@@ -35,7 +35,7 @@
 -mega_cmd_LDADD = $(RL_LDFLAGS) $(RL_LIBS) $(TERMCAP_LDFLAGS) $(TERMCAP_LIBS) 
 +mega_cmd_LDADD = $(RL_LDFLAGS) $(RL_LIBS) $(TERMCAP_LDFLAGS) $(TERMCAP_LIBS) $(MEGA_LIBS)
  
- mega_cmd_server_CXXFLAGS = $(LMEGAINC)
+ mega_cmd_server_CXXFLAGS = $(LMEGAINC) $(DB_CXXFLAGS)
  if USE_PCRE
 @@ -41,9 +42,7 @@ mega_cmd_server_CXXFLAGS += -DUSE_PCRE=1
  endif
@@ -52,8 +52,8 @@
  
  else
  
--mega_cmd_server_LDADD=$(PCRE_LIBS) $(top_builddir)/sdk/src/libmega.la
-+mega_cmd_server_LDADD=$(PCRE_LIBS) $(MEGA_LIBS)
+-mega_cmd_server_LDADD=$(DB_LDFLAGS) $(DB_LIBS) $(PCRE_LIBS) $(top_builddir)/sdk/src/libmega.la
++mega_cmd_server_LDADD=$(DB_LDFLAGS) $(DB_LIBS) $(PCRE_LIBS) $(MEGA_LIBS)
  
  mega_cmd_server_SOURCES += src/comunicationsmanagerfilesockets.cpp
 -noinst_HEADERS += src/comunicationsmanagerfilesockets.h sdk/include/mega/thread/posixthread.h sdk/include/mega/logging.h
@@ -75,23 +75,23 @@
  #EXTRA_DIST += autogen.sh
 --- a/configure.ac
 +++ b/configure.ac
-@@ -18,9 +18,6 @@
+@@ -18,10 +18,6 @@
  #                                               -*- Autoconf -*-
  # Process this file with autoconf to produce a configure script.
  
 -m4_include([sdk/m4/ax_check_compile_flag.m4])
 -m4_include([sdk/m4/ax_check_link_flag.m4])
 -m4_include([sdk/m4/ax_cxx_compile_stdcxx.m4])
+-m4_include([sdk/m4/ax_atomic.m4])
  
  m4_define([megacmd_major_version], [$(cat src/megacmdversion.h | grep "define MEGACMD_MAJOR" | cut -d" " -f 3)])
  m4_define([megacmd_minor_version], [$(cat src/megacmdversion.h | grep "define MEGACMD_MINOR" | cut -d" " -f 3)])
-@@ -37,20 +34,18 @@ m4_define([megacmd_lt_age], [0])
+@@ -38,18 +34,18 @@ m4_define([megacmd_lt_age], [0])
  
  AC_INIT([MEGAcmd], m4_esyscmd([ grep define < src/megacmdversion.h | awk '{print $3}' | awk 'BEGIN { RS = "" ; FS = "\n" } {printf $1"."$2"."$3}']), [https://github.com/meganz/megacmd])
  
--AM_INIT_AUTOMAKE
 +AM_INIT_AUTOMAKE([1.11 foreign silent-rules])
- 
++
  AC_PROG_CC
  AC_CONFIG_FILES(Makefile)
  AC_OUTPUT
@@ -107,7 +107,13 @@
  AC_CONFIG_HEADERS([src/megacmdconfig.h]) #this avoids inline definitions of stuff already defined in sdk's config.h (e.g: -DPACKAGE_NAME)
  
  LT_INIT([shared disable-static win32-dll])
-@@ -449,7 +444,8 @@ AM_CONDITIONAL([HAVE_PTHREAD], [test "${
+@@ -535,13 +531,11 @@ if test "$HAVE_PTHREAD" = "yes"; then
+ fi
+ AM_CONDITIONAL([HAVE_PTHREAD], [test "${HAVE_PTHREAD}" = "yes"])
+ 
+-# Add -latomic to LDFLAGS if needed
+-CHECK_ATOMIC()
+-
  #This will simulate compilation of sdk and extract the includes defined for it. Thus we can
  # take care of the configuration done for the subproject withtout having to recheck here
  AC_OUTPUT
diff --git a/srcpkgs/MEGAcmd/template b/srcpkgs/MEGAcmd/template
index ba2108f3aa25..a17851eb7e00 100644
--- a/srcpkgs/MEGAcmd/template
+++ b/srcpkgs/MEGAcmd/template
@@ -1,6 +1,6 @@
 # Template file for 'MEGAcmd'
 pkgname=MEGAcmd
-version=1.4.0
+version=1.5.1
 revision=1
 wrksrc="${pkgname}-${version}_Linux"
 build_style=gnu-configure
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="BSD-2-Clause, GPL-3.0-or-later"
 homepage="https://github.com/meganz/MEGAcmd"
 distfiles="https://github.com/meganz/MEGAcmd/archive/${version}_Linux.tar.gz"
-checksum=2a3626a9f1d22303fe2123f984a8ecf3779d6d59ac6c67c1bf43c2423dcb832d
+checksum=911197d777c13bf3ff5c38af0b5fce478a3f96f1fecfc9647b38614512f5c1f3
 replaces="megacmd>=0"
 
 if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/MEGAsdk/template b/srcpkgs/MEGAsdk/template
index 90721c701f8b..1674a81cd9de 100644
--- a/srcpkgs/MEGAsdk/template
+++ b/srcpkgs/MEGAsdk/template
@@ -28,6 +28,7 @@ esac
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
+    LDFLAGS+="-latomic"
 fi
 
 do_check() {
@@ -62,6 +63,5 @@ MEGAsdk-devel_package() {
 		vmove usr/include
 		vmove "usr/lib/*.so"
 		vmove usr/lib/pkgconfig
-        vinstall ${wrksrc}/m4/ax_atomic.m4 644 usr/share/aclocal  # expected to be provided from vendored MEGAsdk by MEGAcmd
 	}
 }

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated] MEGAcmd: update to 1.5.1
  2022-10-05 10:53 [PR PATCH] MEGAcmd: update to 1.5.1 cultab
  2022-10-06  9:56 ` cultab
  2022-10-06 10:51 ` [PR PATCH] [Updated] " cultab
@ 2022-10-06 10:58 ` cultab
  2022-10-06 11:00 ` cultab
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: cultab @ 2022-10-06 10:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1462 bytes --]

There is an updated pull request by cultab against master on the void-packages repository

https://github.com/cultab/void-packages megasdk
https://github.com/void-linux/void-packages/pull/39733

MEGAcmd: update to 1.5.1
I am trying to update `MEGAcmd` to `1.5.1` and `MEGAsdk` to `3.9.11d` (as per the version submoduled in MEGAcmd's repo). 
But am I getting a very peculiar issue with the ./configure script.

```
configure: line 22309: syntax error near unexpected token `cat'
configure: line 22309: `cat >confcache <<\_ACEOF'
```

It doesn't really seem like there is a syntax error there.
It runs just fine when manually run outside of the chroot. So I tried the following:

 - using `chroot-bash` outside the chroot to run `./configure` and replicated the issue. 
 - using `bash` outside the chroot to run `./configure` and replicated the issue. 
 - using `zsh` inside the chroot (by redefining `do_configure` to use `zsh`) which bypasses the issue but creates another issue.
 - using `sh`  outside the chroot works as expected.

_I don't think using another shell is a real solution._


I don't really know how to continue so I'm making a **broken draft pull request** to ask for help.
What could bash be doing differently so as to cause this issue?
Maybe I messed something up when porting `autotools.patch` to the new version of `MEGAcmd`?


A patch file from https://github.com/void-linux/void-packages/pull/39733.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-megasdk-39733.patch --]
[-- Type: text/x-diff, Size: 8017 bytes --]

From 09e29d4e653658379d3a85dca55bca7b7ac123a1 Mon Sep 17 00:00:00 2001
From: cultab <rroarck@gmail.com>
Date: Wed, 5 Oct 2022 13:30:24 +0300
Subject: [PATCH 1/2] MEGAsdk: update to v3.9.11d

Added a patch to include a missing header file
that MEGAcmd expects to exist.
---
 common/shlibs                                 |  2 +-
 srcpkgs/MEGAsdk/patches/missing_headers.patch | 11 +++++++++++
 srcpkgs/MEGAsdk/template                      | 10 +++++++---
 3 files changed, 19 insertions(+), 4 deletions(-)
 create mode 100644 srcpkgs/MEGAsdk/patches/missing_headers.patch

diff --git a/common/shlibs b/common/shlibs
index 5d4b0a9899ad..147f2e056606 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3120,7 +3120,7 @@ libvted-3.so.0 libvted-3.7.0_2
 libpeasd-3.so.0 libpeasd-3.7.0_2
 libgstreamerd-3.so.0 libgstreamerd-3.7.0_2
 libgtkdgl-3.so.0 libgtkdgl-3.7.0_2
-libmega.so.30703 MEGAsdk-3.7.3c_2
+libmega.so.30911 MEGAsdk-3.9.11d_1
 libopenglrecorder.so.0 libopenglrecorder-0.1.0_1
 libgpod.so.4 libgpod-0.8.3_1
 libi2c.so.0 i2c-tools-4.0_1
diff --git a/srcpkgs/MEGAsdk/patches/missing_headers.patch b/srcpkgs/MEGAsdk/patches/missing_headers.patch
new file mode 100644
index 000000000000..0d66e5f76d47
--- /dev/null
+++ b/srcpkgs/MEGAsdk/patches/missing_headers.patch
@@ -0,0 +1,11 @@
+diff --color -Naru --show-c-function a/include/Makefile.am b/include/Makefile.am
+--- a/include/Makefile.am	2022-06-15 15:24:15.000000000 +0300
++++ b/include/Makefile.am	2022-10-05 12:13:09.443571788 +0300
+@@ -56,6 +56,7 @@ nobase_libmegainclude_HEADERS = \
+ 	mega/gfx/freeimage.h \
+ 	mega/gfx/GfxProcCG.h \
+ 	mega/raid.h \
++	mega/heartbeats.h \
+ 	mega/mediafileattribute.h
+ 
+ if BUILD_MEGAAPI
diff --git a/srcpkgs/MEGAsdk/template b/srcpkgs/MEGAsdk/template
index e9cbeb70f5db..759534a6505c 100644
--- a/srcpkgs/MEGAsdk/template
+++ b/srcpkgs/MEGAsdk/template
@@ -1,7 +1,7 @@
 # Template file for 'MEGAsdk'
 pkgname=MEGAsdk
-version=3.7.3c
-revision=2
+version=3.9.11d
+revision=1
 wrksrc="sdk-${version}"
 build_style=gnu-configure
 configure_args="--enable-chat --disable-examples $(vopt_with libuv)"
@@ -16,7 +16,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="BSD-2-Clause"
 homepage="https://mega.nz"
 distfiles="https://github.com/meganz/sdk/archive/v${version}.tar.gz"
-checksum=0b55c1752d590a0367b9fcddd2465ea574308eb97e065540121f6261807aa111
+checksum=30e82b1ae1e1cc1b0b525dd88546ad12daa331d2e98fd9bbd85f1b936e404582
 replaces="libmega>=0"
 
 build_options="libuv mediainfo"
@@ -26,6 +26,10 @@ case "$XBPS_TARGET_MACHINE" in
 	*) build_options_default="libuv mediainfo";;
 esac
 
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+	makedepends+=" libatomic-devel"
+fi
+
 do_check() {
 	: #requires static gtest libs
 }

From f3d6d132f54036a3a4cb6225b14d0c640c785588 Mon Sep 17 00:00:00 2001
From: cultab <rroarck@gmail.com>
Date: Wed, 5 Oct 2022 13:33:17 +0300
Subject: [PATCH 2/2] MEGAcmd: update to 1.5.1

---
 srcpkgs/MEGAcmd/patches/autotools.patch | 24 +++++++++++++++---------
 srcpkgs/MEGAcmd/template                |  4 ++--
 srcpkgs/MEGAsdk/template                |  1 +
 3 files changed, 18 insertions(+), 11 deletions(-)

diff --git a/srcpkgs/MEGAcmd/patches/autotools.patch b/srcpkgs/MEGAcmd/patches/autotools.patch
index 770cc5a89b3b..9524ad3431d6 100644
--- a/srcpkgs/MEGAcmd/patches/autotools.patch
+++ b/srcpkgs/MEGAcmd/patches/autotools.patch
@@ -6,7 +6,7 @@
  bin_PROGRAMS += $(MEGACMD)
 -$(MEGACMD): $(top_builddir)/sdk/src/libmega.la
 +$(MEGACMD):
- noinst_HEADERS += src/comunicationsmanager.h src/configurationmanager.h src/megacmd.h src/megacmdlogger.h src/megacmdsandbox.h src/megacmdutils.h src/megacmdcommonutils.h src/listeners.h src/megacmdexecuter.h src/megacmdversion.h src/megacmdplatform.h src/comunicationsmanagerportsockets.h
+ noinst_HEADERS += src/comunicationsmanager.h src/configurationmanager.h src/megacmd.h src/megacmdlogger.h src/megacmdsandbox.h src/megacmdutils.h src/megacmdcommonutils.h src/listeners.h src/megacmdexecuter.h src/megacmdtransfermanager.h src/megacmdversion.h src/megacmdplatform.h src/comunicationsmanagerportsockets.h
 -megacmdcompletiondir = $(sysconfdir)/bash_completion.d/
 +megacmdcompletiondir = $(datarootdir)/bash-completion/completions
  megacmdcompletion_DATA = src/client/megacmd_completion.sh
@@ -35,7 +35,7 @@
 -mega_cmd_LDADD = $(RL_LDFLAGS) $(RL_LIBS) $(TERMCAP_LDFLAGS) $(TERMCAP_LIBS) 
 +mega_cmd_LDADD = $(RL_LDFLAGS) $(RL_LIBS) $(TERMCAP_LDFLAGS) $(TERMCAP_LIBS) $(MEGA_LIBS)
  
- mega_cmd_server_CXXFLAGS = $(LMEGAINC)
+ mega_cmd_server_CXXFLAGS = $(LMEGAINC) $(DB_CXXFLAGS)
  if USE_PCRE
 @@ -41,9 +42,7 @@ mega_cmd_server_CXXFLAGS += -DUSE_PCRE=1
  endif
@@ -52,8 +52,8 @@
  
  else
  
--mega_cmd_server_LDADD=$(PCRE_LIBS) $(top_builddir)/sdk/src/libmega.la
-+mega_cmd_server_LDADD=$(PCRE_LIBS) $(MEGA_LIBS)
+-mega_cmd_server_LDADD=$(DB_LDFLAGS) $(DB_LIBS) $(PCRE_LIBS) $(top_builddir)/sdk/src/libmega.la
++mega_cmd_server_LDADD=$(DB_LDFLAGS) $(DB_LIBS) $(PCRE_LIBS) $(MEGA_LIBS)
  
  mega_cmd_server_SOURCES += src/comunicationsmanagerfilesockets.cpp
 -noinst_HEADERS += src/comunicationsmanagerfilesockets.h sdk/include/mega/thread/posixthread.h sdk/include/mega/logging.h
@@ -75,23 +75,23 @@
  #EXTRA_DIST += autogen.sh
 --- a/configure.ac
 +++ b/configure.ac
-@@ -18,9 +18,6 @@
+@@ -18,10 +18,6 @@
  #                                               -*- Autoconf -*-
  # Process this file with autoconf to produce a configure script.
  
 -m4_include([sdk/m4/ax_check_compile_flag.m4])
 -m4_include([sdk/m4/ax_check_link_flag.m4])
 -m4_include([sdk/m4/ax_cxx_compile_stdcxx.m4])
+-m4_include([sdk/m4/ax_atomic.m4])
  
  m4_define([megacmd_major_version], [$(cat src/megacmdversion.h | grep "define MEGACMD_MAJOR" | cut -d" " -f 3)])
  m4_define([megacmd_minor_version], [$(cat src/megacmdversion.h | grep "define MEGACMD_MINOR" | cut -d" " -f 3)])
-@@ -37,20 +34,18 @@ m4_define([megacmd_lt_age], [0])
+@@ -38,18 +34,18 @@ m4_define([megacmd_lt_age], [0])
  
  AC_INIT([MEGAcmd], m4_esyscmd([ grep define < src/megacmdversion.h | awk '{print $3}' | awk 'BEGIN { RS = "" ; FS = "\n" } {printf $1"."$2"."$3}']), [https://github.com/meganz/megacmd])
  
--AM_INIT_AUTOMAKE
 +AM_INIT_AUTOMAKE([1.11 foreign silent-rules])
- 
++
  AC_PROG_CC
  AC_CONFIG_FILES(Makefile)
  AC_OUTPUT
@@ -107,7 +107,13 @@
  AC_CONFIG_HEADERS([src/megacmdconfig.h]) #this avoids inline definitions of stuff already defined in sdk's config.h (e.g: -DPACKAGE_NAME)
  
  LT_INIT([shared disable-static win32-dll])
-@@ -449,7 +444,8 @@ AM_CONDITIONAL([HAVE_PTHREAD], [test "${
+@@ -535,13 +531,11 @@ if test "$HAVE_PTHREAD" = "yes"; then
+ fi
+ AM_CONDITIONAL([HAVE_PTHREAD], [test "${HAVE_PTHREAD}" = "yes"])
+ 
+-# Add -latomic to LDFLAGS if needed
+-CHECK_ATOMIC()
+-
  #This will simulate compilation of sdk and extract the includes defined for it. Thus we can
  # take care of the configuration done for the subproject withtout having to recheck here
  AC_OUTPUT
diff --git a/srcpkgs/MEGAcmd/template b/srcpkgs/MEGAcmd/template
index ba2108f3aa25..a17851eb7e00 100644
--- a/srcpkgs/MEGAcmd/template
+++ b/srcpkgs/MEGAcmd/template
@@ -1,6 +1,6 @@
 # Template file for 'MEGAcmd'
 pkgname=MEGAcmd
-version=1.4.0
+version=1.5.1
 revision=1
 wrksrc="${pkgname}-${version}_Linux"
 build_style=gnu-configure
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="BSD-2-Clause, GPL-3.0-or-later"
 homepage="https://github.com/meganz/MEGAcmd"
 distfiles="https://github.com/meganz/MEGAcmd/archive/${version}_Linux.tar.gz"
-checksum=2a3626a9f1d22303fe2123f984a8ecf3779d6d59ac6c67c1bf43c2423dcb832d
+checksum=911197d777c13bf3ff5c38af0b5fce478a3f96f1fecfc9647b38614512f5c1f3
 replaces="megacmd>=0"
 
 if [ "$CROSS_BUILD" ]; then
diff --git a/srcpkgs/MEGAsdk/template b/srcpkgs/MEGAsdk/template
index 759534a6505c..1674a81cd9de 100644
--- a/srcpkgs/MEGAsdk/template
+++ b/srcpkgs/MEGAsdk/template
@@ -28,6 +28,7 @@ esac
 
 if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
 	makedepends+=" libatomic-devel"
+    LDFLAGS+="-latomic"
 fi
 
 do_check() {

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: MEGAcmd: update to 1.5.1
  2022-10-05 10:53 [PR PATCH] MEGAcmd: update to 1.5.1 cultab
                   ` (2 preceding siblings ...)
  2022-10-06 10:58 ` cultab
@ 2022-10-06 11:00 ` cultab
  2022-10-06 11:05 ` [PR PATCH] [Updated] " cultab
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: cultab @ 2022-10-06 11:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 255 bytes --]

New comment by cultab on void-packages repository

https://github.com/void-linux/void-packages/pull/39733#issuecomment-1269813761

Comment:
Alright, I was going about it the wrong way haha, I just used $XBPS_TARGET_NO_ATOMIC8 as someone suggested on irc.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated] MEGAcmd: update to 1.5.1
  2022-10-05 10:53 [PR PATCH] MEGAcmd: update to 1.5.1 cultab
                   ` (3 preceding siblings ...)
  2022-10-06 11:00 ` cultab
@ 2022-10-06 11:05 ` cultab
  2022-10-06 12:25 ` cultab
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: cultab @ 2022-10-06 11:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1462 bytes --]

There is an updated pull request by cultab against master on the void-packages repository

https://github.com/cultab/void-packages megasdk
https://github.com/void-linux/void-packages/pull/39733

MEGAcmd: update to 1.5.1
I am trying to update `MEGAcmd` to `1.5.1` and `MEGAsdk` to `3.9.11d` (as per the version submoduled in MEGAcmd's repo). 
But am I getting a very peculiar issue with the ./configure script.

```
configure: line 22309: syntax error near unexpected token `cat'
configure: line 22309: `cat >confcache <<\_ACEOF'
```

It doesn't really seem like there is a syntax error there.
It runs just fine when manually run outside of the chroot. So I tried the following:

 - using `chroot-bash` outside the chroot to run `./configure` and replicated the issue. 
 - using `bash` outside the chroot to run `./configure` and replicated the issue. 
 - using `zsh` inside the chroot (by redefining `do_configure` to use `zsh`) which bypasses the issue but creates another issue.
 - using `sh`  outside the chroot works as expected.

_I don't think using another shell is a real solution._


I don't really know how to continue so I'm making a **broken draft pull request** to ask for help.
What could bash be doing differently so as to cause this issue?
Maybe I messed something up when porting `autotools.patch` to the new version of `MEGAcmd`?


A patch file from https://github.com/void-linux/void-packages/pull/39733.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-megasdk-39733.patch --]
[-- Type: text/x-diff, Size: 7681 bytes --]

From a936869371683b3929dcaa7573dc10192c24b72b Mon Sep 17 00:00:00 2001
From: cultab <rroarck@gmail.com>
Date: Wed, 5 Oct 2022 13:30:24 +0300
Subject: [PATCH 1/2] MEGAsdk: update to v3.9.11d

Added a patch to include a missing header file
that MEGAcmd expects to exist.
---
 common/shlibs                                 |  2 +-
 srcpkgs/MEGAsdk/patches/missing_headers.patch | 11 +++++++++++
 srcpkgs/MEGAsdk/template                      | 11 ++++++++---
 3 files changed, 20 insertions(+), 4 deletions(-)
 create mode 100644 srcpkgs/MEGAsdk/patches/missing_headers.patch

diff --git a/common/shlibs b/common/shlibs
index 5d4b0a9899ad..147f2e056606 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3120,7 +3120,7 @@ libvted-3.so.0 libvted-3.7.0_2
 libpeasd-3.so.0 libpeasd-3.7.0_2
 libgstreamerd-3.so.0 libgstreamerd-3.7.0_2
 libgtkdgl-3.so.0 libgtkdgl-3.7.0_2
-libmega.so.30703 MEGAsdk-3.7.3c_2
+libmega.so.30911 MEGAsdk-3.9.11d_1
 libopenglrecorder.so.0 libopenglrecorder-0.1.0_1
 libgpod.so.4 libgpod-0.8.3_1
 libi2c.so.0 i2c-tools-4.0_1
diff --git a/srcpkgs/MEGAsdk/patches/missing_headers.patch b/srcpkgs/MEGAsdk/patches/missing_headers.patch
new file mode 100644
index 000000000000..0d66e5f76d47
--- /dev/null
+++ b/srcpkgs/MEGAsdk/patches/missing_headers.patch
@@ -0,0 +1,11 @@
+diff --color -Naru --show-c-function a/include/Makefile.am b/include/Makefile.am
+--- a/include/Makefile.am	2022-06-15 15:24:15.000000000 +0300
++++ b/include/Makefile.am	2022-10-05 12:13:09.443571788 +0300
+@@ -56,6 +56,7 @@ nobase_libmegainclude_HEADERS = \
+ 	mega/gfx/freeimage.h \
+ 	mega/gfx/GfxProcCG.h \
+ 	mega/raid.h \
++	mega/heartbeats.h \
+ 	mega/mediafileattribute.h
+ 
+ if BUILD_MEGAAPI
diff --git a/srcpkgs/MEGAsdk/template b/srcpkgs/MEGAsdk/template
index e9cbeb70f5db..ef5201531f4a 100644
--- a/srcpkgs/MEGAsdk/template
+++ b/srcpkgs/MEGAsdk/template
@@ -1,7 +1,7 @@
 # Template file for 'MEGAsdk'
 pkgname=MEGAsdk
-version=3.7.3c
-revision=2
+version=3.9.11d
+revision=1
 wrksrc="sdk-${version}"
 build_style=gnu-configure
 configure_args="--enable-chat --disable-examples $(vopt_with libuv)"
@@ -16,7 +16,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="BSD-2-Clause"
 homepage="https://mega.nz"
 distfiles="https://github.com/meganz/sdk/archive/v${version}.tar.gz"
-checksum=0b55c1752d590a0367b9fcddd2465ea574308eb97e065540121f6261807aa111
+checksum=30e82b1ae1e1cc1b0b525dd88546ad12daa331d2e98fd9bbd85f1b936e404582
 replaces="libmega>=0"
 
 build_options="libuv mediainfo"
@@ -26,6 +26,11 @@ case "$XBPS_TARGET_MACHINE" in
 	*) build_options_default="libuv mediainfo";;
 esac
 
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+	makedepends+=" libatomic-devel"
+	LDFLAGS+="-latomic"
+fi
+
 do_check() {
 	: #requires static gtest libs
 }

From f9c8a36d5dd850511330b8165dbf378aabfcbedc Mon Sep 17 00:00:00 2001
From: cultab <rroarck@gmail.com>
Date: Wed, 5 Oct 2022 13:33:17 +0300
Subject: [PATCH 2/2] MEGAcmd: update to 1.5.1

---
 srcpkgs/MEGAcmd/patches/autotools.patch | 24 +++++++++++++++---------
 srcpkgs/MEGAcmd/template                |  4 ++--
 2 files changed, 17 insertions(+), 11 deletions(-)

diff --git a/srcpkgs/MEGAcmd/patches/autotools.patch b/srcpkgs/MEGAcmd/patches/autotools.patch
index 770cc5a89b3b..9524ad3431d6 100644
--- a/srcpkgs/MEGAcmd/patches/autotools.patch
+++ b/srcpkgs/MEGAcmd/patches/autotools.patch
@@ -6,7 +6,7 @@
  bin_PROGRAMS += $(MEGACMD)
 -$(MEGACMD): $(top_builddir)/sdk/src/libmega.la
 +$(MEGACMD):
- noinst_HEADERS += src/comunicationsmanager.h src/configurationmanager.h src/megacmd.h src/megacmdlogger.h src/megacmdsandbox.h src/megacmdutils.h src/megacmdcommonutils.h src/listeners.h src/megacmdexecuter.h src/megacmdversion.h src/megacmdplatform.h src/comunicationsmanagerportsockets.h
+ noinst_HEADERS += src/comunicationsmanager.h src/configurationmanager.h src/megacmd.h src/megacmdlogger.h src/megacmdsandbox.h src/megacmdutils.h src/megacmdcommonutils.h src/listeners.h src/megacmdexecuter.h src/megacmdtransfermanager.h src/megacmdversion.h src/megacmdplatform.h src/comunicationsmanagerportsockets.h
 -megacmdcompletiondir = $(sysconfdir)/bash_completion.d/
 +megacmdcompletiondir = $(datarootdir)/bash-completion/completions
  megacmdcompletion_DATA = src/client/megacmd_completion.sh
@@ -35,7 +35,7 @@
 -mega_cmd_LDADD = $(RL_LDFLAGS) $(RL_LIBS) $(TERMCAP_LDFLAGS) $(TERMCAP_LIBS) 
 +mega_cmd_LDADD = $(RL_LDFLAGS) $(RL_LIBS) $(TERMCAP_LDFLAGS) $(TERMCAP_LIBS) $(MEGA_LIBS)
  
- mega_cmd_server_CXXFLAGS = $(LMEGAINC)
+ mega_cmd_server_CXXFLAGS = $(LMEGAINC) $(DB_CXXFLAGS)
  if USE_PCRE
 @@ -41,9 +42,7 @@ mega_cmd_server_CXXFLAGS += -DUSE_PCRE=1
  endif
@@ -52,8 +52,8 @@
  
  else
  
--mega_cmd_server_LDADD=$(PCRE_LIBS) $(top_builddir)/sdk/src/libmega.la
-+mega_cmd_server_LDADD=$(PCRE_LIBS) $(MEGA_LIBS)
+-mega_cmd_server_LDADD=$(DB_LDFLAGS) $(DB_LIBS) $(PCRE_LIBS) $(top_builddir)/sdk/src/libmega.la
++mega_cmd_server_LDADD=$(DB_LDFLAGS) $(DB_LIBS) $(PCRE_LIBS) $(MEGA_LIBS)
  
  mega_cmd_server_SOURCES += src/comunicationsmanagerfilesockets.cpp
 -noinst_HEADERS += src/comunicationsmanagerfilesockets.h sdk/include/mega/thread/posixthread.h sdk/include/mega/logging.h
@@ -75,23 +75,23 @@
  #EXTRA_DIST += autogen.sh
 --- a/configure.ac
 +++ b/configure.ac
-@@ -18,9 +18,6 @@
+@@ -18,10 +18,6 @@
  #                                               -*- Autoconf -*-
  # Process this file with autoconf to produce a configure script.
  
 -m4_include([sdk/m4/ax_check_compile_flag.m4])
 -m4_include([sdk/m4/ax_check_link_flag.m4])
 -m4_include([sdk/m4/ax_cxx_compile_stdcxx.m4])
+-m4_include([sdk/m4/ax_atomic.m4])
  
  m4_define([megacmd_major_version], [$(cat src/megacmdversion.h | grep "define MEGACMD_MAJOR" | cut -d" " -f 3)])
  m4_define([megacmd_minor_version], [$(cat src/megacmdversion.h | grep "define MEGACMD_MINOR" | cut -d" " -f 3)])
-@@ -37,20 +34,18 @@ m4_define([megacmd_lt_age], [0])
+@@ -38,18 +34,18 @@ m4_define([megacmd_lt_age], [0])
  
  AC_INIT([MEGAcmd], m4_esyscmd([ grep define < src/megacmdversion.h | awk '{print $3}' | awk 'BEGIN { RS = "" ; FS = "\n" } {printf $1"."$2"."$3}']), [https://github.com/meganz/megacmd])
  
--AM_INIT_AUTOMAKE
 +AM_INIT_AUTOMAKE([1.11 foreign silent-rules])
- 
++
  AC_PROG_CC
  AC_CONFIG_FILES(Makefile)
  AC_OUTPUT
@@ -107,7 +107,13 @@
  AC_CONFIG_HEADERS([src/megacmdconfig.h]) #this avoids inline definitions of stuff already defined in sdk's config.h (e.g: -DPACKAGE_NAME)
  
  LT_INIT([shared disable-static win32-dll])
-@@ -449,7 +444,8 @@ AM_CONDITIONAL([HAVE_PTHREAD], [test "${
+@@ -535,13 +531,11 @@ if test "$HAVE_PTHREAD" = "yes"; then
+ fi
+ AM_CONDITIONAL([HAVE_PTHREAD], [test "${HAVE_PTHREAD}" = "yes"])
+ 
+-# Add -latomic to LDFLAGS if needed
+-CHECK_ATOMIC()
+-
  #This will simulate compilation of sdk and extract the includes defined for it. Thus we can
  # take care of the configuration done for the subproject withtout having to recheck here
  AC_OUTPUT
diff --git a/srcpkgs/MEGAcmd/template b/srcpkgs/MEGAcmd/template
index ba2108f3aa25..a17851eb7e00 100644
--- a/srcpkgs/MEGAcmd/template
+++ b/srcpkgs/MEGAcmd/template
@@ -1,6 +1,6 @@
 # Template file for 'MEGAcmd'
 pkgname=MEGAcmd
-version=1.4.0
+version=1.5.1
 revision=1
 wrksrc="${pkgname}-${version}_Linux"
 build_style=gnu-configure
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="BSD-2-Clause, GPL-3.0-or-later"
 homepage="https://github.com/meganz/MEGAcmd"
 distfiles="https://github.com/meganz/MEGAcmd/archive/${version}_Linux.tar.gz"
-checksum=2a3626a9f1d22303fe2123f984a8ecf3779d6d59ac6c67c1bf43c2423dcb832d
+checksum=911197d777c13bf3ff5c38af0b5fce478a3f96f1fecfc9647b38614512f5c1f3
 replaces="megacmd>=0"
 
 if [ "$CROSS_BUILD" ]; then

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated] MEGAcmd: update to 1.5.1
  2022-10-05 10:53 [PR PATCH] MEGAcmd: update to 1.5.1 cultab
                   ` (4 preceding siblings ...)
  2022-10-06 11:05 ` [PR PATCH] [Updated] " cultab
@ 2022-10-06 12:25 ` cultab
  2022-10-06 12:35 ` cultab
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: cultab @ 2022-10-06 12:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1731 bytes --]

There is an updated pull request by cultab against master on the void-packages repository

https://github.com/cultab/void-packages megasdk
https://github.com/void-linux/void-packages/pull/39733

MEGAcmd: update to 1.5.1
#### Testing the changes
- I tested the changes in this PR: **briefly**: by running `mega-cmd`, logging in and downloading a file using the `get` command.

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)



<!-- I am trying to update `MEGAcmd` to `1.5.1` and `MEGAsdk` to `3.9.11d` (as per the version submoduled in MEGAcmd's repo). 
But am I getting a very peculiar issue with the ./configure script.

```
configure: line 22309: syntax error near unexpected token `cat'
configure: line 22309: `cat >confcache <<\_ACEOF'
```

It doesn't really seem like there is a syntax error there.
It runs just fine when manually run outside of the chroot. So I tried the following:

 - using `chroot-bash` outside the chroot to run `./configure` and replicated the issue. 
 - using `bash` outside the chroot to run `./configure` and replicated the issue. 
 - using `zsh` inside the chroot (by redefining `do_configure` to use `zsh`) which bypasses the issue but creates another issue.
 - using `sh`  outside the chroot works as expected.

_I don't think using another shell is a real solution._


I don't really know how to continue so I'm making a **broken draft pull request** to ask for help.
What could bash be doing differently so as to cause this issue?
Maybe I messed something up when porting `autotools.patch` to the new version of `MEGAcmd`?-->


A patch file from https://github.com/void-linux/void-packages/pull/39733.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-megasdk-39733.patch --]
[-- Type: text/x-diff, Size: 7782 bytes --]

From ea47d79bf1fc68d652491282a15176877bee597d Mon Sep 17 00:00:00 2001
From: cultab <rroarck@gmail.com>
Date: Wed, 5 Oct 2022 13:30:24 +0300
Subject: [PATCH 1/2] MEGAsdk: update to v3.9.11d

Added a patch to include a missing header file
that MEGAcmd expects to exist.
---
 common/shlibs                                 |  2 +-
 srcpkgs/MEGAsdk/patches/missing_headers.patch | 11 +++++++++++
 srcpkgs/MEGAsdk/template                      | 15 ++++++++++++---
 3 files changed, 24 insertions(+), 4 deletions(-)
 create mode 100644 srcpkgs/MEGAsdk/patches/missing_headers.patch

diff --git a/common/shlibs b/common/shlibs
index 5d4b0a9899ad..147f2e056606 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3120,7 +3120,7 @@ libvted-3.so.0 libvted-3.7.0_2
 libpeasd-3.so.0 libpeasd-3.7.0_2
 libgstreamerd-3.so.0 libgstreamerd-3.7.0_2
 libgtkdgl-3.so.0 libgtkdgl-3.7.0_2
-libmega.so.30703 MEGAsdk-3.7.3c_2
+libmega.so.30911 MEGAsdk-3.9.11d_1
 libopenglrecorder.so.0 libopenglrecorder-0.1.0_1
 libgpod.so.4 libgpod-0.8.3_1
 libi2c.so.0 i2c-tools-4.0_1
diff --git a/srcpkgs/MEGAsdk/patches/missing_headers.patch b/srcpkgs/MEGAsdk/patches/missing_headers.patch
new file mode 100644
index 000000000000..0d66e5f76d47
--- /dev/null
+++ b/srcpkgs/MEGAsdk/patches/missing_headers.patch
@@ -0,0 +1,11 @@
+diff --color -Naru --show-c-function a/include/Makefile.am b/include/Makefile.am
+--- a/include/Makefile.am	2022-06-15 15:24:15.000000000 +0300
++++ b/include/Makefile.am	2022-10-05 12:13:09.443571788 +0300
+@@ -56,6 +56,7 @@ nobase_libmegainclude_HEADERS = \
+ 	mega/gfx/freeimage.h \
+ 	mega/gfx/GfxProcCG.h \
+ 	mega/raid.h \
++	mega/heartbeats.h \
+ 	mega/mediafileattribute.h
+ 
+ if BUILD_MEGAAPI
diff --git a/srcpkgs/MEGAsdk/template b/srcpkgs/MEGAsdk/template
index e9cbeb70f5db..057a1c14d95a 100644
--- a/srcpkgs/MEGAsdk/template
+++ b/srcpkgs/MEGAsdk/template
@@ -1,7 +1,7 @@
 # Template file for 'MEGAsdk'
 pkgname=MEGAsdk
-version=3.7.3c
-revision=2
+version=3.9.11d
+revision=1
 wrksrc="sdk-${version}"
 build_style=gnu-configure
 configure_args="--enable-chat --disable-examples $(vopt_with libuv)"
@@ -16,7 +16,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="BSD-2-Clause"
 homepage="https://mega.nz"
 distfiles="https://github.com/meganz/sdk/archive/v${version}.tar.gz"
-checksum=0b55c1752d590a0367b9fcddd2465ea574308eb97e065540121f6261807aa111
+checksum=30e82b1ae1e1cc1b0b525dd88546ad12daa331d2e98fd9bbd85f1b936e404582
 replaces="libmega>=0"
 
 build_options="libuv mediainfo"
@@ -26,6 +26,15 @@ case "$XBPS_TARGET_MACHINE" in
 	*) build_options_default="libuv mediainfo";;
 esac
 
+if [ "$CROSS_BUILD" ]; then
+	configure_args="--with-libtool-sysroot=${XBPS_CROSS_BASE}"
+fi
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+	makedepends+=" libatomic-devel"
+	LDFLAGS+=" -latomic"
+fi
+
 do_check() {
 	: #requires static gtest libs
 }

From 11eefb52425186b8b6e90b88281d6d491d60a705 Mon Sep 17 00:00:00 2001
From: cultab <rroarck@gmail.com>
Date: Wed, 5 Oct 2022 13:33:17 +0300
Subject: [PATCH 2/2] MEGAcmd: update to 1.5.1

---
 srcpkgs/MEGAcmd/patches/autotools.patch | 24 +++++++++++++++---------
 srcpkgs/MEGAcmd/template                |  4 ++--
 2 files changed, 17 insertions(+), 11 deletions(-)

diff --git a/srcpkgs/MEGAcmd/patches/autotools.patch b/srcpkgs/MEGAcmd/patches/autotools.patch
index 770cc5a89b3b..9524ad3431d6 100644
--- a/srcpkgs/MEGAcmd/patches/autotools.patch
+++ b/srcpkgs/MEGAcmd/patches/autotools.patch
@@ -6,7 +6,7 @@
  bin_PROGRAMS += $(MEGACMD)
 -$(MEGACMD): $(top_builddir)/sdk/src/libmega.la
 +$(MEGACMD):
- noinst_HEADERS += src/comunicationsmanager.h src/configurationmanager.h src/megacmd.h src/megacmdlogger.h src/megacmdsandbox.h src/megacmdutils.h src/megacmdcommonutils.h src/listeners.h src/megacmdexecuter.h src/megacmdversion.h src/megacmdplatform.h src/comunicationsmanagerportsockets.h
+ noinst_HEADERS += src/comunicationsmanager.h src/configurationmanager.h src/megacmd.h src/megacmdlogger.h src/megacmdsandbox.h src/megacmdutils.h src/megacmdcommonutils.h src/listeners.h src/megacmdexecuter.h src/megacmdtransfermanager.h src/megacmdversion.h src/megacmdplatform.h src/comunicationsmanagerportsockets.h
 -megacmdcompletiondir = $(sysconfdir)/bash_completion.d/
 +megacmdcompletiondir = $(datarootdir)/bash-completion/completions
  megacmdcompletion_DATA = src/client/megacmd_completion.sh
@@ -35,7 +35,7 @@
 -mega_cmd_LDADD = $(RL_LDFLAGS) $(RL_LIBS) $(TERMCAP_LDFLAGS) $(TERMCAP_LIBS) 
 +mega_cmd_LDADD = $(RL_LDFLAGS) $(RL_LIBS) $(TERMCAP_LDFLAGS) $(TERMCAP_LIBS) $(MEGA_LIBS)
  
- mega_cmd_server_CXXFLAGS = $(LMEGAINC)
+ mega_cmd_server_CXXFLAGS = $(LMEGAINC) $(DB_CXXFLAGS)
  if USE_PCRE
 @@ -41,9 +42,7 @@ mega_cmd_server_CXXFLAGS += -DUSE_PCRE=1
  endif
@@ -52,8 +52,8 @@
  
  else
  
--mega_cmd_server_LDADD=$(PCRE_LIBS) $(top_builddir)/sdk/src/libmega.la
-+mega_cmd_server_LDADD=$(PCRE_LIBS) $(MEGA_LIBS)
+-mega_cmd_server_LDADD=$(DB_LDFLAGS) $(DB_LIBS) $(PCRE_LIBS) $(top_builddir)/sdk/src/libmega.la
++mega_cmd_server_LDADD=$(DB_LDFLAGS) $(DB_LIBS) $(PCRE_LIBS) $(MEGA_LIBS)
  
  mega_cmd_server_SOURCES += src/comunicationsmanagerfilesockets.cpp
 -noinst_HEADERS += src/comunicationsmanagerfilesockets.h sdk/include/mega/thread/posixthread.h sdk/include/mega/logging.h
@@ -75,23 +75,23 @@
  #EXTRA_DIST += autogen.sh
 --- a/configure.ac
 +++ b/configure.ac
-@@ -18,9 +18,6 @@
+@@ -18,10 +18,6 @@
  #                                               -*- Autoconf -*-
  # Process this file with autoconf to produce a configure script.
  
 -m4_include([sdk/m4/ax_check_compile_flag.m4])
 -m4_include([sdk/m4/ax_check_link_flag.m4])
 -m4_include([sdk/m4/ax_cxx_compile_stdcxx.m4])
+-m4_include([sdk/m4/ax_atomic.m4])
  
  m4_define([megacmd_major_version], [$(cat src/megacmdversion.h | grep "define MEGACMD_MAJOR" | cut -d" " -f 3)])
  m4_define([megacmd_minor_version], [$(cat src/megacmdversion.h | grep "define MEGACMD_MINOR" | cut -d" " -f 3)])
-@@ -37,20 +34,18 @@ m4_define([megacmd_lt_age], [0])
+@@ -38,18 +34,18 @@ m4_define([megacmd_lt_age], [0])
  
  AC_INIT([MEGAcmd], m4_esyscmd([ grep define < src/megacmdversion.h | awk '{print $3}' | awk 'BEGIN { RS = "" ; FS = "\n" } {printf $1"."$2"."$3}']), [https://github.com/meganz/megacmd])
  
--AM_INIT_AUTOMAKE
 +AM_INIT_AUTOMAKE([1.11 foreign silent-rules])
- 
++
  AC_PROG_CC
  AC_CONFIG_FILES(Makefile)
  AC_OUTPUT
@@ -107,7 +107,13 @@
  AC_CONFIG_HEADERS([src/megacmdconfig.h]) #this avoids inline definitions of stuff already defined in sdk's config.h (e.g: -DPACKAGE_NAME)
  
  LT_INIT([shared disable-static win32-dll])
-@@ -449,7 +444,8 @@ AM_CONDITIONAL([HAVE_PTHREAD], [test "${
+@@ -535,13 +531,11 @@ if test "$HAVE_PTHREAD" = "yes"; then
+ fi
+ AM_CONDITIONAL([HAVE_PTHREAD], [test "${HAVE_PTHREAD}" = "yes"])
+ 
+-# Add -latomic to LDFLAGS if needed
+-CHECK_ATOMIC()
+-
  #This will simulate compilation of sdk and extract the includes defined for it. Thus we can
  # take care of the configuration done for the subproject withtout having to recheck here
  AC_OUTPUT
diff --git a/srcpkgs/MEGAcmd/template b/srcpkgs/MEGAcmd/template
index ba2108f3aa25..a17851eb7e00 100644
--- a/srcpkgs/MEGAcmd/template
+++ b/srcpkgs/MEGAcmd/template
@@ -1,6 +1,6 @@
 # Template file for 'MEGAcmd'
 pkgname=MEGAcmd
-version=1.4.0
+version=1.5.1
 revision=1
 wrksrc="${pkgname}-${version}_Linux"
 build_style=gnu-configure
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="BSD-2-Clause, GPL-3.0-or-later"
 homepage="https://github.com/meganz/MEGAcmd"
 distfiles="https://github.com/meganz/MEGAcmd/archive/${version}_Linux.tar.gz"
-checksum=2a3626a9f1d22303fe2123f984a8ecf3779d6d59ac6c67c1bf43c2423dcb832d
+checksum=911197d777c13bf3ff5c38af0b5fce478a3f96f1fecfc9647b38614512f5c1f3
 replaces="megacmd>=0"
 
 if [ "$CROSS_BUILD" ]; then

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated] MEGAcmd: update to 1.5.1
  2022-10-05 10:53 [PR PATCH] MEGAcmd: update to 1.5.1 cultab
                   ` (5 preceding siblings ...)
  2022-10-06 12:25 ` cultab
@ 2022-10-06 12:35 ` cultab
  2022-10-06 12:45 ` cultab
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: cultab @ 2022-10-06 12:35 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1731 bytes --]

There is an updated pull request by cultab against master on the void-packages repository

https://github.com/cultab/void-packages megasdk
https://github.com/void-linux/void-packages/pull/39733

MEGAcmd: update to 1.5.1
#### Testing the changes
- I tested the changes in this PR: **briefly**: by running `mega-cmd`, logging in and downloading a file using the `get` command.

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)



<!-- I am trying to update `MEGAcmd` to `1.5.1` and `MEGAsdk` to `3.9.11d` (as per the version submoduled in MEGAcmd's repo). 
But am I getting a very peculiar issue with the ./configure script.

```
configure: line 22309: syntax error near unexpected token `cat'
configure: line 22309: `cat >confcache <<\_ACEOF'
```

It doesn't really seem like there is a syntax error there.
It runs just fine when manually run outside of the chroot. So I tried the following:

 - using `chroot-bash` outside the chroot to run `./configure` and replicated the issue. 
 - using `bash` outside the chroot to run `./configure` and replicated the issue. 
 - using `zsh` inside the chroot (by redefining `do_configure` to use `zsh`) which bypasses the issue but creates another issue.
 - using `sh`  outside the chroot works as expected.

_I don't think using another shell is a real solution._


I don't really know how to continue so I'm making a **broken draft pull request** to ask for help.
What could bash be doing differently so as to cause this issue?
Maybe I messed something up when porting `autotools.patch` to the new version of `MEGAcmd`?-->


A patch file from https://github.com/void-linux/void-packages/pull/39733.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-megasdk-39733.patch --]
[-- Type: text/x-diff, Size: 8245 bytes --]

From 3ab3c76c3bf85e6b8420ddea9c38eab345bce579 Mon Sep 17 00:00:00 2001
From: cultab <rroarck@gmail.com>
Date: Wed, 5 Oct 2022 13:30:24 +0300
Subject: [PATCH 1/2] MEGAsdk: update to v3.9.11d

Added a patch to include a missing header file
that MEGAcmd expects to exist.
---
 common/shlibs                                 |  2 +-
 srcpkgs/MEGAsdk/patches/missing_headers.patch | 11 +++++++++++
 srcpkgs/MEGAsdk/template                      | 17 +++++++++++++----
 3 files changed, 25 insertions(+), 5 deletions(-)
 create mode 100644 srcpkgs/MEGAsdk/patches/missing_headers.patch

diff --git a/common/shlibs b/common/shlibs
index 5d4b0a9899ad..147f2e056606 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3120,7 +3120,7 @@ libvted-3.so.0 libvted-3.7.0_2
 libpeasd-3.so.0 libpeasd-3.7.0_2
 libgstreamerd-3.so.0 libgstreamerd-3.7.0_2
 libgtkdgl-3.so.0 libgtkdgl-3.7.0_2
-libmega.so.30703 MEGAsdk-3.7.3c_2
+libmega.so.30911 MEGAsdk-3.9.11d_1
 libopenglrecorder.so.0 libopenglrecorder-0.1.0_1
 libgpod.so.4 libgpod-0.8.3_1
 libi2c.so.0 i2c-tools-4.0_1
diff --git a/srcpkgs/MEGAsdk/patches/missing_headers.patch b/srcpkgs/MEGAsdk/patches/missing_headers.patch
new file mode 100644
index 000000000000..0d66e5f76d47
--- /dev/null
+++ b/srcpkgs/MEGAsdk/patches/missing_headers.patch
@@ -0,0 +1,11 @@
+diff --color -Naru --show-c-function a/include/Makefile.am b/include/Makefile.am
+--- a/include/Makefile.am	2022-06-15 15:24:15.000000000 +0300
++++ b/include/Makefile.am	2022-10-05 12:13:09.443571788 +0300
+@@ -56,6 +56,7 @@ nobase_libmegainclude_HEADERS = \
+ 	mega/gfx/freeimage.h \
+ 	mega/gfx/GfxProcCG.h \
+ 	mega/raid.h \
++	mega/heartbeats.h \
+ 	mega/mediafileattribute.h
+ 
+ if BUILD_MEGAAPI
diff --git a/srcpkgs/MEGAsdk/template b/srcpkgs/MEGAsdk/template
index e9cbeb70f5db..1e9e62881c32 100644
--- a/srcpkgs/MEGAsdk/template
+++ b/srcpkgs/MEGAsdk/template
@@ -1,7 +1,7 @@
 # Template file for 'MEGAsdk'
 pkgname=MEGAsdk
-version=3.7.3c
-revision=2
+version=3.9.11d
+revision=1
 wrksrc="sdk-${version}"
 build_style=gnu-configure
 configure_args="--enable-chat --disable-examples $(vopt_with libuv)"
@@ -9,14 +9,14 @@ make_build_args='LIBTOOLFLAGS="--tag=CXX"'
 hostmakedepends="autogen doxygen autoconf automake gettext libtool"
 makedepends="libcurl-devel c-ares-devel openssl-devel crypto++-devel
  zlib-devel sqlite-devel freeimage-devel libsodium-devel fuse-devel
- libuv-devel $(vopt_if mediainfo libmediainfo-devel)"
+ libuv-devel readline-devel $(vopt_if mediainfo libmediainfo-devel)"
 checkdepends="gtest-devel"
 short_desc="Official client for cloud service mega.nz"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="BSD-2-Clause"
 homepage="https://mega.nz"
 distfiles="https://github.com/meganz/sdk/archive/v${version}.tar.gz"
-checksum=0b55c1752d590a0367b9fcddd2465ea574308eb97e065540121f6261807aa111
+checksum=30e82b1ae1e1cc1b0b525dd88546ad12daa331d2e98fd9bbd85f1b936e404582
 replaces="libmega>=0"
 
 build_options="libuv mediainfo"
@@ -26,6 +26,15 @@ case "$XBPS_TARGET_MACHINE" in
 	*) build_options_default="libuv mediainfo";;
 esac
 
+if [ "$CROSS_BUILD" ]; then
+	configure_args="--with-libtool-sysroot=${XBPS_CROSS_BASE}"
+fi
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+	makedepends+=" libatomic-devel"
+	LDFLAGS+=" -latomic"
+fi
+
 do_check() {
 	: #requires static gtest libs
 }

From 27d59cfeb2b8f7c399caf86e4f093a67b7a33f13 Mon Sep 17 00:00:00 2001
From: cultab <rroarck@gmail.com>
Date: Wed, 5 Oct 2022 13:33:17 +0300
Subject: [PATCH 2/2] MEGAcmd: update to 1.5.1

---
 srcpkgs/MEGAcmd/patches/autotools.patch | 24 +++++++++++++++---------
 srcpkgs/MEGAcmd/template                |  4 ++--
 2 files changed, 17 insertions(+), 11 deletions(-)

diff --git a/srcpkgs/MEGAcmd/patches/autotools.patch b/srcpkgs/MEGAcmd/patches/autotools.patch
index 770cc5a89b3b..9524ad3431d6 100644
--- a/srcpkgs/MEGAcmd/patches/autotools.patch
+++ b/srcpkgs/MEGAcmd/patches/autotools.patch
@@ -6,7 +6,7 @@
  bin_PROGRAMS += $(MEGACMD)
 -$(MEGACMD): $(top_builddir)/sdk/src/libmega.la
 +$(MEGACMD):
- noinst_HEADERS += src/comunicationsmanager.h src/configurationmanager.h src/megacmd.h src/megacmdlogger.h src/megacmdsandbox.h src/megacmdutils.h src/megacmdcommonutils.h src/listeners.h src/megacmdexecuter.h src/megacmdversion.h src/megacmdplatform.h src/comunicationsmanagerportsockets.h
+ noinst_HEADERS += src/comunicationsmanager.h src/configurationmanager.h src/megacmd.h src/megacmdlogger.h src/megacmdsandbox.h src/megacmdutils.h src/megacmdcommonutils.h src/listeners.h src/megacmdexecuter.h src/megacmdtransfermanager.h src/megacmdversion.h src/megacmdplatform.h src/comunicationsmanagerportsockets.h
 -megacmdcompletiondir = $(sysconfdir)/bash_completion.d/
 +megacmdcompletiondir = $(datarootdir)/bash-completion/completions
  megacmdcompletion_DATA = src/client/megacmd_completion.sh
@@ -35,7 +35,7 @@
 -mega_cmd_LDADD = $(RL_LDFLAGS) $(RL_LIBS) $(TERMCAP_LDFLAGS) $(TERMCAP_LIBS) 
 +mega_cmd_LDADD = $(RL_LDFLAGS) $(RL_LIBS) $(TERMCAP_LDFLAGS) $(TERMCAP_LIBS) $(MEGA_LIBS)
  
- mega_cmd_server_CXXFLAGS = $(LMEGAINC)
+ mega_cmd_server_CXXFLAGS = $(LMEGAINC) $(DB_CXXFLAGS)
  if USE_PCRE
 @@ -41,9 +42,7 @@ mega_cmd_server_CXXFLAGS += -DUSE_PCRE=1
  endif
@@ -52,8 +52,8 @@
  
  else
  
--mega_cmd_server_LDADD=$(PCRE_LIBS) $(top_builddir)/sdk/src/libmega.la
-+mega_cmd_server_LDADD=$(PCRE_LIBS) $(MEGA_LIBS)
+-mega_cmd_server_LDADD=$(DB_LDFLAGS) $(DB_LIBS) $(PCRE_LIBS) $(top_builddir)/sdk/src/libmega.la
++mega_cmd_server_LDADD=$(DB_LDFLAGS) $(DB_LIBS) $(PCRE_LIBS) $(MEGA_LIBS)
  
  mega_cmd_server_SOURCES += src/comunicationsmanagerfilesockets.cpp
 -noinst_HEADERS += src/comunicationsmanagerfilesockets.h sdk/include/mega/thread/posixthread.h sdk/include/mega/logging.h
@@ -75,23 +75,23 @@
  #EXTRA_DIST += autogen.sh
 --- a/configure.ac
 +++ b/configure.ac
-@@ -18,9 +18,6 @@
+@@ -18,10 +18,6 @@
  #                                               -*- Autoconf -*-
  # Process this file with autoconf to produce a configure script.
  
 -m4_include([sdk/m4/ax_check_compile_flag.m4])
 -m4_include([sdk/m4/ax_check_link_flag.m4])
 -m4_include([sdk/m4/ax_cxx_compile_stdcxx.m4])
+-m4_include([sdk/m4/ax_atomic.m4])
  
  m4_define([megacmd_major_version], [$(cat src/megacmdversion.h | grep "define MEGACMD_MAJOR" | cut -d" " -f 3)])
  m4_define([megacmd_minor_version], [$(cat src/megacmdversion.h | grep "define MEGACMD_MINOR" | cut -d" " -f 3)])
-@@ -37,20 +34,18 @@ m4_define([megacmd_lt_age], [0])
+@@ -38,18 +34,18 @@ m4_define([megacmd_lt_age], [0])
  
  AC_INIT([MEGAcmd], m4_esyscmd([ grep define < src/megacmdversion.h | awk '{print $3}' | awk 'BEGIN { RS = "" ; FS = "\n" } {printf $1"."$2"."$3}']), [https://github.com/meganz/megacmd])
  
--AM_INIT_AUTOMAKE
 +AM_INIT_AUTOMAKE([1.11 foreign silent-rules])
- 
++
  AC_PROG_CC
  AC_CONFIG_FILES(Makefile)
  AC_OUTPUT
@@ -107,7 +107,13 @@
  AC_CONFIG_HEADERS([src/megacmdconfig.h]) #this avoids inline definitions of stuff already defined in sdk's config.h (e.g: -DPACKAGE_NAME)
  
  LT_INIT([shared disable-static win32-dll])
-@@ -449,7 +444,8 @@ AM_CONDITIONAL([HAVE_PTHREAD], [test "${
+@@ -535,13 +531,11 @@ if test "$HAVE_PTHREAD" = "yes"; then
+ fi
+ AM_CONDITIONAL([HAVE_PTHREAD], [test "${HAVE_PTHREAD}" = "yes"])
+ 
+-# Add -latomic to LDFLAGS if needed
+-CHECK_ATOMIC()
+-
  #This will simulate compilation of sdk and extract the includes defined for it. Thus we can
  # take care of the configuration done for the subproject withtout having to recheck here
  AC_OUTPUT
diff --git a/srcpkgs/MEGAcmd/template b/srcpkgs/MEGAcmd/template
index ba2108f3aa25..a17851eb7e00 100644
--- a/srcpkgs/MEGAcmd/template
+++ b/srcpkgs/MEGAcmd/template
@@ -1,6 +1,6 @@
 # Template file for 'MEGAcmd'
 pkgname=MEGAcmd
-version=1.4.0
+version=1.5.1
 revision=1
 wrksrc="${pkgname}-${version}_Linux"
 build_style=gnu-configure
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="BSD-2-Clause, GPL-3.0-or-later"
 homepage="https://github.com/meganz/MEGAcmd"
 distfiles="https://github.com/meganz/MEGAcmd/archive/${version}_Linux.tar.gz"
-checksum=2a3626a9f1d22303fe2123f984a8ecf3779d6d59ac6c67c1bf43c2423dcb832d
+checksum=911197d777c13bf3ff5c38af0b5fce478a3f96f1fecfc9647b38614512f5c1f3
 replaces="megacmd>=0"
 
 if [ "$CROSS_BUILD" ]; then

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated] MEGAcmd: update to 1.5.1
  2022-10-05 10:53 [PR PATCH] MEGAcmd: update to 1.5.1 cultab
                   ` (6 preceding siblings ...)
  2022-10-06 12:35 ` cultab
@ 2022-10-06 12:45 ` cultab
  2023-01-05  1:59 ` MEGAcmd: update to 1.5.1 and adopt github-actions
  2023-01-19  2:01 ` [PR PATCH] [Closed]: " github-actions
  9 siblings, 0 replies; 11+ messages in thread
From: cultab @ 2022-10-06 12:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1731 bytes --]

There is an updated pull request by cultab against master on the void-packages repository

https://github.com/cultab/void-packages megasdk
https://github.com/void-linux/void-packages/pull/39733

MEGAcmd: update to 1.5.1
#### Testing the changes
- I tested the changes in this PR: **briefly**: by running `mega-cmd`, logging in and downloading a file using the `get` command.

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)



<!-- I am trying to update `MEGAcmd` to `1.5.1` and `MEGAsdk` to `3.9.11d` (as per the version submoduled in MEGAcmd's repo). 
But am I getting a very peculiar issue with the ./configure script.

```
configure: line 22309: syntax error near unexpected token `cat'
configure: line 22309: `cat >confcache <<\_ACEOF'
```

It doesn't really seem like there is a syntax error there.
It runs just fine when manually run outside of the chroot. So I tried the following:

 - using `chroot-bash` outside the chroot to run `./configure` and replicated the issue. 
 - using `bash` outside the chroot to run `./configure` and replicated the issue. 
 - using `zsh` inside the chroot (by redefining `do_configure` to use `zsh`) which bypasses the issue but creates another issue.
 - using `sh`  outside the chroot works as expected.

_I don't think using another shell is a real solution._


I don't really know how to continue so I'm making a **broken draft pull request** to ask for help.
What could bash be doing differently so as to cause this issue?
Maybe I messed something up when porting `autotools.patch` to the new version of `MEGAcmd`?-->


A patch file from https://github.com/void-linux/void-packages/pull/39733.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-megasdk-39733.patch --]
[-- Type: text/x-diff, Size: 8552 bytes --]

From 47a675915550809d9076fc978f09d8c4239aaeab Mon Sep 17 00:00:00 2001
From: cultab <rroarck@gmail.com>
Date: Wed, 5 Oct 2022 13:30:24 +0300
Subject: [PATCH 1/2] MEGAsdk: update to v3.9.11d and adopt

Added a patch to include a missing header file
that MEGAcmd expects to exist.
---
 common/shlibs                                 |  2 +-
 srcpkgs/MEGAsdk/patches/missing_headers.patch | 11 +++++++++++
 srcpkgs/MEGAsdk/template                      | 19 ++++++++++++++-----
 3 files changed, 26 insertions(+), 6 deletions(-)
 create mode 100644 srcpkgs/MEGAsdk/patches/missing_headers.patch

diff --git a/common/shlibs b/common/shlibs
index 5d4b0a9899ad..147f2e056606 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3120,7 +3120,7 @@ libvted-3.so.0 libvted-3.7.0_2
 libpeasd-3.so.0 libpeasd-3.7.0_2
 libgstreamerd-3.so.0 libgstreamerd-3.7.0_2
 libgtkdgl-3.so.0 libgtkdgl-3.7.0_2
-libmega.so.30703 MEGAsdk-3.7.3c_2
+libmega.so.30911 MEGAsdk-3.9.11d_1
 libopenglrecorder.so.0 libopenglrecorder-0.1.0_1
 libgpod.so.4 libgpod-0.8.3_1
 libi2c.so.0 i2c-tools-4.0_1
diff --git a/srcpkgs/MEGAsdk/patches/missing_headers.patch b/srcpkgs/MEGAsdk/patches/missing_headers.patch
new file mode 100644
index 000000000000..0d66e5f76d47
--- /dev/null
+++ b/srcpkgs/MEGAsdk/patches/missing_headers.patch
@@ -0,0 +1,11 @@
+diff --color -Naru --show-c-function a/include/Makefile.am b/include/Makefile.am
+--- a/include/Makefile.am	2022-06-15 15:24:15.000000000 +0300
++++ b/include/Makefile.am	2022-10-05 12:13:09.443571788 +0300
+@@ -56,6 +56,7 @@ nobase_libmegainclude_HEADERS = \
+ 	mega/gfx/freeimage.h \
+ 	mega/gfx/GfxProcCG.h \
+ 	mega/raid.h \
++	mega/heartbeats.h \
+ 	mega/mediafileattribute.h
+ 
+ if BUILD_MEGAAPI
diff --git a/srcpkgs/MEGAsdk/template b/srcpkgs/MEGAsdk/template
index e9cbeb70f5db..9cc63e5296e5 100644
--- a/srcpkgs/MEGAsdk/template
+++ b/srcpkgs/MEGAsdk/template
@@ -1,7 +1,7 @@
 # Template file for 'MEGAsdk'
 pkgname=MEGAsdk
-version=3.7.3c
-revision=2
+version=3.9.11d
+revision=1
 wrksrc="sdk-${version}"
 build_style=gnu-configure
 configure_args="--enable-chat --disable-examples $(vopt_with libuv)"
@@ -9,14 +9,14 @@ make_build_args='LIBTOOLFLAGS="--tag=CXX"'
 hostmakedepends="autogen doxygen autoconf automake gettext libtool"
 makedepends="libcurl-devel c-ares-devel openssl-devel crypto++-devel
  zlib-devel sqlite-devel freeimage-devel libsodium-devel fuse-devel
- libuv-devel $(vopt_if mediainfo libmediainfo-devel)"
+ libuv-devel readline-devel $(vopt_if mediainfo libmediainfo-devel)"
 checkdepends="gtest-devel"
 short_desc="Official client for cloud service mega.nz"
-maintainer="Orphaned <orphan@voidlinux.org>"
+maintainer="cultab <rroarck@gmail.com>"
 license="BSD-2-Clause"
 homepage="https://mega.nz"
 distfiles="https://github.com/meganz/sdk/archive/v${version}.tar.gz"
-checksum=0b55c1752d590a0367b9fcddd2465ea574308eb97e065540121f6261807aa111
+checksum=30e82b1ae1e1cc1b0b525dd88546ad12daa331d2e98fd9bbd85f1b936e404582
 replaces="libmega>=0"
 
 build_options="libuv mediainfo"
@@ -26,6 +26,15 @@ case "$XBPS_TARGET_MACHINE" in
 	*) build_options_default="libuv mediainfo";;
 esac
 
+if [ "$CROSS_BUILD" ]; then
+	configure_args="--with-libtool-sysroot=${XBPS_CROSS_BASE}"
+fi
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+	makedepends+=" libatomic-devel"
+	LDFLAGS+=" -latomic"
+fi
+
 do_check() {
 	: #requires static gtest libs
 }

From 111eb21a64b0fc524b07c3c28536a4fc3a1636d8 Mon Sep 17 00:00:00 2001
From: cultab <rroarck@gmail.com>
Date: Wed, 5 Oct 2022 13:33:17 +0300
Subject: [PATCH 2/2] MEGAcmd: update to 1.5.1 and adopt

---
 srcpkgs/MEGAcmd/patches/autotools.patch | 24 +++++++++++++++---------
 srcpkgs/MEGAcmd/template                |  6 +++---
 2 files changed, 18 insertions(+), 12 deletions(-)

diff --git a/srcpkgs/MEGAcmd/patches/autotools.patch b/srcpkgs/MEGAcmd/patches/autotools.patch
index 770cc5a89b3b..9524ad3431d6 100644
--- a/srcpkgs/MEGAcmd/patches/autotools.patch
+++ b/srcpkgs/MEGAcmd/patches/autotools.patch
@@ -6,7 +6,7 @@
  bin_PROGRAMS += $(MEGACMD)
 -$(MEGACMD): $(top_builddir)/sdk/src/libmega.la
 +$(MEGACMD):
- noinst_HEADERS += src/comunicationsmanager.h src/configurationmanager.h src/megacmd.h src/megacmdlogger.h src/megacmdsandbox.h src/megacmdutils.h src/megacmdcommonutils.h src/listeners.h src/megacmdexecuter.h src/megacmdversion.h src/megacmdplatform.h src/comunicationsmanagerportsockets.h
+ noinst_HEADERS += src/comunicationsmanager.h src/configurationmanager.h src/megacmd.h src/megacmdlogger.h src/megacmdsandbox.h src/megacmdutils.h src/megacmdcommonutils.h src/listeners.h src/megacmdexecuter.h src/megacmdtransfermanager.h src/megacmdversion.h src/megacmdplatform.h src/comunicationsmanagerportsockets.h
 -megacmdcompletiondir = $(sysconfdir)/bash_completion.d/
 +megacmdcompletiondir = $(datarootdir)/bash-completion/completions
  megacmdcompletion_DATA = src/client/megacmd_completion.sh
@@ -35,7 +35,7 @@
 -mega_cmd_LDADD = $(RL_LDFLAGS) $(RL_LIBS) $(TERMCAP_LDFLAGS) $(TERMCAP_LIBS) 
 +mega_cmd_LDADD = $(RL_LDFLAGS) $(RL_LIBS) $(TERMCAP_LDFLAGS) $(TERMCAP_LIBS) $(MEGA_LIBS)
  
- mega_cmd_server_CXXFLAGS = $(LMEGAINC)
+ mega_cmd_server_CXXFLAGS = $(LMEGAINC) $(DB_CXXFLAGS)
  if USE_PCRE
 @@ -41,9 +42,7 @@ mega_cmd_server_CXXFLAGS += -DUSE_PCRE=1
  endif
@@ -52,8 +52,8 @@
  
  else
  
--mega_cmd_server_LDADD=$(PCRE_LIBS) $(top_builddir)/sdk/src/libmega.la
-+mega_cmd_server_LDADD=$(PCRE_LIBS) $(MEGA_LIBS)
+-mega_cmd_server_LDADD=$(DB_LDFLAGS) $(DB_LIBS) $(PCRE_LIBS) $(top_builddir)/sdk/src/libmega.la
++mega_cmd_server_LDADD=$(DB_LDFLAGS) $(DB_LIBS) $(PCRE_LIBS) $(MEGA_LIBS)
  
  mega_cmd_server_SOURCES += src/comunicationsmanagerfilesockets.cpp
 -noinst_HEADERS += src/comunicationsmanagerfilesockets.h sdk/include/mega/thread/posixthread.h sdk/include/mega/logging.h
@@ -75,23 +75,23 @@
  #EXTRA_DIST += autogen.sh
 --- a/configure.ac
 +++ b/configure.ac
-@@ -18,9 +18,6 @@
+@@ -18,10 +18,6 @@
  #                                               -*- Autoconf -*-
  # Process this file with autoconf to produce a configure script.
  
 -m4_include([sdk/m4/ax_check_compile_flag.m4])
 -m4_include([sdk/m4/ax_check_link_flag.m4])
 -m4_include([sdk/m4/ax_cxx_compile_stdcxx.m4])
+-m4_include([sdk/m4/ax_atomic.m4])
  
  m4_define([megacmd_major_version], [$(cat src/megacmdversion.h | grep "define MEGACMD_MAJOR" | cut -d" " -f 3)])
  m4_define([megacmd_minor_version], [$(cat src/megacmdversion.h | grep "define MEGACMD_MINOR" | cut -d" " -f 3)])
-@@ -37,20 +34,18 @@ m4_define([megacmd_lt_age], [0])
+@@ -38,18 +34,18 @@ m4_define([megacmd_lt_age], [0])
  
  AC_INIT([MEGAcmd], m4_esyscmd([ grep define < src/megacmdversion.h | awk '{print $3}' | awk 'BEGIN { RS = "" ; FS = "\n" } {printf $1"."$2"."$3}']), [https://github.com/meganz/megacmd])
  
--AM_INIT_AUTOMAKE
 +AM_INIT_AUTOMAKE([1.11 foreign silent-rules])
- 
++
  AC_PROG_CC
  AC_CONFIG_FILES(Makefile)
  AC_OUTPUT
@@ -107,7 +107,13 @@
  AC_CONFIG_HEADERS([src/megacmdconfig.h]) #this avoids inline definitions of stuff already defined in sdk's config.h (e.g: -DPACKAGE_NAME)
  
  LT_INIT([shared disable-static win32-dll])
-@@ -449,7 +444,8 @@ AM_CONDITIONAL([HAVE_PTHREAD], [test "${
+@@ -535,13 +531,11 @@ if test "$HAVE_PTHREAD" = "yes"; then
+ fi
+ AM_CONDITIONAL([HAVE_PTHREAD], [test "${HAVE_PTHREAD}" = "yes"])
+ 
+-# Add -latomic to LDFLAGS if needed
+-CHECK_ATOMIC()
+-
  #This will simulate compilation of sdk and extract the includes defined for it. Thus we can
  # take care of the configuration done for the subproject withtout having to recheck here
  AC_OUTPUT
diff --git a/srcpkgs/MEGAcmd/template b/srcpkgs/MEGAcmd/template
index ba2108f3aa25..9642cb05f7aa 100644
--- a/srcpkgs/MEGAcmd/template
+++ b/srcpkgs/MEGAcmd/template
@@ -1,17 +1,17 @@
 # Template file for 'MEGAcmd'
 pkgname=MEGAcmd
-version=1.4.0
+version=1.5.1
 revision=1
 wrksrc="${pkgname}-${version}_Linux"
 build_style=gnu-configure
 hostmakedepends="autoconf-archive autogen gettext automake libtool pkg-config"
 makedepends="MEGAsdk-devel readline-devel pcre-devel"
 short_desc="Command Line Interactive and Scriptable Application to access MEGA"
-maintainer="Orphaned <orphan@voidlinux.org>"
+maintainer="cultab <rroarck@gmail.com>"
 license="BSD-2-Clause, GPL-3.0-or-later"
 homepage="https://github.com/meganz/MEGAcmd"
 distfiles="https://github.com/meganz/MEGAcmd/archive/${version}_Linux.tar.gz"
-checksum=2a3626a9f1d22303fe2123f984a8ecf3779d6d59ac6c67c1bf43c2423dcb832d
+checksum=911197d777c13bf3ff5c38af0b5fce478a3f96f1fecfc9647b38614512f5c1f3
 replaces="megacmd>=0"
 
 if [ "$CROSS_BUILD" ]; then

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: MEGAcmd: update to 1.5.1 and adopt
  2022-10-05 10:53 [PR PATCH] MEGAcmd: update to 1.5.1 cultab
                   ` (7 preceding siblings ...)
  2022-10-06 12:45 ` cultab
@ 2023-01-05  1:59 ` github-actions
  2023-01-19  2:01 ` [PR PATCH] [Closed]: " github-actions
  9 siblings, 0 replies; 11+ messages in thread
From: github-actions @ 2023-01-05  1:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/pull/39733#issuecomment-1371652210

Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Closed]: MEGAcmd: update to 1.5.1 and adopt
  2022-10-05 10:53 [PR PATCH] MEGAcmd: update to 1.5.1 cultab
                   ` (8 preceding siblings ...)
  2023-01-05  1:59 ` MEGAcmd: update to 1.5.1 and adopt github-actions
@ 2023-01-19  2:01 ` github-actions
  9 siblings, 0 replies; 11+ messages in thread
From: github-actions @ 2023-01-19  2:01 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1587 bytes --]

There's a closed pull request on the void-packages repository

MEGAcmd: update to 1.5.1 and adopt
https://github.com/void-linux/void-packages/pull/39733

Description:
#### Testing the changes
- I tested the changes in this PR: **briefly**: by running `mega-cmd`, logging in and downloading a file using the `get` command.

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)



<!-- I am trying to update `MEGAcmd` to `1.5.1` and `MEGAsdk` to `3.9.11d` (as per the version submoduled in MEGAcmd's repo). 
But am I getting a very peculiar issue with the ./configure script.

```
configure: line 22309: syntax error near unexpected token `cat'
configure: line 22309: `cat >confcache <<\_ACEOF'
```

It doesn't really seem like there is a syntax error there.
It runs just fine when manually run outside of the chroot. So I tried the following:

 - using `chroot-bash` outside the chroot to run `./configure` and replicated the issue. 
 - using `bash` outside the chroot to run `./configure` and replicated the issue. 
 - using `zsh` inside the chroot (by redefining `do_configure` to use `zsh`) which bypasses the issue but creates another issue.
 - using `sh`  outside the chroot works as expected.

_I don't think using another shell is a real solution._


I don't really know how to continue so I'm making a **broken draft pull request** to ask for help.
What could bash be doing differently so as to cause this issue?
Maybe I messed something up when porting `autotools.patch` to the new version of `MEGAcmd`?-->


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-01-19  2:01 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-05 10:53 [PR PATCH] MEGAcmd: update to 1.5.1 cultab
2022-10-06  9:56 ` cultab
2022-10-06 10:51 ` [PR PATCH] [Updated] " cultab
2022-10-06 10:58 ` cultab
2022-10-06 11:00 ` cultab
2022-10-06 11:05 ` [PR PATCH] [Updated] " cultab
2022-10-06 12:25 ` cultab
2022-10-06 12:35 ` cultab
2022-10-06 12:45 ` cultab
2023-01-05  1:59 ` MEGAcmd: update to 1.5.1 and adopt github-actions
2023-01-19  2:01 ` [PR PATCH] [Closed]: " github-actions

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).