LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-06-2020, 12:44 PM   #2791
ennepath
LQ Newbie
 
Registered: Jun 2020
Posts: 23

Rep: Reputation: Disabled

Quote:
Originally Posted by ponce View Post
you should have a look at google-go-lang's README, it mentions some files in /etc/profile.d that are loaded when you login.
so you should logout from your user session and login again, then become root with "su -" (so that you have a root login shell) and try to build it again.
Nevermind, I posted the issue multiple hours ago. While was waiting for premoderation I found what was wrong. It's not about relogin - I did that. I've found two go binaries in my system. The first one in /usr/bin/go and the second one in /usr/lib64/go1.13.10/go/bin/go. I have no idea what is the source of such problem. My user doesn't have /usr/lib64/go1.13.10 in PATH, so I just removed /usr/bin/go and added symlink from /usr/lib64/go1.13.10/go/bin/go to /usr/bin/go. Now it's OK.

My 2 cents about "then become root with "su -" (so that you have a root login shell) and try to build it again." I will never do such thing because I don't want to make my system a mess. I usually build everything I need as unprivileged user, then create a packages with makepkg and install it with installpkg.
 
Old 06-06-2020, 12:52 PM   #2792
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,133

Original Poster
Rep: Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204
Quote:
Originally Posted by ennepath View Post
Nevermind, I posted the issue multiple hours ago. While was waiting for premoderation I found what was wrong. It's not about relogin - I did that. I've found two go binaries in my system. The first one in /usr/bin/go and the second one in /usr/lib64/go1.13.10/go/bin/go. I have no idea what is the source of such problem. My user doesn't have /usr/lib64/go1.13.10 in PATH, so I just removed /usr/bin/go and added symlink from /usr/lib64/go1.13.10/go/bin/go to /usr/bin/go. Now it's OK.
sorry, but that is wrong: doing this you have removed a file installed by the gcc-go package (that will also be re-installed again when you will upgrade this package).
you don't need to do that because the files in /etc/profile.d/ should take care to set the correct paths at the next login: check again then and you will see that you will use the correct interpreter.
remember to always read the READMEs of stuff you install from SBo.
Quote:
My 2 cents about "then become root with "su -" (so that you have a root login shell) and try to build it again." I will never do such thing because I don't want to make my system a mess. I usually build everything I need as unprivileged user, then create a packages with makepkg and install it with installpkg.
you shouldn't fear that as the scripts from SBo should be tested for non-proper behaviour: for this refer to FAQ #11.
also, if you do what you just wrote, the directories and files created as an unprivileged user will be packaged and then installed with that user ownerships and permissions, and *that* will actually wreck your system.

Last edited by ponce; 06-06-2020 at 01:02 PM.
 
2 members found this post helpful.
Old 06-06-2020, 01:38 PM   #2793
ennepath
LQ Newbie
 
Registered: Jun 2020
Posts: 23

Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
sorry, but that is wrong: doing this you have removed a file installed by the gcc-go package (that will also be re-installed again when you will upgrade this package).
you don't need to do that because the files in /etc/profile.d/ should take care to set the correct paths at the next login: check again then and you will see that you will use the correct interpreter.
Probably, wrong. But relogin didn't solve the problem of having two conflicting versions of go binary.

Quote:
remember to always read the READMEs of stuff you install from SBo.
Always do.

Quote:
you shouldn't fear that as the scripts from SBo should be tested for non-proper behaviour: for this refer to FAQ #11.
also
I'm not talking about SBo scripts since they require to be executed as root. I'm talking about building packages from source.

Quote:
if you do what you just wrote, the directories and files created as an unprivileged user will be packaged and then installed with that user ownerships and permissions, and *that* will actually wreck your system.
I didn't mean I use makepkg as unprivileged user. Just build programs as non root. The other stuff from makepkg to installpkg I do as root of course. makepkg provides an opportunity to change permissions and ownership of files to be packaged.

Anyway, thanks for response.

Last edited by ennepath; 06-06-2020 at 01:42 PM.
 
Old 06-06-2020, 01:55 PM   #2794
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,133

Original Poster
Rep: Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204
Quote:
Originally Posted by ennepath View Post
Probably, wrong. But relogin didn't solve the problem of having two conflicting versions of go binary.
but they are actually not conflicting as you can use one or the other, depending on what you need and the environment variables you set (PATH, GOROOT, etc.).
Quote:
I'm not talking about SBo scripts since they require to be executed as root. I'm talking about building packages from source.
fine, but I was answering about your syncthing inquiry: as I explained, to load scripts from /etc/profile.d, you need to open a root shell with "su -" (if you don't source them manually).
Quote:
Originally Posted by ennepath View Post
makepkg provides an opportunity to change permissions and ownership of files to be packaged.
some packages (actually not just a few) might need to have special permissions and ownerships for directories and files they install, so be advised that the workflow you propose won't always work.

Last edited by ponce; 06-06-2020 at 02:00 PM.
 
1 members found this post helpful.
Old 06-06-2020, 02:07 PM   #2795
ennepath
LQ Newbie
 
Registered: Jun 2020
Posts: 23

Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
but they are actually not conflicting as you can use one or the other, depending on what you need and the environment variables you set (PATH, GOROOT, etc.).

fine, but I was answering about your syncthing inquiry: as I explained, to load script from /etc/profile.d, you need to open a root shell with "su -".
AFAIK, when there are two binaries in PATH with the same name the one you call by name is the binary that closer to start of PATH value. Since relogin (I confess I didn't know about this function of /etc/profile.d/* scripts) didn't do the trick, it ended up for me with two different binaries in PATH. I was unable to use the right one by calling it by name without full path. You absolutely right about I "fixed" it in a wrong way. I've already reinstall gcc-go and set up necessary paths manually. Now it works as expected. Thank you.

P.S. Seems like I offended you. Don't take it personally. My english skills are far from good and my messages might (but should not) be treated as rough. Sorry for that.
 
Old 06-06-2020, 02:18 PM   #2796
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,133

Original Poster
Rep: Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204
Quote:
Originally Posted by ennepath View Post
Seems like I offended you. Don't take it personally. My english skills are far from good and my messages might (but should not) be treated as rough. Sorry for that.
no prob at all, I didn't get it that way!
please use the same care with my messages as I'm not a native english speaker too and, trying to give short answers to do the less errors possible, I might result in a tone different from the intended one
 
Old 06-07-2020, 12:09 AM   #2797
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
@ennepath, I'm not sure if you realized it yet, but the system will execute the first go it comes across based on the PATH variable. When you don't run the /etc/profile.d/go.sh script, it will use the /usr/bin/go binary. But when it runs the go.sh script, it will add the /usr/lib64/go1.13.8/go/bin location to the beginning of the PATH variable, which will make it run the go found in /usr/lib64/go1.13.8/go/bin over the one found in /usr/bin/

Code:
jbhansen@craven-moorhead:~$ sudo su
root@craven-moorhead:/home/jbhansen# which go
/usr/bin/go
root@craven-moorhead:/home/jbhansen# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin
root@craven-moorhead:/home/jbhansen# su -
--snip fortune--
root@craven-moorhead:~# which go
/usr/lib64/go1.13.8/go/bin/go
root@craven-moorhead:~# echo $PATH
/usr/lib64/go1.13.8/go/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/games:.:/usr/lib64/java/bin:/usr/lib64/java/jre/bin:/usr/lib64/kde4/libexec:/usr/lib64/qt/bin:/usr/lib64/qt5/bin:/usr/share/texmf/bin
 
Old 06-09-2020, 12:00 PM   #2798
qunying
Member
 
Registered: Jun 2002
Distribution: Slackware
Posts: 259

Rep: Reputation: 148Reputation: 148
I could not get 0ad compiled, after adding the 2 lines below, it seems compiled fine.

Code:
sed -i '/include <sstream>/a #include <deque>' ./source/third_party/cppformat/format.h
sed -i '/include "ps\/Profiler2.h"/a #include <stack>' ./source/ps/Profiler2GPU.cpp
 
Old 06-09-2020, 12:29 PM   #2799
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,133

Original Poster
Rep: Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204
Quote:
Originally Posted by qunying View Post
I could not get 0ad compiled, after adding the 2 lines below, it seems compiled fine.

Code:
sed -i '/include <sstream>/a #include <deque>' ./source/third_party/cppformat/format.h
sed -i '/include "ps\/Profiler2.h"/a #include <stack>' ./source/ps/Profiler2GPU.cpp
thanks, pushed!
 
Old 06-12-2020, 03:34 PM   #2800
hpfeil
Member
 
Registered: Nov 2010
Location: Tucson, Arizona US
Distribution: Slackware Current
Posts: 357
Blog Entries: 1

Rep: Reputation: Disabled
JDK download broken

When I wget jdk-8u251-linux-x64.tar.gz using the link in development/jdk/jdk.info, I get an html file that upon further examination is the signon page, https://login.oracle.com/mysso/signon.jsp. Jdk14 builds correctly using jdk-14.0.1_linux-x64_bin.tar.gz.

Last edited by hpfeil; 06-12-2020 at 03:41 PM. Reason: change jdk14
 
Old 06-12-2020, 04:00 PM   #2801
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,133

Original Poster
Rep: Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204
Quote:
Originally Posted by hpfeil View Post
When I wget jdk-8u251-linux-x64.tar.gz using the link in development/jdk/jdk.info, I get an html file that upon further examination is the signon page, https://login.oracle.com/mysso/signon.jsp.
please read jdk's README.
 
Old 06-14-2020, 10:11 AM   #2802
lioh
Member
 
Registered: Aug 2019
Location: Switzerland
Distribution: Slackware
Posts: 194

Rep: Reputation: Disabled
owncloud-client fails to build with the following errors:

Code:
/tmp/SBo/owncloudclient-2.5.4.11654/src/libsync/networkjobs.cpp: In static member function 'static QImage OCC::AvatarJob::makeCircularAvatar(const QImage&)':
/tmp/SBo/owncloudclient-2.5.4.11654/src/libsync/networkjobs.cpp:653:18: error: aggregate 'QPainterPath path' has incomplete type and cannot be defined
  653 |     QPainterPath path;
      |                  ^~~~
At global scope:
cc1plus: warning: unrecognized command line option '-Wno-gnu-zero-variadic-macro-arguments'
make[2]: *** [src/libsync/CMakeFiles/owncloudsync.dir/build.make:226: src/libsync/CMakeFiles/owncloudsync.dir/networkjobs.cpp.o] Error 1
make[2]: Leaving directory '/tmp/SBo/owncloudclient-2.5.4.11654/build'
make[1]: *** [CMakeFiles/Makefile2:439: src/libsync/CMakeFiles/owncloudsync.dir/all] Error 2
make[1]: Leaving directory '/tmp/SBo/owncloudclient-2.5.4.11654/build'
make: *** [Makefile:172: all] Error 2
 
Old 06-14-2020, 11:11 AM   #2803
BrunoLafleur
Member
 
Registered: Apr 2020
Location: France
Distribution: Slackware
Posts: 422

Rep: Reputation: 383Reputation: 383Reputation: 383Reputation: 383
It is due to the upgrade of qt5.13 towards qt5.15
You should add :
#include <QPainterPath>

In the file :
owncloudclient-2.5.4.11654/src/libsync/networkjobs.cpp

You can do a patch and add it to the SBo package.

You can also suggest the fix to the author of owncloudclient but maybe they saw it and it is on the master branch ?
The fix is compatible with the 5.13 version of qt5.
 
Old 06-14-2020, 12:58 PM   #2804
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,823

Rep: Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988
chromaprint-1.4.3 wouldn't install for me if I had my customized FFMPEG 4.2.3 installed which has chromaprint as a dependency. chromaprint-1.5.0 could be built too if FFMPEG was removed first. The Slackbuild had to be modified a little because the directory is called chromaprint-1.5.0 now with the v removed before the version number.
 
Old 06-14-2020, 02:32 PM   #2805
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,133

Original Poster
Rep: Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204
Quote:
Originally Posted by RadicalDreamer View Post
chromaprint-1.4.3 wouldn't install for me if I had my customized FFMPEG 4.2.3 installed which has chromaprint as a dependency. chromaprint-1.5.0 could be built too if FFMPEG was removed first. The Slackbuild had to be modified a little because the directory is called chromaprint-1.5.0 now with the v removed before the version number.
well, I am not able to reproduce it.
I have tested it like this:
- first I built chromaprint against the stock ffmpeg in Slackware and installed it at the end;
- then I rebuilt ffmpeg with most of the optional dependencies enabled, included chromaprint, and upgraded with the new package the stock ffmpeg;
- then I rebuilt chromaprint against the new ffmpeg.
everything went fine here...

BTW, I'll have a look ASAP at the newer chromaprint...
 
1 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 03:16 AM.

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