LinuxQuestions.org
Visit Jeremy's Blog.
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 03-24-2024, 09:37 AM   #1
SlackCoder
Member
 
Registered: Nov 2020
Posts: 40

Rep: Reputation: Disabled
What are slackware package tags?


Slackware package names are made up a few components, following the format '$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE'.

The purpose of most are clear, PRGNAM (program or application name), ARCH (x86 etc). What is the purpose of 'TAG'? Slackware official packages sometimes use the Slackware version, third package sources like slackbuilds use their own (SBO).

Are there rules or best practices for TAG's? Under what circumstances should one use a new tag?
 
Old 03-24-2024, 10:31 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Quote:
Originally Posted by SlackCoder View Post
Slackware package names are made up a few components, following the format '$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE'.

The purpose of most are clear, PRGNAM (program or application name), ARCH (x86 etc). What is the purpose of 'TAG'? Slackware official packages sometimes use the Slackware version, third package sources like slackbuilds use their own (SBO).

Are there rules or best practices for TAG's? Under what circumstances should one use a new tag?
Usually tags are used to tell from which repository the package come, or who built the package. SBo means that the package has been built from a SlackBuild available at SBo. But the SBo admins require that if this package is redistributed (made available in a third party repository) the tag be changed as they have no control on how the package was built (which options were used, and possible modification) so they can't take responsibility if this package is "bad".

PS As far as I know genuine Slackware packages do not bear a tag, but in case of patches (packages updated from a previous version originally shipped for a Slackware stable version). For instance patches intended to replace a previous version shipped in Slackware version 15.0 bear the tag _slack15.0 as for instance here.

Last edited by Didier Spaier; 03-24-2024 at 10:56 AM. Reason: PS added.
 
1 members found this post helpful.
Old 03-24-2024, 11:01 AM   #3
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Don't use '-' in a tag or start it with a number as that will cause confusion, but other than that it's pretty much up to you. I'd recommend always starting them with an underscore — it's a common convention and helps with readability — but it's not a hard requirement and not everyone does that.


I use a "_local" tag for all my locally built packages.

Eric tags his packages as "alien".

Pat uses a special tag for any packages he makes available in patches/ .e.g. "_slack15.0" for the Slackware 15.0 patches.

And, as Didier has already mentioned "_SBo" is the default tag used in slackbuilds.org build scripts.
 
1 members found this post helpful.
Old 03-24-2024, 04:03 PM   #4
chemfire
Member
 
Registered: Sep 2012
Posts: 422

Rep: Reputation: Disabled
I like to use my initials for tags ie _rmk (not my real initials) and in a comment before and after any changes I make to 'official scripts'

Its a handy way to spot any customization or alterations I may have done.
 
1 members found this post helpful.
Old 03-25-2024, 12:31 AM   #5
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,972

Rep: Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551
Quote:
Originally Posted by SlackCoder View Post
Slackware package names are made up a few components, following the format '$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE'.

The purpose of most are clear, PRGNAM (program or application name), ARCH (x86 etc). What is the purpose of 'TAG'? Slackware official packages sometimes use the Slackware version, third package sources like slackbuilds use their own (SBO).

Are there rules or best practices for TAG's? Under what circumstances should one use a new tag?
This is my self imposed rules, view of on this subject.

A tag is a mechanism to identify packages that are not part of the base Slackware tree (main tree, extra, pasture and testing). None of those packages have tags. Packages in patches on the other hand are base packages with patches applied. In general a patched package will have the same package name as the base package with the addition of the tag (_slack15.0 for Slackware 15.0 packages) to identify the package as a patched package.

With the exception of patches all packages with tags are third party packages. If I build a package using my own SlackBuild, that package will have the tag "cgs". If I build it, I tag it. This also applies to base Slackware package in which I modify the SlackBuild script. I will add a tag. As an example, I use the Slackware source SlackBuild for mozilla-firefox to build the standard release vice esr. The only modification I make to the SlackBuild script is to change "BUILD=${BUILD:-1}" to "BUILD=${BUILD:-1cgs}". Another example, I used to rebuild imagemagick-7.1.1_29-x86_64-1.txz so it will pick up libheif. The resulting package was imagemagick-7.1.1_29-x86_64-1cgs.txz.

I currently have packages on this system with the tags compat32 (262), alien (26), mt (1), me (1) and cgs (186).

Last edited by chrisretusn; 03-25-2024 at 12:34 AM.
 
2 members found this post helpful.
Old 03-25-2024, 01:15 PM   #6
SlackCoder
Member
 
Registered: Nov 2020
Posts: 40

Original Poster
Rep: Reputation: Disabled
Thanks guys
 
  


Reply



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] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
ctags,tags and TAGS ,different inode,different file name,but seems same file hereisanan Linux - Server 5 05-14-2018 06:54 PM
[SOLVED] mp3 tags inconsistency between Linux and Sansa Fuze (mp3 tags editing software?) Hungry ghost Linux - Software 3 12-17-2012 08:09 PM
After Editing Tags with JuK - XMMS do not display tags correctly Artik Linux - Software 0 07-23-2005 05:55 AM

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

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