Off-Topic > SCM EXtensions
getFlash11.scm Bug
Jason W:
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.
SamK:
--- Quote from: Jason W on June 21, 2012, 09:40:19 AM ---Added the creation of a dep file...
--- End quote ---
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)
--- Code: ---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
--- End code ---
--- Code: ---ls -1 /apps
bin/
etc
flash11/
gtk2/
opera-11/
share
--- End code ---
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
AbNoRMiS:
in getflash11.sh code need to change flash to flash11
--- Quote ---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
--- End quote ---
p.s.1
may be better if change this line
--- Code: ---cp -a /apps/getFlash11/share/files/flash11.scm.dep "$TCEDIR"/optional/ > /dev/null 2>&1
--- End code ---
to the following
--- Code: ---echo "gtk2.scm" > flash11.scm.dep
--- End code ---
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
--- Code: ---grep -q flash11 "$TCEDIR"/scmboot.lst || echo "flash11" >> "$TCEDIR"/scmboot.lst
--- End code ---
p.s.3
it would be nice also remove unwanted warnings
about not permitted operations for fat filesystems
--- Quote ---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
--- End quote ---
p.s.4
three points of getflash11.sh has call the function exit_red when errors but this function is missing
Jason W:
Ok, I will address this today.
AbNoRMiS:
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
--- Code: ---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
--- End code ---
immediately load it for example as here
--- Code: ---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
--- End code ---
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
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version