Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: SamK on November 01, 2010, 12:28:38 AM
-
In TC3.1, Helix is installed to OnBoot.
Running Helix_Update
This script updates Helix.tcz to include the MP3 plugin
Do you want to continue? [y/n] y
Connecting to forms.real.com (207.188.5.188:80)
Connecting to www.real.com (207.188.5.44:80)
Connecting to client-software.real.com (88.221.88.73:80)
RealPlayer11GOLD.rpm 100% |*******************************| 5768k 00:00:00 ETA
rpm2cpio: no gzip/bzip2/xz magic
cp: can't stat 'opt/real/RealPlayer/plugins/mp3*': No such file or directory
Done!
Go into your tce folder and delete the old Helix.tcz
Then rename Helix.tcz.new as Helix.tcz
You can also delete RealPlayer11GOLD.rpm from your home directory
Reboot and run the updated Helix
Remember to select your ALSA/OSS audio driver in Tools>Preferences>Hardware
Press Enter to finish
Files Obtained
ls Real*
RealPlayer11GOLD.rpm
ls -1l /mnt/hda9/tce/optional/Helix*
-rw-rw-r-- 1 2220032 Oct 31 13:22 /mnt/hda9/tce/optional/Helix.tcz
-rw-r--r-- 1 69 Nov 1 05:32 /mnt/hda9/tce/optional/Helix.tcz.dep
-rw-rw-r-- 1 44 Oct 31 13:17 /mnt/hda9/tce/optional/Helix.tcz.md5.txt
-rw-r--r-- 1 2220032 Nov 1 05:43 /mnt/hda9/tce/optional/Helix.tcz.new
Helix.tcz is then deleted and Helix.tcz.new renamed as Helix.tcz, and the machine is rebooted.
On attempting to play an MP3
The player does not have the capabilities to play back this content.
The content is supported by realplayer
The following components are required: mp3
ls -1 /usr/local/lib/Helix/plugins
audplin.so
aufformat.so
authmgr.so
clbascauth.so
dtdrplin.so
httpfsys.so
hxrecordengine.so
hxsdp.so
hxxml.so
memfsys.so
oggfformat.so
pcmrend.so
ramfformat.so
ramrender.so
sdpplin.so
smplfsys.so
vidsite.so
vorbisrend.so
-
Any suggestions how this problem might be diagnosed/resolved?
My reading is that the update script runs, the update is obtained but is not adding the mp3 capability after restarting with the new Helix.tcz.
Is this the cause?
Abstract from the report produced by the update script detailed in the opening post
rpm2cpio: no gzip/bzip2/xz magic
cp: can't stat 'opt/real/RealPlayer/plugins/mp3*': No such file or directory
-
Try to decompress the rpm yourself...
rpm2cpio RealPlayer11GOLD.rpm | cpio -idv
It seems that either the .rpm file is not valid or the rpm2cpio / cpio mechanism fails for some reason...
-
Try to decompress the rpm yourself...
rpm2cpio RealPlayer11GOLD.rpm | cpio -idv
It seems that either the .rpm file is not valid or the rpm2cpio / cpio mechanism fails for some reason...
The suggested command failed
rpm2cpio RealPlayer11GOLD.rpm | cpio -idv
rpm2cpio: no gzip/bzip2/xz magic
Tried multiple times on multiple different downloads with an unchanged result.
Installed cpio.tcz and repeated the manual decompress, again multiple times, all failed with the same message as shown above.
-
This might be related:
http://forum.tinycorelinux.net/index.php?topic=2325.msg38318#msg38318
-
I have managed to eliminate a corrupt download as the cause of this problem.
Using Lubuntu, a copy of RealPlayer11GOLD.rpm was downloaded and successfully decompressed with the command rpm2cpio RealPlayer11GOLD.rpm | cpio -idv
The rpm file was copied to the home directory in TC3.1 and the command run again. This time it failed:
rpm2cpio: no gzip/bzip2/xz magic
Trying the command a sudo also failed.
The same result was obtained after loading and using the cpio.tcz extension.
-
As far as I can tell the issue here is with the BusyBox 'rpm2cpio', so using the GNU 'cpio' (i.e. the 'cpio.tcz' extenision) would not make any difference.
I had a bit a look into the BusyBox source code and 'RealPlayer11GOLD.rpm'. I've now come to the conclusion that the cpio-archive in that file has been compressed with the LZMA method, which BusyBox 'rpm2cpio' does not "like". It could support gzip, bzip2 or xz, but not lzma (maybe someone wants to raise an enhancement request against 'BusyBox' for that).
I realised that there are other versions of 'rpm2cpio' available via two extenions (i.e. 'file-roller.tcz' and 'xarchiver.tcz'), but looking at the long list of dependencies for each of them I decided to not bother with them. Instead I downloaded 'p7zip.tcz' and was able to use 7z x -so RealPlayer11GOLD.rpm | cpio -idm
I would image that the 'updatehelix' script could be changed to reflect those findings. In which case a cleanup step should also be changed to rm -rf opt usr rules.log to take care of all extracted files from the cpio-archive.
-
I would image that the 'updatehelix' script could be changed to reflect those findings. In which case a cleanup step should also be changed to rm -rf opt usr rules.log to take care of all extracted files from the cpio-archive.
Installing p7zip.tcz and amending the script does work - thanks for the suggestion.
As the updatehelix menu option does not work as described in the info file It might it be a good opportunity to make the workaround a permanent fix by changing the script and dep list?
-
Perhaps a .deb instead of a .rpm could be used in specific case?