GUI to download LibreOffice - beta quality

Under development: PCMCIA, wireless, etc.
Post Reply
Message
Author
User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#121 Post by pemasu »

The error is probably due to my experimental 3.4.2 kernel dpup build.
But this is the failure I get when there is tar.gz unpacking done and it would be time to do something for the debs.
Remove the phony.gz.
Attachments
failure.txt.gz
(1.01 KiB) Downloaded 580 times

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#122 Post by 01micko »

Pemasu, try this one, it is a bug where the server has changed filenames. It still needs work i think to make more robust, but I just tried in FD_64 and worked ok.
Attachments
get_libreoffice-0.16.pet
(26.78 KiB) Downloaded 689 times
Puppy Linux Blog - contact me for access

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#123 Post by pemasu »

01micko. I did first the thing which I should have done before posting. I tested my older more stable dpup exprimo 5.X.14 build. And the version 15 worked oob.
So...something in my newer build is not right. I suppose xz compression does not affect, the newer one puppy.sfs has been xz compressed. Yeah, shooting to the dark. Is there any tools to debug more...I would like to resolve the problem.

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#124 Post by 01micko »

Thanks for testing pemasu... and on closer inspection what I did had nothing to do with your issue!

I see that there is some problem with this;

Code: Select all

LIBO_PKGDIR=`ls -l|grep ^d| grep install|tr ' ' '\n'|grep install`
and the similar variables around line 427, why? I don't know! If you wish to debug further insert "set -x" somewhere at the top of the script.

OR if you don't, apply this patch.. it uses "find" instead of "ls" to set the vars, works, just tested.. but will it work for you and your new kernel? (patch should apply cleanly to 0.15 or 0.16, which isn't an "official" release yet, more to do)

Code: Select all

--- /usr/sbin/get_libreoffice.orig	2012-06-01 21:34:05.384136638 +1000
+++ /usr/sbin/get_libreoffice	2012-06-12 06:44:41.396715593 +1000
@@ -427,13 +427,19 @@
 	
 	sync
     sleep 1 #extracted names of dirs are not the same as name of tarball :|
-    LIBO_PKGDIR=`ls -l|grep ^d| grep install|tr ' ' '\n'|grep install`
-    LIBO_HELPDIR=`ls -l |grep ^d| grep helppack|tr ' ' '\n'|grep helppack`
+    #LIBO_PKGDIR=`ls -l|grep ^d| grep install|tr ' ' '\n'|grep install`
+    PRE_LIBO_PKGDIR=`find -name *install*`
+    LIBO_PKGDIR=`basename $PRE_LIBO_PKGDIR`
+    #LIBO_HELPDIR=`ls -l |grep ^d| grep helppack|tr ' ' '\n'|grep helppack`
+    PRE_LIBO_HELPDIR=`find -name *helppack*`
+    LIBO_HELPDIR=`basename $PRE_LIBO_HELPDIR`
     echo $LIBO_HELPDIR
 	for h in $LIBO_HELPDIR
 	 do mv -f ./$h/DEBS/* $LIBO_PKGDIR/DEBS
 	 done
-	LIBO_LANGDIR=`ls -l |grep ^d| grep langpack|tr ' ' '\n'|grep langpack`
+	#LIBO_LANGDIR=`ls -l |grep ^d| grep langpack|tr ' ' '\n'|grep langpack`
+	PRE_LIBO_LANGDIR=`find -name *langpack*`
+    LIBO_LANGDIR=`basename $PRE_LIBO_LANGDIR`
 	for l in $LIBO_LANGDIR
 	 do mv -f ./$l/DEBS/* $LIBO_PKGDIR/DEBS
 	 done
Hope it works!
Puppy Linux Blog - contact me for access

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#125 Post by pemasu »

Thanks. I will surely test and post back when I have something to report.

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#126 Post by pemasu »

01micko. The patch worked !!!
Thanks. It seems that some basic command does not have the effect there should be. But this workaround is all I need now. Happy Libre Office 3.5.4-Fi owner, created by Dpup Exprimo 5.X.3.4.2.1. Distro update not published yet.

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#127 Post by jamesbond »

01micko wrote:Pemasu, try this one, it is a bug where the server has changed filenames. It still needs work i think to make more robust, but I just tried in FD_64 and worked ok.
Mick, with your permission I will upload this version to Fatdog package repo :D
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#128 Post by 01micko »

jamesbond wrote:
01micko wrote:Pemasu, try this one, it is a bug where the server has changed filenames. It still needs work i think to make more robust, but I just tried in FD_64 and worked ok.
Mick, with your permission I will upload this version to Fatdog package repo :D
No problem. The main reason for 0.16 was to get it to work with FD, just needs a little more polish. As is it seems stable enough. It may not work right for gz compression which doesn't affect FD.
Puppy Linux Blog - contact me for access

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#129 Post by 01micko »

0.17 is out

Libre will be releasing 3.5.5 soon, it's RC now and the testing versions are working in this version. I don't know how long they have been broken for but I don't think it's too long.

See main post
Puppy Linux Blog - contact me for access

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#130 Post by 01micko »

This is just a BUMP to piss off the spammer :)
Puppy Linux Blog - contact me for access

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

GUI to download LibreOffice - beta quality

#131 Post by L18L »

Used 0.17 in Precise Puppy.

German translation updated using momanager.

Note, outdated get_libreoffice.pot is no more needed
as momanager creates an actual .pot file

Thank you.
Attachments
get_libreoffice.mo.gz
updated German translation file
save as:
/usr/share/locale/de/LC_MESSAGES/get_libreoffice.mo
(5.6 KiB) Downloaded 537 times

Jim1911
Posts: 2460
Joined: Mon 19 May 2008, 20:39
Location: Texas, USA

Use in Fatdog64-600 b1

#132 Post by Jim1911 »

Works fine in Fatdog64-600 b1.

Thank you for keeping this updated.

Cheers,
Jim

HiDeHo
Posts: 311
Joined: Wed 16 Mar 2011, 09:57

#133 Post by HiDeHo »

Hi i am wanting to know where this file is created and how much space it needs. i keep getting not enough space to create the libtreoffice.sfs would be nice to find out.

if i dont have enough space can i somehow point it to install to another hdd or partition. It would be a good to have an option if not enough space built in to the app.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

GUI to download LibreOffice - beta quality

#134 Post by L18L »

Hi HiDeHo
I am working on this solution.
:oops: :oops: :oops: last post overwritten by me, sorry
but here is a solution:

You will get a choice from mounted partitions which do have enough space.

Code: Select all

#select device to store sfs 
df -k > /tmp/lospace
echo -n "" > /tmp/loselectdevice
while read LINE; do
 FREESIZEAVAIL=`echo $LINE|awk '{print $4}'`
 [[ "$FREESIZEAVAIL" -gt "$SFSSIZEEXPANDED" && "${LINE:0:4}" = "/dev" ]] && echo $LINE >> /tmp/loselectdevice
done < /tmp/lospace
selNUM=`wc -l /tmp/loselectdevice | cut -d ' ' -f1`
if [[ $selNUM  ]]; then
 DEVTEXT="$(eval_ngettext 'Choose this device or cancel', 'Choose from these $selNUM devices or cancel', $selNUM )"
 height="$(( 140 + $selNUM * 22 ))"
 BASEDIR=$(cat /tmp/loselectdevice | yad --list  \
  --height="$height" \
  --width="500" \
  --text="$DEVTEXT" \
  --column="`head -n1 /tmp/lospace`":TXT \
  )
 choice=$?
 case $choice in
     0) BASEDIR=$(echo $BASEDIR | cut -d ' ' -f6) 
        BASEDIR=${BASEDIR%|*}   # cut -d '|' -f 1 `
        ;;
   252) exit 0 ;;
 esac
 #echo BASEDIR=$BASEDIR # your choice
 rm /tmp/lospace
fi
[ "$BASEDIR" ] || sizecheck
#sizecheck
insert above lines before the line:
#size check passed so we create working dirs
in /usr/sbin/get_libreoffice

--
edit
and a line at the beginning:

Code: Select all

. gettext.sh
Attachments
LO_choose_from_large_spaces.png
(7.06 KiB) Downloaded 659 times

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

#135 Post by L18L »

For your convenience I have made a pet

Have fun

----

Attachment 018.pet deleted
use version 018-1 please
Attachments
LO_choose_from_large_spaces_PET.png
(30.77 KiB) Downloaded 652 times
Last edited by L18L on Fri 27 Jul 2012, 11:02, edited 1 time in total.

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

version 0.18

#136 Post by shinobar »

L18L wrote:For your convenience I have made a pet
Great.
But I needed to modify to get right BASEDIR.
At line 205-

Code: Select all

 case $choice in
     0) BASEDIR=$(echo $BASEDIR | cut -d ' ' -f6) 
        BASEDIR=${BASEDIR%|*}   # cut -d '|' -f 1 `
        ;;
   252) exit 0 ;;
 esac
to

Code: Select all

 case $choice in
     0) BASEDIR=$(echo $BASEDIR | cut -d '|' -f6) 
        #BASEDIR=${BASEDIR%|*}   # cut -d '|' -f 1 `
        ;;
   252) exit 0 ;;
 esac
Worked on 528JP, based on Lucid Puppy 528.005.

BTW, I would like to avoid the yad and gettext.sh, which breaks backward compatibility.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: version 0.18

#137 Post by L18L »

shinobar wrote:But I needed to modify to get right BASEDIR.
Thank you
fixed

(Going to work on backward compatibility now) :)
Attachments
get_libreoffice-0.18-1.pet
(27.68 KiB) Downloaded 617 times

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

bugfix version 0.18-1

#138 Post by shinobar »

Nicely worked on Lupu-528JP, PUPMODE=13.
Tnx.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

version 0.18-2

#139 Post by L18L »

shinobar wrote:Nicely worked on ... PUPMODE=13...
That is why I have done it for me and for HiDeHo of course :D

version 0.18-2:

without using gettext.sh
Xdialog comes to the rescue if there is no yad

waiting for bug reports

----
edited:

thank you shinobar
attached false version deleted
Attachments
LO_choose_from_large_spaces_without_yad.png
(4.67 KiB) Downloaded 1206 times
Last edited by L18L on Sat 28 Jul 2012, 09:26, edited 2 times in total.

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Re: version 0.18-2

#140 Post by shinobar »

@L18L
version 0.18-2 you attached contains the same file of 0.18-1.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

Post Reply