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


Closed Thread
  Search this Thread
Old 02-04-2015, 08:56 PM   #16
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492

The libgdiplus slackbuild is broken if $LIBS shell variable is set. The quick fix should be turned into a full fix.
https://www.linuxquestions.org/quest...ls-4175529346/
 
Old 02-05-2015, 03:00 AM   #17
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
is that ($LIBS) a standard env variable?
 
Old 02-05-2015, 03:30 AM   #18
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by willysr View Post
is that ($LIBS) a standard env variable?
it depends what you mean by "standard". I don't know how often if it used in Makefiles, but it's not listed among the "variables that are frequently exported by widely used command interpreters and applications" according to the Environment Variables chapter in the current the POSIX specification.
 
Old 02-05-2015, 10:49 AM   #19
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by willysr View Post
is that ($LIBS) a standard env variable?
How is that relevant to the issue at hand ? It is picked up by the configure file, and if you use sed later it messes things up. Using sed here is not the right fix, it's a quick fix.
 
Old 02-05-2015, 11:40 AM   #20
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
sorry metaschima, but 55020 already gave you the answer in the other thread: I think too the sed is the correct fix there.

if you export in your ~/.bashrc a custom LIBS variable trying to fix some underlinking situations you have to deal with it later: IMHO you should patch the scripts that cause underlinking errors instead and not exporting a custom LIBS variable that will make a lot of libraries/application link to unneded stuff.
 
Old 02-05-2015, 11:49 AM   #21
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Quote:
Originally Posted by ponce View Post
but at SBo we don't support fakeroot for building so, IMHO, there's nothing to be fixed.
of course there is.
Code:
mkdir: cannot create directory '/usr/lib64/lua': Permission denied
or is it totally ok and accepted by SBo that a buildscript does something it should not do, like creating dirs and writing stuff in you root directory?
a failure like this should not exist, it is juts an other prove that the 'it is ok to do it as root' approach as currently propagated is broken.
 
1 members found this post helpful.
Old 02-05-2015, 12:08 PM   #22
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by ponce View Post
sorry metaschima, but 55020 already gave you the answer in the other thread: I think too the sed is the correct fix there.

if you export in your ~/.bashrc a custom LIBS variable trying to fix some underlinking situations you have to deal with it later: IMHO you should patch the scripts that cause underlinking errors instead and not exporting a custom LIBS variable that will make a lot of libraries/application link to unneded stuff.
Except that a lot of programs won't build unless they have '-lm -ldl'. Originally, I exported this manually for every program, but having gotten sick of that I exported the LIBS variable. I don't see anything particularly wrong with that. Why is 'sed' the correct fix again ? It clearly fails if LIBS is set. It cannot be the correct solution if it fails in set cases.
 
Old 02-05-2015, 12:11 PM   #23
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
Quote:
Originally Posted by a4z View Post
of course there is.
Code:
mkdir: cannot create directory '/usr/lib64/lua': Permission denied
or is it totally ok and accepted by SBo that a buildscript does something it should not do, like creating dirs and writing stuff in you root directory?
a failure like this should not exist, it is juts an other prove that the 'it is ok to do it as root' approach as currently propagated is broken.
That type of error should be stated when the bug report is filed (it wasn't mentioned when rg3 posted in this thread), and that type of error isn't something you need fakeroot to determine, so the fact that fakeroot builds aren't supported has nothing to do with the bug. The bug can be found by running the script as a regular user rather than root. When that issue is brought forward, I doubt the SBo maintainers would ignore it.

If you can produce errors in a non-standard environment (in this case, using fakeroot), try to produce the errors in a standard environment to see if it is a fakeroot problem, or a script/program problem. It's the same reason it is difficult to diagnose Salix from a Slackware perspective. It could very well be an issue with a Slackware package, but it could also be a dependency problem or a problem with Salix itself. They can't be expected to support everything, so the SBo maintainers have determined that they aren't supporting alternative build options like fakeroot. Try your problem again and see if it can be reproduced without using fakeroot (ie, try building as a normal user), then if the problem is still there, let them know.

I don't blame them for ignoring the error if someone states they use fakeroot. We did the same thing on the CyanogenMod forum when people posted about CM issues when they were using 3rd party kernels. They needed to replicate the issue with the stock kernel before CM devs would even bother to look at it, otherwise they could be taking valuable time to find a fix for something that was created by a kernel they have no control over (and that they can't fix with their software since it needs to be fixed by the kernel dev).
 
Old 02-05-2015, 12:31 PM   #24
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
a build script that creates anything outside it's allowd directories in tmp is buggy, there is no discussion.

using fakeroot is not a feature, if your build scrips has no bugs it just works, selling it as a feature is ridiculous.

using it can help avoid such bugs, you can use also one of the other methods we have recently discussed, chroot env, and even work as root to avoid such bugs.

doing nothing and ignore that such bugs exist is not good.
declaring fakeroot as a feature is absurd

as long as such bugs exist SBo quality control is buggy, as long as they do not use fakeroot or one of the other methodes they will stay buggy because nobody, not even they guys at SBo, is perfect, is was proven more than once.
 
2 members found this post helpful.
Old 02-05-2015, 12:35 PM   #25
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Quote:
Originally Posted by a4z View Post
Quote:
Originally Posted by ponce View Post
but at SBo we don't support fakeroot for building so, IMHO, there's nothing to be fixed.
of course there is.
Code:
mkdir: cannot create directory '/usr/lib64/lua': Permission denied
what you are reporting is not what has been by rg3 and I'll take care of fixing it.

Quote:
Originally Posted by a4z View Post
nobody, not even they guys at SBo, is perfect, is was proven more than once.
I think the contrary has never been stated.

Last edited by ponce; 02-05-2015 at 12:49 PM. Reason: EDIT: I hadn't understood at first the sense of bassmadrigal's post: when I realized it I've removed the quote
 
Old 02-05-2015, 12:45 PM   #26
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by a4z View Post
as long as such bugs exist SBo quality control is buggy, as long as they do not use fakeroot or one of the other methodes they will stay buggy because nobody, not even they guys at SBo, is perfect, is was proven more than once.
As stated a couple of times before - SBo follows the way of working of Slackware itself if it comes to package building.
No amount of lobbying for fakeroot will change that.
If a SlackBuild submitter wants to QA-test his script using fakeroot, then that is OK of course. But the SBo submissions are what they are and fakeroot support is not added in as a feature.
 
Old 02-05-2015, 12:52 PM   #27
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
@a4z, if there is a problem with the build script operating outside of the package/build directories, then that should be brought up, but fakeroot doesn't NEED to be a part of that discussion. "I found that the lua build script is attempting to use /usr/lib64/lua instead of $PKG/usr/lib64/lua" Simple, concise, and pertinent. There's no need to mention that you use fakeroot, that you have all the dependencies required, or that your dog recently turned 7. fakeroot can certainly be used as a tool to find issues with build scripts, but it doesn't need to be mentioned when filing the bug report.

@ponce, yes, I realize that slackbuilds aren't designed to be built as users (since the chown would fail), but if it fails due to trying to create or modify a directory inside the regular filesystem instead of in the package directory, it seems you'd be more than willing to get that issue fixed in the scripts (correct me if I'm wrong -- but it seems to be the recommended test to make sure running as root won't wreak havoc on your system (FAQ #11)). If that isn't fixed, it could cause issues if a user wants to use one machine (or virtual machine) as a build box and then try and transfer that resulting package to another machine (which I do a lot, since I have one machine that is substantially faster than my others).
 
Old 02-05-2015, 12:59 PM   #28
slacktroll
Member
 
Registered: May 2011
Distribution: Slackware64/current
Posts: 175

Rep: Reputation: 44
rtorrent/libtorrent doesn't need libsigc++ anymore. already mailed maintainer.
 
Old 02-05-2015, 01:13 PM   #29
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Quote:
Originally Posted by Alien Bob View Post
As stated a couple of times before - SBo follows the way of working of Slackware itself if it comes to package building.
No amount of lobbying for fakeroot will change that.
If a SlackBuild submitter wants to QA-test his script using fakeroot, then that is OK of course. But the SBo submissions are what they are and fakeroot support is not added in as a feature.
something as a fakeroot support does not exist, is this so hard to understand?
arguing with a 'fakeroot support' or a 'fakeroot feature' is therefore absurd.
arguing for bug free build scripts not.

you can call arguing for more QA as lobbying, but I do see nothing bad in this (especially because it is proven that bugs exist)
 
Old 02-05-2015, 02:06 PM   #30
rg3
Member
 
Registered: Jul 2007
Distribution: Fedora
Posts: 527

Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
re-reading my answer I think that, aided by my bad english, I may have sounded rude: it wasn't my intention at all, I hope you understand

consider that I'm still thinking, when I'll find enough spare time to test stuff depending on it too, of reworking lua build scripts for trying to have multiple lua version installed together: it could be that the new ones will accidentally work also with fakeroot, who knows!
Don't worry, it didn't sound rude.

Now, specifically, I made a quick comment in this thread because I wasn't sure the mail had arrived or been read. In doing so, I omitted most of the details, but in the mail I sent I did explain the installation phase was writing outside the temporary directories, and I saw that because I use fakeroot. I build packages as a separate non-root user in my system because that's my personal policy. I think it's acceptable to require root, though.
 
  


Closed Thread



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] SBO request: CDE wigry Slackware 23 05-05-2014 06:35 AM
Nvidia-driver.SlackBuild from SBo (or: I am a bad and sloppy SBo maintainer) kingbeowulf Slackware 8 08-31-2012 02:41 AM
Opera 10.01 in SBo hitest Slackware 2 11-09-2009 02:14 PM
Bug in 8.04, fixed in 8.10 - How to get fixed in 8.04 which is LTS? taylorkh Ubuntu 4 02-28-2009 05:17 PM
UNresolved and Fixed issue thread marking abs LQ Suggestions & Feedback 8 02-13-2004 04:15 AM

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

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