LinuxQuestions.org
Help answer threads with 0 replies.
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 01-26-2015, 09:27 AM   #91
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,079

Rep: Reputation: Disabled

Quote:
Originally Posted by TobiSGD View Post
Quote:
Originally Posted by allend View Post
When you build a package with a Slackbuild script from SBo, the package should be built in /tmp/SBo unless there is a bug in the script and the final package is stored in /tmp.
Fixed that for you.
Oh man. We all know that anyone can make a mistake, and that a mistake can pass all checks incognito.
So, theoretically you are right.

Now practically, can you give one single example of a package not built in /tmp/SBo? Did you report that case?
 
Old 01-26-2015, 09:39 AM   #92
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 461

Rep: Reputation: 78
Quote:
Originally Posted by Xeratul View Post
Hi Guys,

Many of us heard this:
"Once you go Slack, you never go back"

Is Slack a myth?

Various times I must say, that I had troubles with installing Slack on a recent hardware.
My first Linux was Slack and I learned Debian at school.
Maybe pitty that I used more of Debian rather than Slack.

I turned to Ubuntu, Debian,... Gentoo, and too little of Slack.

Why Slack is still being a Myth compared to Ubuntu and Debian?

Regards
Why Slackers don't ask such questions in the Debian forum?
 
1 members found this post helpful.
Old 01-26-2015, 09:52 AM   #93
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Quote:
Originally Posted by Didier Spaier View Post
Oh man. We all know that anyone can make a mistake, and that a mistake can pass all checks incognito.
So, theoretically you are right.

Now practically, can you give one single example of a package not built in /tmp/SBo? Did you report that case?
well, can you guarantee that this never will happen?
anyway,
writing a build script as root is not a good idea
building packages as root is not a good idea
tools that require and force you to build packages as root are bad and broken by design.
for me,there is nothing to discuss about that, but of course I do not expect that everyone does agree with me about this
 
Old 01-26-2015, 10:00 AM   #94
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by Didier Spaier View Post
Oh man. We all know that anyone can make a mistake, and that a mistake can pass all checks incognito.
So, theoretically you are right.

Now practically, can you give one single example of a package not built in /tmp/SBo? Did you report that case?
No, I personally was not affected by such a bug, though I remember having read something like that on the SBo mailing list (I am to lazy to skim through the complete archive).
But I wasn't personally affected by the bugs in OpenSSL and Bash either, so does that mean that I shouldn't make sure that I will not be affected by those bugs?
The question remains: When it is possible to build all but a few packages (ffmpeg was named here) as non-privileged user, why is building as root still the default and why are the possible consequences of errors that every human can make downplayed with statements like "If you don't trust us GTFO!"?

Last edited by TobiSGD; 01-26-2015 at 12:28 PM. Reason: fixed typo
 
Old 01-26-2015, 11:52 AM   #95
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
fmpeg has a note the you have to run 'in a real root shell ("su -")'
I am sure someone knows why, and I think a some documentation why this is the case in the info file would be an improvement.
the build I had a quick look in the internet say nothing about that.
 
Old 01-26-2015, 01:27 PM   #96
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763
If you don't want to build as root, many (probably most) packages will build under fakeroot, just fine. This is not officially supported by the SBo team but that doesn't mean it doesn't work.

Personally, I create many of the additional packages "by hand" and use an alternative makepkg that supports creating packages with root owned files, when run as a normal user.
 
2 members found this post helpful.
Old 01-26-2015, 03:51 PM   #97
ivandi
Member
 
Registered: Jul 2009
Location: Québec, Canada
Distribution: CRUX, Debian
Posts: 528

Rep: Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866
Quote:
Originally Posted by ruario View Post
Personally, I create many of the additional packages "by hand" and use an alternative makepkg that supports creating packages with root owned files, when run as a normal user.
I simply move chown root:root at the end, just before makepkg
Code:
cd $PKG || exit 1
su -c "chown -R root:root . ; /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz"
It works most of the time. Sure it wont work with packages that have to install binaries owned by system users/groups.

Looking at it objectively, having many different ways of building packages validates my point that extending the default install is inefficient process. And we have many different ways because automated tools like sbopkg run as root and cant be trusted. This is not a complain or bashing. This is the way Slackware works. Many can find it cool to have dozen ways to create a package. Many can trust sbopkg if they like to.

Cheers
 
Old 01-26-2015, 03:52 PM   #98
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,388

Rep: Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764
Quote:
ffmpeg has a note the you have to run 'in a real root shell ("su -")'
I am sure someone knows why, and I think a some documentation why this is the case in the info file would be an improvement.
the build I had a quick look in the internet say nothing about that.
One reason for using 'su -" is the PATH.
As normal user
Code:
PATH=/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/kde4/libexec:/usr/lib64/java/jre/bin:/usr/lib64/qt/bin:/usr/share/texmf/bin
After 'su'
Code:
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin
After 'su -'
Code:
PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/kde4/libexec:/usr/lib64/java/jre/bin:/usr/lib64/qt/bin:/usr/share/texmf/bin
Without /usr/share/texmf/bin in the PATH, documentation may not build correctly, which results in a failure to build the package in the case of ffmpeg.
 
1 members found this post helpful.
Old 01-26-2015, 04:04 PM   #99
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,079

Rep: Reputation: Disabled
For a similar reason, building po4a will fail if not run as root, with root's PATH. I've put a warning about that in the README. About sbopkg the authors already warn users in the home page:
Code:
Please note that while sbopkg has performed well for many users, it is still in a
testing phase. Please do not use in a production environment and please use a separate
copy/mirror of SlackBuilds.org, or at least make a backup of any changes to your local copy/mirror
before using sbopkg.
But there isn't much that can be done to protect users who neglect to read a warning.

Last edited by Didier Spaier; 01-26-2015 at 05:16 PM. Reason: typos corrected
 
1 members found this post helpful.
Old 01-26-2015, 04:59 PM   #100
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by allend View Post
When you build a package with a Slackbuild script from SBo, the package is built in /tmp/SBo and the final package is stored in /tmp. There is no risk until you install the package
This is wrong. One typo in your SlackBuild, one variable that's not set, and your whole package build process happily spams your system. Since your SlackBuild is run as root, imagine what the opening line rm -rf $PKG with an unset PKG can do.

Building packages as root feels a lot like lead climbing. It's fun while you don't make too many mistakes, and some mistakes can hurt badly.
 
2 members found this post helpful.
Old 01-26-2015, 05:07 PM   #101
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,388

Rep: Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764
Quote:
This is wrong. One typo in your SlackBuild, one variable that's not set, and your whole package build process happily spams your system.
I would like to draw a distinction between Slackbuilds from a trusted source like Slackbuilds.org, where there is a strict checking process in place, and building your own Slackbuilds, as you do. Quite naturally, when developing your own , you need to take precautions, such as building on a dedicated development box or within a virtual machine or using some alternative environment.

Last edited by allend; 01-26-2015 at 05:36 PM.
 
Old 01-26-2015, 06:15 PM   #102
ivandi
Member
 
Registered: Jul 2009
Location: Québec, Canada
Distribution: CRUX, Debian
Posts: 528

Rep: Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866
Quote:
Originally Posted by allend View Post
a trusted source like Slackbuilds.org, where there is a strict checking process in place,
That's just another myth.

Cheers
 
Old 01-26-2015, 06:45 PM   #103
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,388

Rep: Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764
I find it hard to believe that the legendary skills of the contributors to Slackbuilds.org are used to build a myth.

Cheers
 
1 members found this post helpful.
Old 01-26-2015, 07:17 PM   #104
ivandi
Member
 
Registered: Jul 2009
Location: Québec, Canada
Distribution: CRUX, Debian
Posts: 528

Rep: Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866
Quote:
Originally Posted by allend View Post
I find it hard to believe that the legendary skills of the contributors to Slackbuilds.org are used to build a myth.
Myths are usually built upon some "legendary" skills. And tend to resist the common sense quite well.

Cheers
 
Old 01-26-2015, 08:22 PM   #105
frodo
LQ Newbie
 
Registered: May 2005
Location: Indiana, U.S.A.
Distribution: Slackware
Posts: 16

Rep: Reputation: 1
Troll feeding alert.
 
1 members found this post helpful.
  


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
Indie Royale "Back To School Bundle" includes "Swords and Solders" dugan Linux - News 0 09-15-2012 05:23 PM
Slack 11 Konqueror: "System:/" shows no icons. How do I get them back MonctonJohn Slackware 0 02-04-2008 07:24 PM
K3b: - Howto re-dock "Directories" and "Contents" windows back into the main window? hagies Linux - Software 4 04-26-2006 08:38 AM
"You always go back to Slack" (ramble) webfiend Slackware 5 07-18-2002 02:59 AM

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

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