Tiny Core Extensions > TCE News

Moving repo from .tczl,.tczm,.tczlm to .tcz

<< < (3/4) > >>

jpeters:

--- Quote from: Jason W on December 27, 2009, 08:36:44 AM ---Coreutils is needed.

Also I amended the set of commands above since there is one extension that evaded the initial commands.  I spent time trying for a more elegant use of sed for replacing the 'tczl,tczlm,tczml' with tcz, but as I was short on time I just used something simple that worked.  " sed -i 's:\.tcz[lm][lm]:\.tcz:g' filename " only works with replacing tczlm or tczml and does not replace tczm or tczl.  I will find the sed solution but results were the primary goal.

--- End quote ---

haven't tried with util-linux-ng, but maybe:

sed -i 's:\.tcz[lm]*:\.tcz:g'

Jason W:
The wildcard would work for adjusting dep and info files, but in renaming it would change gtk2.tczl.dep to gtk2.tcz.  Using maro's sed line my script turns into this:


--- Code: ---#!/bin/sh  


for I in `ls *.tcz*`; do
   sed -i 's:\.tcz[lm]\{1,2\}:\.tcz:g' "$I"
  NEWNAME=`echo "$I" | sed -e 's:\.tcz[lm]\{1,2\}:\.tcz:g'`
  mv "$I" "$NEWNAME"
done




--- End code ---

jpeters:

--- Quote from: Jason W on December 29, 2009, 09:20:45 AM ---The wildcard would work for adjusting dep and info files, but in renaming it would change gtk2.tczl.dep to gtk2.tcz.  

--- End quote ---

Strange, because with GNU sed:  
ls | sed  -e 's/\.tcz[lm]*/\.tcz/g'

gtk2.tcz.dep

Guess rename works differently (haven't checked it out yet).

edit:  This seems to work

--- Code: ---FILES="$(ls | grep -E '\.tcz')"

for I in  ${FILES}
 do
  echo ${I} >/tmp/old
  NEW="$(cat /tmp/old | sed 's/\.tcz[lm]*/\.tcz/g')"
  sudo mv ${I} ${NEW}
 done

--- End code ---





tetonca:
Haven't read all the thread, nor the details of the release
notes for Tiny Core 2.7, nor the Minefield notice on the
forum -- just the .info in Appbrowser for minefield.tcz.

                           - - - - - - - - - - - -
Minefield won't start.  It was fine, prior to conversion to
all .tcz (thanks for the head's-up in IRC on this thread).
                           - - - - - - - - - - - -

I gutted tce and started  over today, with nothing but a list
of my previous tce, and with my current mydata.tgz (so
.filetool.lst  is not canonical).  Tinycore 2.7 with the multi-
user mod applied (see attached shell script).

ldd reported missing some libs.  So I installed nss-nspr.tcz.
Some of the deps were filled, that ldd complained about;
three remained unfilled, even though they are present on
the system.


--- Code: ---# echo /usr/local/firefox/ >> /etc/ld.so.conf ; /sbin/ldconfig

--- End code ---

Something similar to the above was tried; ldd then gave
firefox-bin a clean bill of health.

However, firefox won't start.

Tried various LD_LIBRARY_PATH voodoo and such.

No applications were installed with any tool besides the
canonical Appbrowser; kernel and start-up messages looked
good.  Am not running Xorg (yet; that will happen) and I
changed how I load the firewall in bootlocal.sh.

I'm thinking more ldd voodoo, or revert to stock .filetool.lst.

Background info follows.  TIA for any help or comment.
I'm not hot for this; I'm expecting it to magically resolve with
moar .tcz injections!

tetonca


--- Code: ---$ cat /usr/local/tce.wbar | egrep firefox
c: exec /usr/local/firefox/firefox

$ /usr/local/firefox/firefox
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
Xlib:  extension "Generic Event Extension" missing on display ":0.0".

$ ldd /usr/local/firefox/firefox-bin  | egrep ound # as in 'not found'
[nothing reported]

$ ps auxw | egrep X
 4184 root     /usr/bin/Xvesa -dpi 75 -br -screen 1024x768x24 -shadow -mouse /dev/psaux -nolisten tcp -I

$ md5sum /usr/bin/Xvesa
96f2f397e0033babbb6a9b82d5877181  /usr/bin/Xvesa

$ cat /proc/cmdline
quiet embed ht=on hpet=disabled
    restore=sda2 tce=sda2/tce/maria nodhcp
       vga=789 pause text waitusb=5

$ md5sum /mnt/sda2/tce/maria/minefield.tcz
1504968fde676db8df4d8bf5df9846ad  /mnt/sda2/tce/maria/minefield.tcz

$ ls -1 /usr/local/tce.installed/

  915resolution   OSS   Xfbdev   Xlibs_support   atk   bash   cairo
  epdfview-0.1.6  expat2  firewall-2.6.29.1-tinycore  fluxbox  fontconfig

  glib2    graphics-libs-1    gtk2    iptables    libxml2
  minefield  nss-nspr  openssl-0.9.8h  opera10  pango  pixman  poppler

  qt-4.5-base  sqlite3  sylpheed  vim  vim_lang  wireless-2.6.29.1-tinycore
  wireless_tools   wl   wpa_supplicant   xchat-2.8.6

$ cat /usr/share/doc/tc/release.txt
tinycore_2.7

--- End code ---

curaga:
Did you convert minefield to tcz yourself? It's one of those that requires more than just the conversion to work.

If you did, try downloading the tcz. I just tested on a plain 2.7 that it still works.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version