Tiny Core Linux
Off-Topic => Archive / Obsolete => SCM EXtensions => Topic started by: SamK on June 17, 2012, 11:00:27 AM
-
Yesterday
getFlash11.tcz was used to create flash11.tcz. This works OK in opera-11.scm.
Today
getFlash11.scm was used to create flash.scm. This fails in opera-11.scm.
getflash11.sh --available
Available versions for install:
11.2.202.228 11.1.102.63 11.1.102.62 11.0.1.152 11.1.102.55
A flash scm was built for each of the available versions. They all fail to show Flash content.
I looked inside the flash11.tcz but cannot find any version information.
-
curiously because i created flash.scm by default without selecting versions
and this works in opera-11.scm, seamonkey.scm and midori.scm
-
curiously because i created flash.scm by default without selecting versions
and this works in opera-11.scm, seamonkey.scm and midori.scm
I also created it using the default without specifying a version, but this also does not work with opera-11.scm.
-
perhaps such difference also exist because i still use gtk2.tcz instead gtk2.scm ?
-
getFlash.scm and it's resulting flash.scm works fine with opera-11 here.
-
I looked inside the flash11.tcz but cannot find any version information.
Try:
grep 'Shockwave Flash 1' libflashplayer.so
-
getFlash.scm and it's resulting flash.scm works fine with opera-11 here.
I have re-run the tests while trying to reduce the number of variable elements as follows:
* opera11.tcz and opera11.scm were used for direct comparison
* flash11.tcz was rebuilt today (v11.2.202.236)
* flash.scm was rebuilt today (default - is this v11.2.202.228 as latest shown by --available)
* The progs loaded were minimized as shown in each test
* The same youtube video about TC was used http://www.youtube.com/watch?v=AEwr6Mvyx9s
* The machine was rebooted between each test
TEST1
cat /mnt/sdb1/tce/onboot.lst
Xvesa.tcz
Xprogs.tcz
kmaps.tcz
icewm.tcz
OSS.tcz
opera-11.tcz
flash11.tcz
cat /mnt/sdb1/tce/scmboot.lst
empty
Result: Works
Screenshot: opera-11.tcz+flash.tcz.jpg
TEST2
cat /mnt/sdb1/tce/onboot.lst
Xvesa.tcz
Xprogs.tcz
kmaps.tcz
icewm.tcz
OSS.tcz
opera-11.tcz
cat /mnt/sdb1/tce/scmboot.lst
flash
Result: Fails
Screenshot: opera-11.tcz+flash.scm.jpg
TEST3
cat /mnt/sdb1/tce/onboot.lst
Xvesa.tcz
Xprogs.tcz
kmaps.tcz
icewm.tcz
OSS.tc
cat /mnt/sdb1/tce/scmboot.lst
opera-11
flash
Result: Fails
Screenshot: opera11.scm+flash.scm.jpg
TEST4
cat /mnt/sdb1/tce/onboot.lst
Xvesa.tcz
Xprogs.tcz
kmaps.tcz
icewm.tcz
OSS.tcz
flash11.tcz
cat /mnt/sdb1/tce/scmboot.lst
opera-11
Result: Works
Screenshot: opera11.scm+flash11.tcz.jpg
In the tests using flash-11.tcz always works irrespective of the browser format. Using flash.scm always fails irrespective of the browser format. Is this is due to a difference in version of flash used during the builing of the scm/tcz?
When building the tcz flash the version number is displayed. The scm version does not. Is the same version used for both builds? The scm --available does not list the version used by the tcz. Does the default scm build always download the latest published version?
Would it be possible to test using a limited number of programs loaded such as I used? Perhaps OSS and keymaps may be omitted.
-
Uhmm... what about loading gtk2?
-
It is assumed that gtk2.scm will be loaded when using flash.scm. But I will make part of the getflash script create a flash.scm.dep file so when flash.scm is loaded it will also load gtk2.scm.
Looking at the onboot.lst and scmboot.lst above, missing gtk2 is the obvious culprit.
-
It is assumed that gtk2.scm will be loaded when using flash.scm.
The requirement appears to be most obvious from the .info
But I will make part of the getflash script create a flash.scm.dep file so when flash.scm is loaded it will also load gtk2.scm.
Looking at the onboot.lst and scmboot.lst above, missing gtk2 is the obvious culprit.
IMHO making gtk2.scm a mandatory dependency would result in a huge penalty for all users having gtk2.tcz already installed.
By my estimation the amount of users loading gtk2.tcz anyway and occasionally wanting to make use of flash.scm may not be negligible.
-
On second thought you are right, I will keep gtk2 as a mention in the info file.
-
IMHO making gtk2.scm a mandatory dependency would result in a huge penalty for all users having gtk2.tcz already installed.
By my estimation the amount of users loading gtk2.tcz anyway and occasionally wanting to make use of flash.scm may not be negligible.
now i have installed only gtk2.tcz because some extensions require its
and when i install any scm that requires gtk2.scm ie has it in its dep-file
then gtk2.scm even do not downloads and these scm are correctly use gtk2.tcz instead gtk2.scm
this provided in the script code /usr/bin/scm-load to avoid unnecessary downloads and overhead
p.s.
it seems to me that by getflash script creation flash.scm.dep with gtk2.scm do not be superfluous
but even contrary will prevent user mistakes
-
It is assumed that gtk2.scm will be loaded when using flash.scm.
I completely overlooked this when I read the info file to find the use of the --available switch. It does indeed work when gtk2 is loaded. I just didn't connect the dots when moving the scm and md5.txt files from /tmp... that a dep file had not been created.
On second thought you are right, I will keep gtk2 as a mention in the info file.
This seems a curious decision. Other scms that require gtk2 (or gtk3) are already in the repo that specify them as dependencies. It seems to break a central objective of the scm format to leave out of an scm app something that is an absolute requirement for it to fulfill its purpose. The result is that the application is no longer self-contained.
IMHO making gtk2.scm a mandatory dependency would result in a huge penalty for all users having gtk2.tcz already installed.
By my estimation the amount of users loading gtk2.tcz anyway and occasionally wanting to make use of flash.scm may not be negligible.
now i have installed only gtk2.tcz because some extensions require its
and when i install any scm that requires gtk2.scm ie has it in its dep-file
then gtk2.scm even do not downloads and these scm are correctly use gtk2.tcz instead gtk2.scm
this provided in the script code /usr/bin/scm-load to avoid unnecessary downloads and overhead
p.s.
it seems to me that by getflash script creation flash.scm.dep with gtk2.scm do not be superfluous
but even contrary will prevent user mistakes
In view of this report it would seem the most favourable outcome will be obtained by listing gtk2 as a dependency of flash.scm
Edit
fix typos
-
Ok, I see the point, and having gtk2.scm in the dep file would be in line with the other apps as it is an absolute need.
-
Ok, I see the point, and having gtk2.scm in the dep file would be in line with the other apps as it is an absolute need.
Thanks.
One small matter relating to the info file, it shows an incorrect command.
getFlash11.sh --available
sh: getFlash11.sh: not found
getflash11.sh --available
Available versions for install:
11.2.202.228 11.1.102.63 11.1.102.62 11.0.1.152 11.1.102.5
-
Added the creation of a dep file, copied to tcedir/optional on every run, as that's the only way to reflect an updated flash11.scm.dep file. Also, renamed flash.scm to flash11.scm to be consistent.
If flash11.scm already is in your tcedir/optional directory, the new flash11.scm will get copied to tcedir/optional/upgrade so it will be upgraded on next boot. Otherwise, it gets automatically moved to your tcedir/optional.
-
Added the creation of a dep file...
Reporting disappointing news.
TEST1
Removed the previous version of getFlash11.scm.
Install newest version of getFlash11.scm
Built flash11.scm (no version specified i.e. mimic previous successful build)
ls -1 /usr/local/tce.installed
OSS
OSS-modules-3.0.21-tinycore
Xlibs
Xorg-7.6-lib
Xprogs
Xvesa
expat2
fltk-1.10
fontconfig
jwm
kmaps
libfltk-xft
ls -1 /apps
bin/
etc
flash11/
gtk2/
opera-11/
share
Start opera and youtube address shown in reply #6
Result: Content fails to display showing the same error message shown in reply #6 screenshots (i.e. when gtk2 was not being loaded).
TEST2
Uninstalled flash11.scm
Installed previously working flash.scm
Start opera and youtube address shown in post #6
Result: Content displays as expected.
TEST3 and TEST4
Repeated TEST1 and TEST2 using firefox.scm in place of opera-11.scm
Results:
- Fail using flash11.scm (wants to install additional plugin)
- Success using flash.scm
Edit:
Tentative conclusion, the gtk2 dep is working, the issue is with flash11.scm
-
in getflash11.sh code need to change flash to flash11
echo "[ -f /usr/lib/libflashsupport.so ] || ln -s /apps/flash11/share/libflashsupport.so /usr/lib/libflashsupport.so" >> "$PKG"/config/install
echo "[ -d /usr/local/lib/mozilla/plugins ] || mkdir -p /usr/local/lib/mozilla/plugins" >> "$PKG"/config/install
echo "ln -s /apps/flash11/share/libflashplayer.so /usr/local/lib/mozilla/plugins/" >> "$PKG"/config/install
echo "## Support mozillas that do not have /usr/local/lib/mozilla plugins specified as a plugin dir." >> "$PKG"/config/install
echo "[ -d /usr/lib/mozilla ] || mkdir -p /usr/lib/mozilla" >> "$PKG"/config/install
echo "[ -e /usr/lib/mozilla/plugins ] || ln -s /usr/local/lib/mozilla/plugins /usr/lib/mozilla/plugins" >> "$PKG"/config/install
echo "##" >> "$PKG"/config/install
p.s.1
may be better if change this line
cp -a /apps/getFlash11/share/files/flash11.scm.dep "$TCEDIR"/optional/ > /dev/null 2>&1
to the following
echo "gtk2.scm" > flash11.scm.dep
and remove /apps/getFlash11/share/files/flash11.scm.dep from getFlash11.scm
p.s.2
and can be added to the end of getflash11.sh
grep -q flash11 "$TCEDIR"/scmboot.lst || echo "flash11" >> "$TCEDIR"/scmboot.lst
p.s.3
it would be nice also remove unwanted warnings
about not permitted operations for fat filesystems
if [ ! -f "$TCEDIR"/optional/flash11.scm ]; then
mv "$TMPDIR"/flash11.scm* "$TCEDIR"/optional/ > /dev/null 2>&1
else
if [ ! -d "$TCEDIR"/optional/upgrade ]; then
mkdir -p "$TCEDIR"/optional/upgrade
fi
mv "$TMPDIR"/flash11.scm* "$TCEDIR"/optional/upgrade/ > /dev/null 2>&1
fi
p.s.4
three points of getflash11.sh has call the function exit_red when errors but this function is missing
-
Ok, I will address this today.
-
another two thoughts come to mind
first
what if instead of simply putting flash11.scm
into /etc/sysconfig/tcedir/optional or /etc/sysconfig/tcedir/optional/upgrade
if [ ! -f "$TCEDIR"/optional/flash11.scm ]; then
mv "$TMPDIR"/flash11.scm* "$TCEDIR"/optional/
else
if [ ! -d "$TCEDIR"/optional/upgrade ]; then
mkdir -p "$TCEDIR"/optional/upgrade
fi
mv "$TMPDIR"/flash11.scm* "$TCEDIR"/optional/upgrade/
fi
immediately load it for example as here
echo "${BLUE}Installing scm extension to "$TCEDIR"...${NORMAL}"
grep -q flash11 "$TCEDIR"/scmboot.lst || echo "flash11" >> "$TCEDIR"/scmboot.lst
if [ -d /apps/flash11 ]; then
if scm-load -r flash11.scm; then
mv "$TMPDIR"/flash11.scm* "$TCEDIR"/optional >/dev/null 2>&1
echo -n "${GREEN}" && scm-load -i flash11.scm && echo -n "${NORMAL}"
else
[ -d "$TCEDIR"/optional/upgrade ] || mkdir -p "$TCEDIR"/optional/upgrade
mv -f "$TMPDIR"/flash11.scm* "$TCEDIR"/optional/upgrade >/dev/null 2>&1
echo "${GREEN}Extension ${YELLOW}flash11.scm${GREEN} will be installed after reboot${NORMAL}"
fi
else
mv "$TMPDIR"/flash11.scm* "$TCEDIR"/optional >/dev/null 2>&1
echo -n "${GREEN}" && scm-load -i flash11.scm && echo -n "${NORMAL}"
fi
and second
assume that flash11.scm was created
with the dep-file which contains gtk2.scm
but if before this time gtk2.scm or gtk2.tcz
not been downloaded into /etc/sysconfig/tcedir/optional
then flash11.scm could not be loaded
to avoid this
gtk2.scm should be downloaded by getflash11.sh
or included to getFlash11.scm.dep
-
Ok, to sum up the changes I will make:
1. Make gtk2.scm a dep of getFlash11.scm since it is needed by the end product, and use a flash11.scm.dep that includes gtk2.scm so gtk2.scm will be loaded any time flash11 is loaded.
2. echo "gtk2.scm" > flash11.scm.dep, a little time away and I forget some of the basics.
3. I don't want to immediately load the updated flash and move files around, as it surpasses the level of complexity I want, and also flash may be running, which would have to be considered.
4. I will add the "> /dev/null 2>&1" to quiet unnecessarily echoed errors.
5. I will add in the exit_red function.
-
Uploaded, thanks for the feedback.
-
Uploaded, thanks for the feedback.
Removed getFlash11 and flash-11
Installed newest version getFlash11
Built flash11
Unfortunately cannot get the flash content to display in either Firefox or Opera-11.
-
oops...
should be added the libraries path /apps/flash11/lib
to export LD_LIBRARY_PATH in all browsers
because otherwise the libraries can not be found
$ ldd /apps/flash11/share/libflashplayer.so | grep found
libssl3.so => not found
libsmime3.so => not found
libnss3.so => not found
libnssutil3.so => not found
libplds4.so => not found
libplc4.so => not found
libnspr4.so => not found
or abandon the idea of renaming flash to flash11
sed -i "s/flash11/flash/g" getflash11.sh
because otherwise it will need to add library path related to each flash version
for example for flash12 when it will be realized
or need to make dummy lib link
echo "[ ! -d /apps/flash ] && mkdir -p /apps/flash && ln -s /apps/flash11/lib /apps/flash" >> "$PKG"/config/install
echo "[ -f /usr/lib/libflashsupport.so ] || ln -s /apps/flash11/share/libflashsupport.so /usr/lib/libflashsupport.so" >> "$PKG"/config/install
echo "[ -d /usr/local/lib/mozilla/plugins ] || mkdir -p /usr/local/lib/mozilla/plugins" >> "$PKG"/config/install
echo "ln -s /apps/flash11/share/libflashplayer.so /usr/local/lib/mozilla/plugins/" >> "$PKG"/config/install
echo "## Support mozillas that do not have /usr/local/lib/mozilla plugins specified as a plugin dir." >> "$PKG"/config/install
echo "[ -d /usr/lib/mozilla ] || mkdir -p /usr/lib/mozilla" >> "$PKG"/config/install
echo "[ -e /usr/lib/mozilla/plugins ] || ln -s /usr/local/lib/mozilla/plugins /usr/lib/mozilla/plugins" >> "$PKG"/config/install
echo "##" >> "$PKG"/config/install
that looks not very "aesthetically" :) in terms of self-contained modules
and it would be right if add to the end of getflash11.sh the next rows
read -sp "${WHITE}Press any key to exit...${NORMAL}" -n1 -t15
echo
to enable the user could see the latest shown report about installing or upgrading flash
p.s.
forgot to remove folder /apps/getFlash11/share/files with flash11.scm.dep from getFlash11.scm
and fix getFlash11.sh to lower case getflash11.sh in the getFlash11.scm.info
-
Ok, renaming back to flash from flash11 to keep library paths sane in browsers. The latest flash is assumed, regardless of version 11, 12, etc, if folks want other flash than current major version they can get it from adobe.
Will remove the unneeded dep file inside the extension and fix typos in the info file.
-
Ok, renaming back...
Reporting success. Tested and found working in Firefox and Opera-11 SCMs. Thanks.
-
finally by common efforts we did it :D
tonight i'll also try it when i'll come home
-
Thanks again for the testing and solutions.