LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-20-2021, 03:33 PM   #4186
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,363

Rep: Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078

mistake
sorry ..
 
Old 08-20-2021, 04:09 PM   #4187
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Original Poster
Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
Quote:
Originally Posted by frtorres View Post
Thanks Ponce for your response!.

Trying to install google-go-lang, I am getting this, maybe temporal or does it need a new URL to Download?. I make sure I have internet and access to https://dl.google.com, but no go and "bootstrap.." file present (checked via browser)

Code:
--2021-08-20 14:39:38--  (try: 5)  https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz
Connecting to dl.google.com (dl.google.com)|203.208.50.33|:443... failed: Connection timed out.
Giving up.
Thanks in advance.

Francisco.
it's downloading fine from here...

BTW, SBo source tarballs are mirrored on sbosrcarch, courtesy of Urchlay and Tadgy

http://slackware.uk/sbosrcarch/by-na...oogle-go-lang/
 
1 members found this post helpful.
Old 08-20-2021, 08:13 PM   #4188
frtorres
Member
 
Registered: Jul 2012
Distribution: Debian kanotix, Slackware
Posts: 87

Rep: Reputation: Disabled
system/bat compilation error.

Now I am trying to install system/bat, a cat "clone"

No dependencies found.

Code:
echo | sbopkg -s bat | grep REQUIRES
REQUIRES=""
Before compilation starts I open a new root shell with "su -" before trying to build bat.

I got this compilation error.

Code:
   Compiling syntect v4.5.0
   Compiling git2 v0.13.19
error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements
  --> /tmp/SBo/bat-0.18.1/vendor/git2-0.13.19/src/attr.rs:74:15
   |
74 |         match (self, other) {
   |               ^^^^^^^^^^^^^
   |
note: first, the lifetime cannot outlive the anonymous lifetime defined on the method body at 73:26...
  --> /tmp/SBo/bat-0.18.1/vendor/git2-0.13.19/src/attr.rs:73:26
   |
73 |     fn eq(&self, other: &AttrValue<'_>) -> bool {
   |                          ^^^^^^^^^^^^^
note: ...so that the types are compatible
  --> /tmp/SBo/bat-0.18.1/vendor/git2-0.13.19/src/attr.rs:74:15
   |
74 |         match (self, other) {
   |               ^^^^^^^^^^^^^
   = note: expected `(&AttrValue<'_>, &AttrValue<'_>)`
              found `(&AttrValue<'_>, &AttrValue<'_>)`
note: but, the lifetime must be valid for the lifetime `'_` as defined on the impl at 72:30...
  --> /tmp/SBo/bat-0.18.1/vendor/git2-0.13.19/src/attr.rs:72:30
   |
72 | impl PartialEq for AttrValue<'_> {
   |                              ^^
note: ...so that the types are compatible
  --> /tmp/SBo/bat-0.18.1/vendor/git2-0.13.19/src/attr.rs:79:16
   |
79 |             | (Self::Bytes(bytes), AttrValue::String(string)) => string.as_bytes() == *bytes,
   |                ^^^^^^^^^^^^^^^^^^
   = note: expected `AttrValue<'_>`
              found `AttrValue<'_>`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0495`.
error: could not compile `git2`
Tested in a normal shell (no su -)

I Got This compiation error:

Code:
go build cmd/compile/internal/ssa: /tmp/SBo/package-google-go-lang/usr/lib64/go1.16.4/go/pkg/tool/linux_amd64/compile: signal: killed
go tool dist: FAILED: /tmp/SBo/package-google-go-lang/usr/lib64/go1.16.4/go/pkg/tool/linux_amd64/go_bootstrap install -gcflags=all= -ldflags=all= -a -i cmd/asm cmd/cgo cmd/compile cmd/link: exit status 1
Thanks in advance for your traditional help and support.

Best Regards,

Francisco.

Last edited by frtorres; 08-20-2021 at 09:20 PM.
 
Old 08-21-2021, 12:11 AM   #4189
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Original Poster
Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
Quote:
Originally Posted by frtorres View Post
Now I am trying to install system/bat, a cat "clone"

No dependencies found.

Code:
echo | sbopkg -s bat | grep REQUIRES
REQUIRES=""
Before compilation starts I open a new root shell with "su -" before trying to build bat.

I got this compilation error.

Code:
   Compiling syntect v4.5.0
   Compiling git2 v0.13.19
error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements
  --> /tmp/SBo/bat-0.18.1/vendor/git2-0.13.19/src/attr.rs:74:15
   |
74 |         match (self, other) {
   |               ^^^^^^^^^^^^^
   |
note: first, the lifetime cannot outlive the anonymous lifetime defined on the method body at 73:26...
  --> /tmp/SBo/bat-0.18.1/vendor/git2-0.13.19/src/attr.rs:73:26
   |
73 |     fn eq(&self, other: &AttrValue<'_>) -> bool {
   |                          ^^^^^^^^^^^^^
note: ...so that the types are compatible
  --> /tmp/SBo/bat-0.18.1/vendor/git2-0.13.19/src/attr.rs:74:15
   |
74 |         match (self, other) {
   |               ^^^^^^^^^^^^^
   = note: expected `(&AttrValue<'_>, &AttrValue<'_>)`
              found `(&AttrValue<'_>, &AttrValue<'_>)`
note: but, the lifetime must be valid for the lifetime `'_` as defined on the impl at 72:30...
  --> /tmp/SBo/bat-0.18.1/vendor/git2-0.13.19/src/attr.rs:72:30
   |
72 | impl PartialEq for AttrValue<'_> {
   |                              ^^
note: ...so that the types are compatible
  --> /tmp/SBo/bat-0.18.1/vendor/git2-0.13.19/src/attr.rs:79:16
   |
79 |             | (Self::Bytes(bytes), AttrValue::String(string)) => string.as_bytes() == *bytes,
   |                ^^^^^^^^^^^^^^^^^^
   = note: expected `AttrValue<'_>`
              found `AttrValue<'_>`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0495`.
error: could not compile `git2`
Tested in a normal shell (no su -)

I Got This compiation error:

Code:
go build cmd/compile/internal/ssa: /tmp/SBo/package-google-go-lang/usr/lib64/go1.16.4/go/pkg/tool/linux_amd64/compile: signal: killed
go tool dist: FAILED: /tmp/SBo/package-google-go-lang/usr/lib64/go1.16.4/go/pkg/tool/linux_amd64/go_bootstrap install -gcflags=all= -ldflags=all= -a -i cmd/asm cmd/cgo cmd/compile cmd/link: exit status 1
Thanks in advance for your traditional help and support.

Best Regards,

Francisco.
hi Francisco,

for this one you better get in touch with the maintainer (I'm pretty sure he uses current and updated the script recently).
 
Old 08-21-2021, 05:37 PM   #4190
Lenard Spencer
Member
 
Registered: Sep 2004
Location: Florida
Distribution: Slackware, Linux from Scratch
Posts: 329

Rep: Reputation: 199Reputation: 199
Quote:
Originally Posted by ponce View Post
it's fixed now in my branch, thanks for the report!

https://git.slackbuilds.org/slackbui...it/?id=3499e08
Thanks, it now builds here on both 32- and 64-bit (including multilib).

Also, here is another patch you might want to add to fix aarch64 builds:

file: glibc2.31-aarch64.diff:
Code:
This patch is a consolidation of two patches from Jakub Jelinek
  <jakub@redhat.com>
to fix "new glibc breaks arm bootstrap due to libsanitizer"

diff -Naur gcc-5.5.0.orig/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc gcc-5.5.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc
--- gcc-5.5.0.orig/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc	2017-02-17 14:23:28.000000000 -0500
+++ gcc-5.5.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc	2021-08-21 15:16:01.119402101 -0400
@@ -1061,8 +1061,9 @@
 #ifndef __GLIBC_PREREQ
 #define __GLIBC_PREREQ(x, y) 0
 #endif
-#if !defined(__aarch64__) || !SANITIZER_LINUX || __GLIBC_PREREQ (2, 21)
-/* On aarch64 glibc 2.20 and earlier provided incorrect mode field.  */
+#if !SANITIZER_LINUX || __GLIBC_PREREQ (2, 31)
+/* glibc 2.30 and earlier provided 16-bit mode field instead of 32-bit
+   on many architectures.  */
 CHECK_SIZE_AND_OFFSET(ipc_perm, mode);
 #endif
 
diff -Naur gcc-5.5.0.orig/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h gcc-5.5.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
--- gcc-5.5.0.orig/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h	2017-06-29 14:57:47.000000000 -0400
+++ gcc-5.5.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h	2021-08-21 15:15:49.841298910 -0400
@@ -186,14 +186,8 @@
     unsigned long __unused1;
     unsigned long __unused2;
 #elif defined(__sparc__)
-# if defined(__arch64__)
     unsigned mode;
-    unsigned short __pad1;
-# else
-    unsigned short __pad1;
-    unsigned short mode;
     unsigned short __pad2;
-# endif
     unsigned short __seq;
     unsigned long long __unused1;
     unsigned long long __unused2;
Thanks again for all your help.

Last edited by Lenard Spencer; 08-22-2021 at 12:21 AM.
 
Old 08-22-2021, 07:11 PM   #4191
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,266
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
Question menulibre, psutils vs python 3 bindings missing

Tested RC1 updated as of "Sat Aug 21 04:38:34 UTC 2021"

menulibre-2.2.1 fails with
Code:
/tmp/SBo/menulibre-2.2.1/menulibre/MenulibreApplication.py:29: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '4.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gio, GLib, GObject, Gtk, Gdk, GdkPixbuf
Traceback (most recent call last):
  File "/usr/lib64/python3.9/site-packages/DistUtilsExtra/auto.py", line 349, in __external_mod
    mod = __import__(module)
ModuleNotFoundError: No module named 'util'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/SBo/menulibre-2.2.1/setup.py", line 210, in <module>
    DistUtilsExtra.auto.setup(
  File "/usr/lib64/python3.9/site-packages/DistUtilsExtra/auto.py", line 98, in setup
    __requires(attrs, src_all)
  File "/usr/lib64/python3.9/site-packages/DistUtilsExtra/auto.py", line 471, in __requires
    __add_imports(imports, s, attrs)
  File "/usr/lib64/python3.9/site-packages/DistUtilsExtra/auto.py", line 412, in __add_imports
    elif node.module and __external_mod(cur_module, node.module, attrs):
  File "/usr/lib64/python3.9/site-packages/DistUtilsExtra/auto.py", line 354, in __external_mod
    mod = __import__(cur_module + '.' + module)
  File "/tmp/SBo/menulibre-2.2.1/menulibre/__init__.py", line 23, in <module>
    from menulibre import MenulibreApplication
  File "/tmp/SBo/menulibre-2.2.1/menulibre/MenulibreApplication.py", line 32, in <module>
    from . import MenulibreTreeview, MenulibreHistory, Dialogs
  File "/tmp/SBo/menulibre-2.2.1/menulibre/MenulibreTreeview.py", line 26, in <module>
    from . import MenuEditor, MenulibreXdg, XmlMenuElementTree, util
  File "/tmp/SBo/menulibre-2.2.1/menulibre/MenuEditor.py", line 42, in <module>
    icon_theme = Gtk.IconTheme.get_default()
AttributeError: type object 'IconTheme' has no attribute 'get_default'
I thought at first this is due to psutils-5.6.7 no longer installs python3 bindings since
Code:
# Install python3 bindings for psutil.
if $(python3 -c 'import sys' 2>/dev/null); then
  python3 setup.py install --root=$PKG
fi
The test fails. removing the if statement builds python3 bindings but menulibre still fails to build with the same error. All .info deps are installed and versions from git today.

Last edited by kingbeowulf; 08-22-2021 at 07:13 PM. Reason: correction
 
Old 08-23-2021, 04:24 AM   #4192
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Original Poster
Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
Quote:
Originally Posted by kingbeowulf View Post
Tested RC1 updated as of "Sat Aug 21 04:38:34 UTC 2021"

menulibre-2.2.1 fails with
Code:
/tmp/SBo/menulibre-2.2.1/menulibre/MenulibreApplication.py:29: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '4.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gio, GLib, GObject, Gtk, Gdk, GdkPixbuf
Traceback (most recent call last):
  File "/usr/lib64/python3.9/site-packages/DistUtilsExtra/auto.py", line 349, in __external_mod
    mod = __import__(module)
ModuleNotFoundError: No module named 'util'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/SBo/menulibre-2.2.1/setup.py", line 210, in <module>
    DistUtilsExtra.auto.setup(
  File "/usr/lib64/python3.9/site-packages/DistUtilsExtra/auto.py", line 98, in setup
    __requires(attrs, src_all)
  File "/usr/lib64/python3.9/site-packages/DistUtilsExtra/auto.py", line 471, in __requires
    __add_imports(imports, s, attrs)
  File "/usr/lib64/python3.9/site-packages/DistUtilsExtra/auto.py", line 412, in __add_imports
    elif node.module and __external_mod(cur_module, node.module, attrs):
  File "/usr/lib64/python3.9/site-packages/DistUtilsExtra/auto.py", line 354, in __external_mod
    mod = __import__(cur_module + '.' + module)
  File "/tmp/SBo/menulibre-2.2.1/menulibre/__init__.py", line 23, in <module>
    from menulibre import MenulibreApplication
  File "/tmp/SBo/menulibre-2.2.1/menulibre/MenulibreApplication.py", line 32, in <module>
    from . import MenulibreTreeview, MenulibreHistory, Dialogs
  File "/tmp/SBo/menulibre-2.2.1/menulibre/MenulibreTreeview.py", line 26, in <module>
    from . import MenuEditor, MenulibreXdg, XmlMenuElementTree, util
  File "/tmp/SBo/menulibre-2.2.1/menulibre/MenuEditor.py", line 42, in <module>
    icon_theme = Gtk.IconTheme.get_default()
AttributeError: type object 'IconTheme' has no attribute 'get_default'
I thought at first this is due to psutils-5.6.7 no longer installs python3 bindings since
Code:
# Install python3 bindings for psutil.
if $(python3 -c 'import sys' 2>/dev/null); then
  python3 setup.py install --root=$PKG
fi
The test fails. removing the if statement builds python3 bindings but menulibre still fails to build with the same error. All .info deps are installed and versions from git today.
Hi Edward,
I confess to not having tried it myself (I'm visiting the mother-in-law), but does this help?

https://github.com/bluesabre/menulibre/issues/82
https://bugs.gentoo.org/787863#c8
https://aur.archlinux.org/cgit/aur.g...8a29088f585a6e
 
Old 08-23-2021, 06:34 PM   #4193
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,266
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
Quote:
Originally Posted by ponce View Post
Hi Edward,
I confess to not having tried it myself (I'm visiting the mother-in-law), but does this help?

https://github.com/bluesabre/menulibre/issues/82
https://bugs.gentoo.org/787863#c8
https://aur.archlinux.org/cgit/aur.g...8a29088f585a6e
Yep, that will do it. My search-fu was weak after pounding hard cider "for medicinal purposes" after yard work and home repairs...

Add patch 'fix_gtk4_conflict.patch'
Code:
diff -Naur menulibre-2.2.1.org/menulibre/MenulibreApplication.py menulibre-2.2.1/menulibre/MenulibreApplication.py
--- menulibre-2.2.1.org/menulibre/MenulibreApplication.py	2019-05-31 01:55:18.000000000 +0100
+++ menulibre-2.2.1/menulibre/MenulibreApplication.py	2021-06-03 20:43:35.507256870 +0100
@@ -26,6 +26,8 @@
 
 from locale import gettext as _
 
+import gi
+gi.require_version("Gtk", "3.0")
 from gi.repository import Gio, GLib, GObject, Gtk, Gdk, GdkPixbuf
 
 from . import MenulibreStackSwitcher, MenulibreIconSelection
diff -Naur menulibre-2.2.1.org/menulibre_lib/helpers.py menulibre-2.2.1/menulibre_lib/helpers.py
--- menulibre-2.2.1.org/menulibre_lib/helpers.py	2019-05-31 01:55:18.000000000 +0100
+++ menulibre-2.2.1/menulibre_lib/helpers.py	2021-06-03 20:44:04.194017263 +0100
@@ -18,6 +18,8 @@
 import logging
 import os
 
+import gi
+gi.require_version("Gtk", "3.0")
 from gi.repository import Gtk
 
 from . menulibreconfig import get_data_file
to Menulibre.Slackbuild
Code:
...
# fix install error due to conflict with gtk4
patch -p1 < $CWD/fix_gtk4_conflict.patch

python3 setup.py install --root=$PKG
...
and menulibre now builds and runs.
 
Old 08-24-2021, 04:38 AM   #4194
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,683

Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
rss-glx needs a patch for gcc 11. Here is a link to the patch
 
Old 08-24-2021, 05:07 AM   #4195
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Original Poster
Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
Quote:
Originally Posted by Daedra View Post
rss-glx needs a patch for gcc 11. Here is a link to the patch
thanks, pushed in my branch!
 
Old 08-24-2021, 05:08 AM   #4196
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Original Poster
Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
Quote:
Originally Posted by kingbeowulf View Post
Yep, that will do it. My search-fu was weak after pounding hard cider "for medicinal purposes" after yard work and home repairs...

Add patch 'fix_gtk4_conflict.patch'
Code:
diff -Naur menulibre-2.2.1.org/menulibre/MenulibreApplication.py menulibre-2.2.1/menulibre/MenulibreApplication.py
--- menulibre-2.2.1.org/menulibre/MenulibreApplication.py	2019-05-31 01:55:18.000000000 +0100
+++ menulibre-2.2.1/menulibre/MenulibreApplication.py	2021-06-03 20:43:35.507256870 +0100
@@ -26,6 +26,8 @@
 
 from locale import gettext as _
 
+import gi
+gi.require_version("Gtk", "3.0")
 from gi.repository import Gio, GLib, GObject, Gtk, Gdk, GdkPixbuf
 
 from . import MenulibreStackSwitcher, MenulibreIconSelection
diff -Naur menulibre-2.2.1.org/menulibre_lib/helpers.py menulibre-2.2.1/menulibre_lib/helpers.py
--- menulibre-2.2.1.org/menulibre_lib/helpers.py	2019-05-31 01:55:18.000000000 +0100
+++ menulibre-2.2.1/menulibre_lib/helpers.py	2021-06-03 20:44:04.194017263 +0100
@@ -18,6 +18,8 @@
 import logging
 import os
 
+import gi
+gi.require_version("Gtk", "3.0")
 from gi.repository import Gtk
 
 from . menulibreconfig import get_data_file
to Menulibre.Slackbuild
Code:
...
# fix install error due to conflict with gtk4
patch -p1 < $CWD/fix_gtk4_conflict.patch

python3 setup.py install --root=$PKG
...
and menulibre now builds and runs.
thanks, pushed in my git branch on SBo!
 
Old 08-24-2021, 09:43 AM   #4197
J_W
Member
 
Registered: Apr 2004
Location: Yamagata, JAPAN
Distribution: Slackware64-current
Posts: 189

Rep: Reputation: 123Reputation: 123
MEGAsync (4.5.3.0_Linux)

Hello,

Here is a just information about the latest version of MEGAsync (4.5.3.0_Linux).
I know that the MEGAsync version of SBo is "4.3.7.0", but since I was using a version 4.4.0.0 personally, I tried to upgrade to the latest version 4.5.3.0 on slackware64-current (15.0.RC1).

According to my trial experience, the result is as follows.

1. The original source 4.5.3.0_Linux was not able to be compiled on slackware64 15.0.RC1 (gcc-11 and ffmpeg-4.4).
Error log is similar to issue #578
https://github.com/meganz/MEGAsync/issues/578

2. Next, I applied patches that I found at Gentoo portage.
Gentoo patch

Result)
Package was compiled successfully on slackware64-15.0.RC1 (gcc-11 and ffmpeg-4.4) and is working fine so far.
src :
MEGAsync-4.5.3.0_Linux.tar.gz
sdk-3.8.2c.tar.gz

diff between MEGAsync.SlackBuild and MEGAsync.SlackBuild.new is as follows
Code:
--- MEGAsync.SlackBuild	2021-08-24 19:03:31.922230754 +0900
+++ MEGAsync.SlackBuild.new	2021-08-24 23:22:23.126395949 +0900
@@ -26,8 +26,8 @@
 cd $(dirname $0) ; CWD=$(pwd)
 
 PRGNAM=MEGAsync
-VERSION=${VERSION:-4.3.7.0}
-SDK=${SDK:-3.7.3e}
+VERSION=${VERSION:-4.5.3.0}
+SDK=${SDK:-3.8.2c}
 BUILD=${BUILD:-1}
 TAG=${TAG:-_SBo}
 PKGTYPE=${PKGTYPE:-tgz}
@@ -84,6 +84,8 @@
   -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
 
 cd src/MEGASync/mega
+patch -p1 < $CWD/megasync-4.5.0.0_pdfium.patch
+
 ./autogen.sh
 CFLAGS="$SLKCFLAGS" \
 CXXFLAGS="$SLKCFLAGS" \
@@ -107,7 +109,11 @@
   --enable-chat \
   --enable-gcc-hardening
 
-cd ../../
+# Apply ffmpeg4 fix patch ; Thanks Gentoo
+cd ../../../
+patch -p1 < $CWD/megasync-4.5.0.0_ffmpeg.patch
+
+cd src/
 qmake CONFIG+="release" QMAKE_CXXFLAGS="$SLKCFLAGS" MEGA.pro
 lrelease MEGASync/MEGASync.pro
 make
@@ -125,6 +131,7 @@
 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
 cd $TMP/$PRGNAM-$VERSION\_Linux
 cp -a  README.md LICENCE.md CREDITS.md $PKG/usr/doc/$PRGNAM-$VERSION
+cp $CWD/megasync-4.5.0.0_pdfium.patch $CWD/megasync-4.5.0.0_ffmpeg.patch $PKG/usr/doc/$PRGNAM-$VERSION
 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
 
 mkdir -p $PKG/install
Sorry for my poor English.
 
Old 08-24-2021, 01:54 PM   #4198
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Original Poster
Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
Quote:
Originally Posted by J_W View Post
Hello,

Here is a just information about the latest version of MEGAsync (4.5.3.0_Linux).
I know that the MEGAsync version of SBo is "4.3.7.0", but since I was using a version 4.4.0.0 personally, I tried to upgrade to the latest version 4.5.3.0 on slackware64-current (15.0.RC1).

According to my trial experience, the result is as follows.

1. The original source 4.5.3.0_Linux was not able to be compiled on slackware64 15.0.RC1 (gcc-11 and ffmpeg-4.4).
Error log is similar to issue #578
https://github.com/meganz/MEGAsync/issues/578

2. Next, I applied patches that I found at Gentoo portage.
Gentoo patch

Result)
Package was compiled successfully on slackware64-15.0.RC1 (gcc-11 and ffmpeg-4.4) and is working fine so far.
src :
MEGAsync-4.5.3.0_Linux.tar.gz
sdk-3.8.2c.tar.gz

diff between MEGAsync.SlackBuild and MEGAsync.SlackBuild.new is as follows
Code:
--- MEGAsync.SlackBuild	2021-08-24 19:03:31.922230754 +0900
+++ MEGAsync.SlackBuild.new	2021-08-24 23:22:23.126395949 +0900
@@ -26,8 +26,8 @@
 cd $(dirname $0) ; CWD=$(pwd)
 
 PRGNAM=MEGAsync
-VERSION=${VERSION:-4.3.7.0}
-SDK=${SDK:-3.7.3e}
+VERSION=${VERSION:-4.5.3.0}
+SDK=${SDK:-3.8.2c}
 BUILD=${BUILD:-1}
 TAG=${TAG:-_SBo}
 PKGTYPE=${PKGTYPE:-tgz}
@@ -84,6 +84,8 @@
   -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
 
 cd src/MEGASync/mega
+patch -p1 < $CWD/megasync-4.5.0.0_pdfium.patch
+
 ./autogen.sh
 CFLAGS="$SLKCFLAGS" \
 CXXFLAGS="$SLKCFLAGS" \
@@ -107,7 +109,11 @@
   --enable-chat \
   --enable-gcc-hardening
 
-cd ../../
+# Apply ffmpeg4 fix patch ; Thanks Gentoo
+cd ../../../
+patch -p1 < $CWD/megasync-4.5.0.0_ffmpeg.patch
+
+cd src/
 qmake CONFIG+="release" QMAKE_CXXFLAGS="$SLKCFLAGS" MEGA.pro
 lrelease MEGASync/MEGASync.pro
 make
@@ -125,6 +131,7 @@
 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
 cd $TMP/$PRGNAM-$VERSION\_Linux
 cp -a  README.md LICENCE.md CREDITS.md $PKG/usr/doc/$PRGNAM-$VERSION
+cp $CWD/megasync-4.5.0.0_pdfium.patch $CWD/megasync-4.5.0.0_ffmpeg.patch $PKG/usr/doc/$PRGNAM-$VERSION
 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
 
 mkdir -p $PKG/install
Sorry for my poor English.
thanks, pushed in my git branch!
 
Old 08-25-2021, 04:56 PM   #4199
JayByrd
Member
 
Registered: Aug 2021
Location: Seattle, WA
Distribution: Slackware
Posts: 300

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
Cool nvidia-legacy-304

Just a heads up for SBo mods (or anyone else who's interested.)

I've recently volunteered to take over these two (driver and kernel) unmaintained SlackBuilds. With one slight tweak to account for a kernel change back-ported to 4.4 kernels (beginning with release 4.4.168,) these scripts continue to work well for me on 14.2.

In anticipating the release of 15.0, I've been working on getting them working on current. The "driver" SlackBuild needed just a couple of minor tweaks, but the one for the kernel module was a whole 'nother story...

I'm pleased to report that I did indeed (eventually) get it to compile. It took quite a chain of patches--some gleaned from github, others hacked out myself. (Perhaps this task would have been easier had I been keeping up on kernel developments down through the years... Jumping straight from kernel 4.4 to 5.13 was quite the leap, after all.)

Now that I've got both the driver and kernel module compiled, I'll begin testing them on real hardware.

At any rate, what will remain after testing is to clean up and consolidate all the fixes. (Several of my temporary hacks to get it working on -current broke the build on 14.2) Once that has been accomplished, I'll report back here, and, hopefully, they'll pass SBo muster!

Last edited by JayByrd; 08-25-2021 at 05:21 PM.
 
3 members found this post helpful.
Old 08-27-2021, 02:13 AM   #4200
JayByrd
Member
 
Registered: Aug 2021
Location: Seattle, WA
Distribution: Slackware
Posts: 300

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
Unhappy nvidia-legacy-304 continued...

Well, in reference to my above post, I've learned a very valuable lesson these last couple of days: check the binary blob first!

After finding a series of 10 patches that brought the nVidia module code into line up to kernel 5.6, then adapting some nVidia source code from "newer" drivers (like 340 & 390) to create six more patches, and finally developing six additional patches myself from scratch, I have a SlackBuild script that builds great on both 14.2 and -current!

Only once that task is complete do I discover that it's a moot point, due to the other part: the proprietary nVidia binary. xorg server 1.20 in -current implements a new ABI, and since nVidia will never release another update for the 304 binary, my odds of being able to keep this hardware going have gone from slim to anorexic.

At this point, I can see only a handful of options, none of which seem very appealing:

1. Forget about switching to Slackware 15, and just ride it out on 14.2 until it goes EOL.

2. Fall back to using nouveau and just accept that my whole system will lock up a couple times a week.

3. Go ahead and install 15 and then downgrade the xorg server to 1.19. (which I imagine could entail its own special nightmare of compilation hell...)

4. Just say "eff it" and throw two perfectly operational video cards in the landfill just to "keep up with the times."

5. Dive in even deeper and learn how to reverse engineer/decompile/disassemble the nVidia binary and hack/patch that! Of course, that would probably entail years of college courses... (not to mention that to do so is in express violation of the NVIDIA license. I doubt that SBo would be willing to host something that would put them into legal jeopardy by default...)

To sum up: I'm at an impasse. If anyone can think of additional options, I'm open to suggestions. Of the five options I can see, I'm leaning towards number three--but, man oh man..!

I guess before I go there, I should ask for the record: does anyone know of a reason why xorg 1.19 couldn't work on Slackware 15? I figure it's worth it to ask that now. (Perhaps if I had asked around a bit, I would have learned about the ABI issue before--instead of just assuming that if I could just get the module to compile, the thing would work.)

Last edited by JayByrd; 08-27-2021 at 03:55 AM. Reason: number agreemet.
 
3 members found this post helpful.
  


Reply

Tags
current, sbo, sbopkg, slackrepo



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Error building gst1-plugins-good 1.4.1 from SBO l0rddarkf0rce Slackware 4 10-06-2014 05:58 PM
[SOLVED] Failure building nvidia-kernel Slackbuild from SBo sysfce2 Slackware 7 07-02-2011 01:10 AM
problems building fontforge from SBo gtludwig Slackware 7 05-12-2010 01:52 PM
Pls help me take my 1st step! verysoon Fedora - Installation 2 12-12-2005 07:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration