Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: robc on February 28, 2012, 11:03:17 PM

Title: getFlash11
Post by: robc on February 28, 2012, 11:03:17 PM
The script should put the updated extension in tce/optional/upgrade to be consistent with the base update.  Also get these errors when ran:
Code: [Select]
cat: can't open '/opt/.tce_dir': No such file or directory
/usr/local/bin/getflash11.sh: line 113: can't create /onboot.lst: Permission denied
Probably because /opt/.tce_dir was replaced with /etc/sysconfig/tcedir

Also, running getflash11.sh from a base norestore boot did not grab the current flash11 version.
Title: Re: getFlash11
Post by: AbNoRMiS on February 29, 2012, 08:40:10 AM
it seems that you have to do the following after upgrade tcl version
Team Tiny Core is proud to announce the release of Core 4.2.
http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/4.x/x86/release (http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/4.x/x86/release)

Files likely in your backup that will need to be updated:
.setbackground
.profile
.xsession

Note: You must recreate all ondemand items. Use AppsAudit OnDemand Maintenance.
Title: Re: getFlash11
Post by: robc on February 29, 2012, 07:31:32 PM
updating extensions is different then updating the core...this is a request to fix how the flash11 extension is updated by getflash11
Title: Re: getFlash11
Post by: gerald_clark on February 29, 2012, 08:12:12 PM
Getflash11 gets flash and builds the extension.  This is not necessarily an update.
Putting the flash extension in upgrade would prevent tce-load -i flash11 from working.
Title: Re: getFlash11
Post by: Jason W on March 01, 2012, 04:47:11 AM
The current getFlash11.tcz uses the below to determine the tce directory.  It recognized /etc/sysconfig/tcedir if it exists, otherwise falls back to the /opt/.tce_dir so it is also backwards compatible:

if [ -d /etc/sysconfig/tcedir ]; then
  TCEDIR=`readlink /etc/sysconfig/tcedir`
elif [ -f /opt/.tce_dir ]; then
  TCEDIR=`cat /opt/.tce_dir`
fi

Also, when run it tests for the existence of a currently installed flash11.tcz, and prompts you do you want to overwrite it, requiring a reboot, or exit.  That way there is no unexpected breakage during a running session.

I will consider using /upgrades as the target location for flash11.tcz, and simply move it over in the lack of a loaded flash11.tcz. 

I will update it to fetch the current flash version by default, as is always the intention, but it has to be manually adjusted with each update with the new way adobe stores their tarballs.


Title: Re: getFlash11
Post by: robc on March 02, 2012, 12:58:12 PM
if [ -d /etc/sysconfig/tcedir ]; then
  TCEDIR=`readlink /etc/sysconfig/tcedir`
elif [ -f /opt/.tce_dir ]; then
  TCEDIR=`cat /opt/.tce_dir`
fi
The getFlash11 extension that I have does not have this check...apps audit update says all my extensions are up to date.

I started working on some updates to this script...the only part I have left is getting the current version from adobe. I won't be able to get back to this for a few days.
Title: Re: getFlash11
Post by: Jason W on March 02, 2012, 04:58:13 PM
I remade the zsync file for getFlash11.tcz, maybe there was an issue there.

The getFlash11.scm has the current flash version number for reference.

I am more than happy for others to provide updates to getFlash11, as my time is focused in other areas for now.
Title: Re: getFlash11
Post by: robc on March 11, 2012, 12:00:23 AM
apps audit still did not say an update was available for getFlash11...

I updated the script, now it will download the latest version or a version that the user inputs.  If flash11 is installed while the new flash11 is built, the new version will be put in tcedir/optional/upgrade/ to follow the standard tinycore update procedure.  Added exception output when a script failure is found.

Edit:
Also moved the libflashsupport.so to usr/local/share/getFlash11/ directory to correctly update this lib if flash11 is already installed.