LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-30-2013, 12:17 AM   #1
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Rep: Reputation: 55
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.
 
Old 12-30-2013, 12:50 AM   #2
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328

Rep: Reputation: 74
Check for /tmp/build/package-MPlayer/usr/share/mplayer/skins directory

Otherwise, do

mkdir -p $PKG/usr/share/mplayer/skins

before line 382
 
Old 12-30-2013, 10:58 AM   #3
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Original Poster
Rep: Reputation: 55
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.
 
Old 12-30-2013, 11:31 AM   #4
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Original Poster
Rep: Reputation: 55
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 )
?
 
Old 12-30-2013, 12:43 PM   #5
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328

Rep: Reputation: 74
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
 
Old 12-30-2013, 01:07 PM   #6
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 NightSky View Post
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
 
Old 12-30-2013, 01:52 PM   #7
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Original Poster
Rep: Reputation: 55
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.
 
Old 12-30-2013, 06:06 PM   #8
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Original Poster
Rep: Reputation: 55
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 08:51 PM. Reason: Stuck
 
Old 01-01-2014, 06:59 PM   #9
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Original Poster
Rep: Reputation: 55
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.
 
  


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] WebkitGtk Slackbuild fails pcelka Slackware 2 11-03-2012 04:50 AM
FBReader Slackbuild fails bogzab Slackware 3 04-08-2011 09:41 AM
[SOLVED] Conky SlackBuild fails agi93 Slackware 6 07-02-2010 05:21 PM
[SOLVED] Wine Install fails at line 291 - Alien Bob's SlackBuild script Tim Johnson Slackware 14 02-01-2010 11:52 PM
Mplayer from slackbuild Josh000 Slackware 6 12-30-2009 07:27 PM

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

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