LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-15-2019, 03:31 AM   #1
Geist
Member
 
Registered: Jul 2013
Distribution: Slackware 14 / current
Posts: 66

Rep: Reputation: Disabled
sbopkg, is there a way to rename the tarballs downloaded from info file specifications?


Going for a git build of a package but I don't wanna rename everything to 40sd0f8sw0fweorwoefu20rjsof2eu02ruw0rfsldf230igf-git when it's still the same major/minor number, but merely a nightly build.

So, a way to rename the tarball to software-2.0.0.tar.gz instead of software-2.0.0awwjlasdjflsahlsdjflasdfsf-git.tar.gz would be nice.

I guess I could technically rename the file in the slackbuild itself but I thought I'd ask for an info file URL solution first.

Last edited by Geist; 03-15-2019 at 04:06 AM.
 
Old 03-15-2019, 03:35 AM   #2
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,699

Rep: Reputation: Disabled
maybe it's me, but I'm not getting it: can you please make an actual example?
 
Old 03-15-2019, 03:43 AM   #3
Geist
Member
 
Registered: Jul 2013
Distribution: Slackware 14 / current
Posts: 66

Original Poster
Rep: Reputation: Disabled
Alright, let's take Blender as an example.

info file:
Code:
PRGNAM="Blender"
VERSION="2.79b"
HOMEPAGE="http://blender.org"

DOWNLOAD="http://download.blender.org/source/blender-2.79b.tar.gz"

#nightly git
#https://builder.blender.org/download/blender-2.79-57b5852bc8b8-linux-glibc224-x86_64.tar.bz2

MD5SUM="cef9a203857dc65076e05c41fc7a7d03"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="ffmpeg jack-audio-connection-kit opencollada python-requests valgrind numpy3 SDL2 openimageio freealut"
MAINTAINER="Christoph Willing"
EMAIL="chris.willing@linux.com"
If I were to put this url into the DOWNLOAD variable, then what sbopkg would download would be named "blender-2.79-57b5852bc8b8-linux-glibc224-x86_64.tar.bz2"
But the slackbuild usually expects the tarball to be progname-version, in this case it's a much more complicated name.

Now, some slackbuilds deal with that (like the Blender one), but this is just an example cause I'm currently dealing with some blender problems regarding python, it seems (GUI is all messed up, lots of not found bits and pieces)

I just wished for this functionality before, hence me asking, Blender is just an example, the build file accepts it happily, but in the past some build files didn't.

Last edited by Geist; 03-15-2019 at 03:48 AM.
 
Old 03-15-2019, 03:57 AM   #4
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,699

Rep: Reputation: Disabled
this example surely won't work, as you are trying to substitute a tarball with sources with one containing a binary.

but I suppose the answer to your question is to create a local repository and modify in it all the slackbuilds that you want to customize accordingly, and not just the DOWNLOAD variable in the *.info file: you need to modify, at least, also the MD5SUM, and the VERSION (both in the *.info file and the *.SlackBuild)...
also you may need to edit additional things in the SlackBuild: usually a version-bump is ok but it may happen that something changes between one version of the software and the other so that the SlackBuild may need some intervention (there's no general rule, it depends on the software).
 
Old 03-15-2019, 04:02 AM   #5
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 538

Rep: Reputation: 321Reputation: 321Reputation: 321Reputation: 321
Quote:
Originally Posted by Geist View Post
Alright, let's take Blender as an example.

info file:
Code:
PRGNAM="Blender"
VERSION="2.79b"
HOMEPAGE="http://blender.org"

DOWNLOAD="http://download.blender.org/source/blender-2.79b.tar.gz"

#nightly git
#https://builder.blender.org/download/blender-2.79-57b5852bc8b8-linux-glibc224-x86_64.tar.bz2

MD5SUM="cef9a203857dc65076e05c41fc7a7d03"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="ffmpeg jack-audio-connection-kit opencollada python-requests valgrind numpy3 SDL2 openimageio freealut"
MAINTAINER="Christoph Willing"
EMAIL="chris.willing@linux.com"
If I were to put this url into the DOWNLOAD variable, then what sbopkg would download would be named "blender-2.79-57b5852bc8b8-linux-glibc224-x86_64.tar.bz2"
But the slackbuild usually expects the tarball to be progname-version, in this case it's a much more complicated name.

Now, some slackbuilds deal with that (like the Blender one), but this is just an example cause I'm currently dealing with some blender problems regarding python, it seems (GUI is all messed up, lots of not found bits and pieces)

I just wished for this functionality before, hence me asking, Blender is just an example, the build file accepts it happily, but in the past some build files didn't.
What you're trying to do with that example won't work because the Blender (note capital B spelling) SlackBuild is intended to build blender from a source code tarball, whereas your download url is for a prebuilt blender.

You'd be better off modifying the SlackBuild for blender (note all lower case spelling) which repackages a prebuilt download.

chris

Last edited by chris.willing; 03-15-2019 at 04:54 AM.
 
Old 03-15-2019, 04:04 AM   #6
Geist
Member
 
Registered: Jul 2013
Distribution: Slackware 14 / current
Posts: 66

Original Poster
Rep: Reputation: Disabled
@Ponce:
Oops, well, it was about the process anyway, and I guess there's no quick hacky shortcut then. Thanks~!

@chris.willing:
Yeah, that's what I ended up doing. Thank you, too.
 
  


Reply


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
How to port and handle tarballs downloaded in windows p143 Linux - Newbie 3 01-29-2010 10:52 AM
having problems installing downloaded programs(tarballs) blackout8 Linux - Newbie 3 05-12-2007 12:36 PM
LXer: Microsoft Releases New "Open Specifications Promise" on 20 Web Services Specifications LXer Syndicated Linux News 0 09-12-2006 09:54 PM
is there a way to rename a user? Pear-i Linux - General 3 09-09-2005 04:16 PM
Is there a quick way to rename files in xfce4 filemanager? servnov Linux - Newbie 2 11-13-2004 08:54 AM

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

All times are GMT -5. The time now is 06:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration