LinuxQuestions.org
Help answer threads with 0 replies.
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 05-30-2014, 05:39 AM   #16
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,842

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850

As a side note, I wish the various SlackBuilds would use the .bin file as a source instead of the .tar.bz2 file, since it is approximately 13.5 Mb smaller due to use of LZMA compression (the same type of high compression used in 7z and xz files).

The .bin actually has a .tar.lzma archive inside it with the exact same files as the .tar.bz2 that is currently used as a source. The contents of this compressed tar can be extracted by either of the following commands:

Code:
$ tail -c+6889 AdbeRdr9.5.5-1_i486linux_enu.bin | bsdtar xvf -
Code:
$ tail -c+6889 AdbeRdr9.5.5-1_i486linux_enu.bin | xz -qqd | tar xv
The value 6889 marks the start of LZMA compressed tar. This value has not changed in all releases of Acroread since .bin files where first offered (i.e. AdbeRdr9.1.0-1_i486linux_enu.bin from February 2009), so it should be relatively safe just to hardcode this value.

For background, I calculated it by using a Regex to search for the start of a typical LZMA stream and printing its position, like so (adding 1 to the resultant value.):

Code:
$ grep -Pabom1 ']\x00{2}.{4}\xff{6}' AdbeRdr9.5.5-1_i486linux_enu.bin
6888:]�������
I did once suggest this (approximately 8 months) to the maintainer for the SBo SlackBuild but never heard back (although the Arch PKGBUILD maintainer did take my suggestion). Here is a suggested patch to the SBo SlackBuild:

Code:
--- adobe-reader.SlackBuild.orig        2013-11-26 10:57:40.000000000 +0100
+++ adobe-reader.SlackBuild     2014-05-30 12:57:23.000000000 +0200
@@ -46,7 +46,7 @@
 mkdir -p $TMP $PKG $OUTPUT
 cd $TMP
 rm -rf AdobeReader
-tar xvf $CWD/AdbeRdr${VERSION}-1_${ARCH}linux_${ADOBE_LANG}.tar.bz2
+tail -c+6889 $CWD/AdbeRdr${VERSION}-1_${ARCH}linux_${ADOBE_LANG}.bin | bsdtar xvf -
 
 VERSION=${VERSION}_$ADOBE_LANG
P.S. I learnt the trick of finding compressed files within another file when I once attempted to make the smallest possible rpm2cpio in shell script. I managed it in 8 lines.

Last edited by ruario; 05-31-2014 at 01:42 AM. Reason: added in the example patch; switched to using bsdtar as it makes for a simpler example
 
1 members found this post helpful.
Old 05-31-2014, 04:55 AM   #17
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,842

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Quote:
Originally Posted by ruario View Post
sbabaro1: Try using the SBo Slackbuild or Adobe's own self installer. Neither of which strip the binaries. I see that the Slacky adobe-reader.SlackBuild does. This German thread on the Arch forums seems to suggest that could be the problem.
@sbabaro1: Curious if this (above) worked out for you. I'm concerned you might have missed this reply following my off-topic response. I have not tested a stripped binary myself but judging by the Arch Linux thread and others I found when Googling the error message you mention, it does seem like stripping might be the cause of your problems.
 
Old 06-03-2014, 04:01 AM   #18
sbabaro1
LQ Newbie
 
Registered: May 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for the reply, I'll test the SBo package soon
I'll be back to confirm if worked
 
Old 06-03-2014, 05:26 AM   #19
sbabaro1
LQ Newbie
 
Registered: May 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
I can confirm that using SBo script, adobe works correctly

thanks all
 
Old 06-03-2014, 10:22 AM   #20
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,842

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Cool, remember to mark the thread as solved!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Acrobat Reader 9 cccc Debian 5 09-25-2010 10:41 AM
Adobe Acrobat Reader (acroread) on Slackware64 BCarey Slackware 4 08-28-2009 09:17 AM
Acrobat Reader unixfreak *BSD 4 07-24-2004 10:15 AM
where is my acrobat reader ycli00 Linux - Networking 4 02-29-2004 07:42 AM
acrobat reader samon Linux - Software 15 02-24-2003 05:56 AM


All times are GMT -5. The time now is 03:30 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration