[SOLVED] Latest update-firefox script nutty - or is it me?

Technical issues/questions of an intermediate or advanced nature.
Post Reply
nanZor
Samurai
Samurai
Posts: 185
Joined: 09 Apr 2019, 03:27
Distribution: Porteus 5.0 RC1 XFCE
Location: Los Angeles

[SOLVED] Latest update-firefox script nutty - or is it me?

Post#1 by nanZor » 27 Jun 2019, 06:06

Is anyone having trouble with the latest update-firefox script, or is it me somehow?

I dig the new script, and it seems to perform it's job, and when requesting that we create an xzm, it just leaves a txz. It also complains about firefox itself being corrupt. I've tried stable and beta, and they seem to fail in much the same fashion.

Here's some of the grueling details. :) Look towards the end. notice my ls expecting an xzm only to find a txz and all the other complaints.

I'm running the script as root inside the /tmp directory - is that a problem?

Code: Select all

A slackware package will be created. 
 Would you like to create a Porteus module? [y/n]
Downloading: firefox-68.0b13.tar.bz2  DONE
 Decompressing firefox tarball ... 
firefox/update-settings.ini
firefox/libnspr4.so
firefox/updater
firefox/firefox-bin
firefox/libmozavcodec.so
firefox/pingsender
firefox/libfreeblpriv3.so
firefox/minidump-analyzer
firefox/libsoftokn3.so
firefox/liblgpllibs.so
firefox/libssl3.so
firefox/libsmime3.so
firefox/libnssdbm3.chk
firefox/firefox
firefox/libmozwayland.so
firefox/gmp-clearkey/0.1/manifest.json
firefox/gmp-clearkey/0.1/libclearkey.so
firefox/libxul.so
firefox/libnssckbi.so
firefox/dependentlibs.list
firefox/libnss3.so
firefox/libplc4.so
firefox/application.ini
firefox/libnssdbm3.so
firefox/updater.ini
firefox/omni.ja
firefox/libmozsandbox.so
firefox/fonts/TwemojiMozilla.ttf
firefox/libnssutil3.so
firefox/libmozsqlite3.so
firefox/chrome.manifest
firefox/crashreporter
firefox/defaults/pref/channel-prefs.js
firefox/libplds4.so
firefox/libmozavutil.so
firefox/gtk2/libmozgtk.so
firefox/precomplete
firefox/crashreporter.ini
firefox/libfreeblpriv3.chk
firefox/Throbber-small.gif
firefox/libsoftokn3.chk
firefox/platform.ini
firefox/libmozgtk.so
firefox/icons/updater.png
firefox/browser/omni.ja
firefox/browser/blocklist.xml
firefox/browser/chrome.manifest
firefox/browser/chrome/icons/default/default32.png
firefox/browser/chrome/icons/default/default64.png
firefox/browser/chrome/icons/default/default16.png
firefox/browser/chrome/icons/default/default48.png
firefox/browser/chrome/icons/default/default128.png
firefox/browser/features/webcompat-reporter@mozilla.org.xpi
firefox/browser/features/screenshots@mozilla.org.xpi
firefox/browser/features/fxmonitor@mozilla.org.xpi
firefox/browser/features/webcompat@mozilla.org.xpi
firefox/browser/features/formautofill@mozilla.org.xpi
firefox/browser/crashreporter-override.ini
firefox/removed-files
firefox/plugin-container
firefox/firefox-bin.sig
firefox/firefox.sig
firefox/gmp-clearkey/0.1/libclearkey.so.sig
firefox/libxul.so.sig
firefox/plugin-container.sig
 Linking firefox binary ... 
/tmp/portff
 Copying firefox files ... 
 Creating default settings ... 
 Creating install files ... 
 Copying config files ... 
cp: cannot stat '/tmp/files/*': No such file or directory
chown: cannot access '/tmp/portff/ff.2428/home/guest': No such file or directory
Adding home page ...
Creating slackware package ...

Slackware package maker, version 3.1415927.

Searching for symbolic links:
usr/bin/firefox	/usr/lib64/firefox-68.0b13/firefox
usr/lib64/firefox	./firefox-68.0b13

Making symbolic link creation script:
( cd usr/bin ; rm -rf firefox )
( cd usr/bin ; ln -sf /usr/lib64/firefox-68.0b13/firefox firefox )
( cd usr/lib64 ; rm -rf firefox )
( cd usr/lib64 ; ln -sf ./firefox-68.0b13 firefox )

It is recommended that you make these lines your new installation script.

Would you like to make this stuff the install script for this package
and remove the symbolic links ([y]es, [n]o)? y


Removing symbolic links:
removed './usr/bin/firefox'
removed './usr/lib64/firefox'

Creating your new ./install/doinst.sh...

This next step is optional - you can set the directories in your package
to some sane permissions. If any of the directories in your package have
special permissions, then DO NOT reset them here!

Would you like to reset all directory permissions to 755 (drwxr-xr-x) and
directory ownerships to root.root ([y]es, [n]o)? n

Creating Slackware package:  /tmp/firefox-68.0b13-x86_64-en-US-1.txz

xz: (stdin): Cannot allocate memory
./
install/
install/doinst.sh
install/slack-desc
usr/
usr/share/
usr/share/applications/
usr/share/applications/browser.desktop
usr/share/applications/mozilla-firefox.desktop
ERROR:  xz -9 --threads=2 -c returned error code 1 -- makepkg failed.
/tmp/portff
Converting to module ...
Verifying package firefox-68.0b13-x86_64-en-US-1.txz.
xz: (stdin): File format not recognized
Unable to install /tmp/firefox-68.0b13-x86_64-en-US-1.txz:  tar archive is corrupt (tar returned error code 2)
error installing /tmp/firefox-68.0b13-x86_64-en-US-1.txz package

Your file is at:  /tmp/firefox-68.0b13-x86_64-en-US-1.xzm 
Please move it to your modules folder to survive a reboot.


root@porteus:/tmp# ls
firefox-68.0b13-x86_64-en-US-1.txz  xdg-runtime-guest/
txz2xzm2573/                        xdg-runtime-root/
root@porteus:/tmp# 
Huh? I'm just a bit confused after multiple attempts over multiple days...
Last edited by nanZor on 28 Jun 2019, 08:23, edited 1 time in total.
That's a UNIX book - cool. -Garth

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2143
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

Latest update-firefox script nutty - or is it me?

Post#2 by ncmprhnsbl » 27 Jun 2019, 07:37

nanZor wrote:
27 Jun 2019, 06:06
I'm running the script as root inside the /tmp directory - is that a problem?
shouldn't matter where you run it from (fyi update-firefox downloads update-firefox-live which does all the work-see /usr/local/bin)
you're using 5.0 rc1?
problem seems to be here:

Code: Select all

xz: (stdin): Cannot allocate memory
and

Code: Select all

ERROR:  xz -9 --threads=2 -c returned error code 1 -- makepkg failed.
and then

Code: Select all

xz: (stdin): File format not recognized
Unable to install /tmp/firefox-68.0b13-x86_64-en-US-1.txz:  tar archive is corrupt (tar returned error code 2)
some similarity with Porteus v5.0rc1 problems (Post by quotaholic #72331) (different but pkg-tools related)
something going on with xz not being able to allocate memory : enough ram?
i just ran it here, with no problem..
oops spoke too soon, can't seem to activate it ... hmmm
EDIT
it was okay, didn't allow me activate it in /tmp
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

nanZor
Samurai
Samurai
Posts: 185
Joined: 09 Apr 2019, 03:27
Distribution: Porteus 5.0 RC1 XFCE
Location: Los Angeles

Latest update-firefox script nutty - or is it me?

Post#3 by nanZor » 27 Jun 2019, 08:28

It does it too on my stable 4.0

I tried that thinking I must have mucked up my rc1 playing around with stuff, but nope - 4.0 does it.

Overall I *dig* the new script and what it tries to accomplish. Very thoughtful for the end-user.
That's a UNIX book - cool. -Garth

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2143
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

Latest update-firefox script nutty - or is it me?

Post#4 by ncmprhnsbl » 27 Jun 2019, 09:22

got me stumped at the moment...
can only suggest, you try to use makepkg, or installpkg on something and see what happens.. or see if another update-<browser> works or not..
or try "always fresh" (if you havn't)
nanZor wrote:
27 Jun 2019, 08:28
Overall I *dig* the new script and what it tries to accomplish. Very thoughtful for the end-user.
you'll like the next version even more ;)
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

nanZor
Samurai
Samurai
Posts: 185
Joined: 09 Apr 2019, 03:27
Distribution: Porteus 5.0 RC1 XFCE
Location: Los Angeles

Latest update-firefox script nutty - or is it me?

Post#5 by nanZor » 28 Jun 2019, 08:23

SOLVED!

Great point about trying it from Always-Fresh. This time it worked fine with 4.0. And I love watching that script fly and do it's thing. Nice work people!

I'll give my 5.0rc1 a go when I'm near it next.
That's a UNIX book - cool. -Garth

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2143
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

[SOLVED] Latest update-firefox script nutty - or is it me?

Post#6 by ncmprhnsbl » 28 Jun 2019, 13:18

it could be useful to know what it is in your changes or modules that's creating the interference, if thats what's happening..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Post Reply