LinuxQuestions.org
Review your favorite Linux distribution.
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 09-10-2018, 02:12 AM   #31
dchmelik
Member
 
Registered: Nov 2008
Location: USA
Distribution: FreeBSD Unix, Slackware, FreeSlack GNU/Linux, OpenBSD Unix, FreeDOS
Posts: 466

Rep: Reputation: 51
Thumbs up


Quote:
Originally Posted by kingbeowulf View Post
If NotepadQQ looks for libwebp at runtime that is a "runtime dependency" and the idiots upstream (either NotepadQQ or qt5-webkit) should be looking for libwebp.so not libwebp.so.x. Install everything for BOINC, including libwebp-1.0.0. Then just create a libwebp.so.6 symlink to libwebp.so.
Worked, so I'm running the latest SBo BOINC... but one of us should probably get back to the SBo NotepadQQ to let them know about this missed dependency that is causing other builds problems...
 
Old 12-24-2018, 06:04 AM   #32
dchmelik
Member
 
Registered: Nov 2008
Location: USA
Distribution: FreeBSD Unix, Slackware, FreeSlack GNU/Linux, OpenBSD Unix, FreeDOS
Posts: 466

Rep: Reputation: 51
When using the SlackBuild, is it really a necessary instruction to run manually and specify a specific user directory? Won't it still run if you compile it to work for any user (~/.boinc_data)?

Maybe the original package saved stuff in ~/.BOINC, so what's the point of changing that as well? Actually some version of it saved stuff in /usr and /var but apart from avoiding that it'd be good to keep it compatible...
 
Old 12-25-2018, 03:15 AM   #33
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware64 14.2 Slackware 14.2, Slackware{32,64}-current
Posts: 1,002

Original Poster
Blog Entries: 11

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
I added the DATADIR variable so that users can use whatever location they want, instead of the BOINC defaults - which have changed on occasion. As long as boinc can write to that location, any path is acceptable. This is especially handy when running boinc from an rc script (if I ever get that done) on a headless server where you may not what to be logged in as a user all the time. What I put in the script is just an EXAMPLE, and forcing the user to enter something avoids a few "where is my boinc data" queries.

If you are upset that my script is not compatible with sbopkg and similar tools, you can contact the SBo admins. As far as I know, there is no requirement that compatibility with these tools is officially required.

If you are requesting a simple default DATADIR setting that is "good enough" for most users, to avoid having to enter it manually each time, then you can structure your query as a "feature request".
 
Old 12-25-2018, 03:54 AM   #34
dchmelik
Member
 
Registered: Nov 2008
Location: USA
Distribution: FreeBSD Unix, Slackware, FreeSlack GNU/Linux, OpenBSD Unix, FreeDOS
Posts: 466

Rep: Reputation: 51
I didn't know boinc.SlackBuild was incompatible with sbopkg/etc. but it would be good if it wasn't. Unless there's some reason like with jdk where you have to accept a license in a form to download, there's no good reason your SlackBuild should be left incompatible with sbopkg/etc.

All I'm trying to find out if I can leave $DATADIR unmodified for my own package (that I won't share) that I run on several computers, sometimes with different usernames. I don't know what that has to do with 'feature request;' it's just a simple question. Currently I have to build and archive several packages for several usernames, and it's taking a lot of effort/time.
 
Old 12-25-2018, 05:18 AM   #35
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 7,238

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Not that this necessarily answers your question, but you are able to pass variables to sbopkg to have them be used when building packages. You just add a colon after the package and add your variable. If you need to add multiple variables, you separate each of them with colons (as seen below).

Code:
sbopkg -i boinc:DATADIR="~/.boinc_data":BOINCMGR=no
See man sbopkg for more details.

But, looking at the SlackBuild, it seems that DATADIR is already set to ~/.boinc_data unless it is overwritten by passing DATADIR to the SlackBuild.
 
1 members found this post helpful.
Old 12-25-2018, 07:52 AM   #36
dchmelik
Member
 
Registered: Nov 2008
Location: USA
Distribution: FreeBSD Unix, Slackware, FreeSlack GNU/Linux, OpenBSD Unix, FreeDOS
Posts: 466

Rep: Reputation: 51
Apparently boinc.SlackBuild that's on SBo works fine with sbopkg. If it didn't, I don't think it's something users would have to take up with SBo, rather than SBo take up with the maintainer (unless there's a very exceptional reason as explained in the case of jdk.) I'll try the new package later. Unless there's something strange with BOINC, my rebuilt one should work for all users because of how $DATADIR compiled in should work.
 
Old 12-25-2018, 02:20 PM   #37
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware64 14.2 Slackware 14.2, Slackware{32,64}-current
Posts: 1,002

Original Poster
Blog Entries: 11

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by bassmadrigal View Post
Not that this necessarily answers your question, but you are able to pass variables to sbopkg to have them be used when building packages. You just add a colon after the package and add your variable. If you need to add multiple variables, you separate each of them with colons (as seen below).

Code:
sbopkg -i boinc:DATADIR="~/.boinc_data":BOINCMGR=no
See man sbopkg for more details.

But, looking at the SlackBuild, it seems that DATADIR is already set to ~/.boinc_data unless it is overwritten by passing DATADIR to the SlackBuild.
I guess this is what I should have said. I made the change to the script for a default location but did not update the README. The defaults are fine, you do not need to specify a user's $HOME path, and the script will work with sbopkg.

This time of year is a bit aggravating for me, but that is no excuse to take out my frustrations on others.
 
Old 05-16-2020, 10:26 PM   #38
dchmelik
Member
 
Registered: Nov 2008
Location: USA
Distribution: FreeBSD Unix, Slackware, FreeSlack GNU/Linux, OpenBSD Unix, FreeDOS
Posts: 466

Rep: Reputation: 51
$DATADIR bug

Some months ago I tried compiling boinc without specific user/$DATADIR; I run on several/many PCs/workstations/servers as different users (prefer universal package rather than building many/each) which is fine with official BOINC binary tarballs--they run for any/all users.

However when I did and ran yours, it created '/home/user/~,' which literal '~' directory is hard (and dangerous) for non-experts to remove.

Doesn't it default to current user (like official binaries) (but $DATADIR option)... I guess so but what went wrong with that?

Last edited by dchmelik; 05-17-2020 at 02:19 AM.
 
Old 05-17-2020, 01:21 AM   #39
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware64 14.2 Slackware 14.2, Slackware{32,64}-current
Posts: 1,002

Original Poster
Blog Entries: 11

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Weird. You are correct. It was working ok last I checked. I'll fix it in my SBo branch for the next update.
 
1 members found this post helpful.
Old 07-04-2020, 05:35 AM   #40
dchmelik
Member
 
Registered: Nov 2008
Location: USA
Distribution: FreeBSD Unix, Slackware, FreeSlack GNU/Linux, OpenBSD Unix, FreeDOS
Posts: 466

Rep: Reputation: 51
I used to run BOINC with /etc/rc.d/rc.boinc (my own and) that came with the official package or might've been written on their forum. Will this be possible with the SlackBuild? My own rc.boinc was most basic; nothing as good as another I'd seen, though it could've been improved as well. Mine was just modelled on most I saw in /etc/rc.d so only did start, stop, restart, and had few comments and no variables to help configure. However, mine did run a command to attach to my account manager. The almost better (but more commented, had variables) one I saw from the BOINC site I guess, let you specify user, directory, and so on, but not account managers, which maybe most people use, though the account manager I chose (in '00s,) if you start with a new profile, never re-adds/connects any your projects.

Of course, I could add an option to connect to project manager (the point being a better one would have comments/variables for it like the basic one has for other things.)

Mine would even start BOINC GUI, so I'd restart rc.boinc after X.

Code:
#!/bin/sh
# start/stop/restart BOINC

# start BOINC:
boinc_start()
{

  cd /var/lib/boinc
  su user -c /usr/local/lib64/boinc/boinc&
# Several account managers exist.
  su user -c "/usr/local/lib64/boinc/boinccmd --join_acct_mgr http://boincstats.com/bam/ username password&"
  #su user -c /usr/local/lib64/boinc/boincmgr&
  cd

}

# Stop BOINC:
boinc_stop()
{
  killall boinc
}

case "$1" in
'start')
  boinc_start
  ;;
'stop')
  boinc_stop
  ;;
*)
  echo "usage $0 start|stop|restart"
esac
Just wondering if I should post the one I found, or if it's out-of-date (probably) or if this might be something you've already been considering/trying...

Last edited by dchmelik; 07-11-2020 at 01:45 AM.
 
Old 07-14-2020, 11:10 PM   #41
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware64 14.2 Slackware 14.2, Slackware{32,64}-current
Posts: 1,002

Original Poster
Blog Entries: 11

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Eventually I'll get something like a rc.boinc added when things calm down around here. I have some old ones (2008? might be the one you mention) and a few works-in-progress. I'll add yours to the list.
 
  


Reply

Tags
boinc, slackbuild


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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] Slackware 14 - BOINC Install Melthenon Slackware 9 07-10-2013 01:15 PM
[SOLVED] Slackware standard configure script options? business_kid Slackware 6 12-15-2012 07:54 AM
[SOLVED] BOINC on my slackware box VampX Slackware 4 08-12-2009 08:06 AM
boinc on slackware canghel Linux - Newbie 1 09-09-2008 07:47 AM
Rpm Dependencies When Installing Snort (on Slackware) Godu Linux - Software 2 05-24-2004 09:03 AM

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

All times are GMT -5. The time now is 04:11 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