Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-30-2013, 01:17 AM
|
#1
|
Member
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909
Rep:
|
MPlayer.SlackBuild fails on line 382
Quote:
./MPlayer.SlackBuild: line 382: cd: /tmp/build/package-MPlayer/usr/share/mplayer/skins: No such file or directory
./MPlayer.SlackBuild FAILED at line 382!
|
/usr/share/mplayer/skins directory does exist.
Quote:
# Install our default skin:
cd $PKG/usr/share/mplayer/skins ->line 382
tar -xvf ${SOURCE[1]}
chown -R root:root *
chmod -R u+w,go+r-w,a+X-s *
ln -s ${DEFSKIN} default
cd -
|
So what is wrong with line 382 or above script? Any help is appreciated thank you.
|
|
|
12-30-2013, 01:50 AM
|
#2
|
Member
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328
Rep:
|
Check for /tmp/build/package-MPlayer/usr/share/mplayer/skins directory
Otherwise, do
mkdir -p $PKG/usr/share/mplayer/skins
before line 382
|
|
|
12-30-2013, 11:58 AM
|
#3
|
Member
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909
Original Poster
Rep:
|
Thank you gengisdave,
I had a look @ /tmp/build/package-MPlayer/usr/share/mplayer/skins directory:
I thought it was a syntax problem in MPlayer.SlackBuild on Line-382 -> cd $PKG/usr/share/mplayer/skins thought space was missing between $PKG /usr/share/mplayer/skins -> so i added the space?
Everything went fine until - Line 469:
./MPlayer.SlackBuild FAILED at line 469!
Code:
| grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null )
What does this mean? Also, what do these 2 symbols mean together: !=
Going to go back and try your solution, now.
|
|
|
12-30-2013, 12:31 PM
|
#4
|
Member
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909
Original Poster
Rep:
|
Tried gengisdave's much appreciated solution by adding his line just above line 382, after removing the space I had added between $PKG/usr/share/mplayer/skins.
Build still failed on Line 470 originally Line 469:
Quote:
| grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null )
|
?
|
|
|
12-30-2013, 01:43 PM
|
#5
|
Member
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328
Rep:
|
this is the strip moment of a slackbuild, complete line is
Code:
cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d....
i looked at the original mplayer.slackbuild, the line before ends with '\', so your line 469 is the pipe continuing from line 468
Code:
( find $PKG | xargs file | grep -e "executable" -e "shared object" \
| grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null )
a '\' character at the end of a line in a bash script means "next line is still a part of this command line, but it's more readable then writing on a single line"; note the two spaces on the second line meaning a sort of indentation
|
|
|
12-30-2013, 02:07 PM
|
#6
|
MLED Founder
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453
|
Quote:
Originally Posted by NightSky
Everything went fine until - Line 469:
./MPlayer.SlackBuild FAILED at line 469!
Code:
| grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null )
What does this mean? Also, what do these 2 symbols mean together: !=
Going to go back and try your solution, now.
|
This looks like the result of text wrapping. Let's say you use Vim with something like :set textwidth=79 (which is what I use). You open the script, edit a line, but it gets wrapped... and produces the error above.
With Vim, the solution would be to open your file and then immediately use :set textwidth=0 to disable wrapping. Or you know what you are doing, and then you can wrap the text without forgetting the '\' at the end of the line.
Cheers,
Niki
|
|
|
12-30-2013, 02:52 PM
|
#7
|
Member
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909
Original Poster
Rep:
|
Appreciate your explanations - been piecing it together thru searches & checking back in here. Is the wrapping causing the piping part of the line to fail?
I logout of X and log back in as root then cd /home/user/Build to run script. I use vi to edit, so I can set vi with is command :set textwidth=0 ? will that make the script run smoother? Going to try it.
|
|
|
12-30-2013, 07:06 PM
|
#8
|
Member
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909
Original Poster
Rep:
|
slackbuild chokes at the end - Line 470 - Stripping Pipe
Build fails at line 470! Build still choking on the piping part & end of line 469 at end of Build Script (
I'm going to try editing the line so that it breaks in a different place. Unfortunately it is trial & error. Thanks everyone & a Healthy New Year.
Last edited by NightSky; 12-30-2013 at 09:51 PM.
Reason: Stuck
|
|
|
01-01-2014, 07:59 PM
|
#9
|
Member
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909
Original Poster
Rep:
|
Going to mark this thread as solved - although I'm not sure why the build was failing on lines 382 and 469. The solution was to intall libdvdcss and then MPlayer 20110624 pkg I'd previously built without dvdcss support. Did learn more about the slackbuild script & process - much appreciate all the support. MPlayer is working fine. A Peaceful & Healthy New Year to the slackware, linux, & world community.
|
|
|
All times are GMT -5. The time now is 04:07 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|