WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: microcore_v2.10rc1  (Read 6787 times)

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9659
Re: microcore_v2.10rc1
« Reply #15 on: March 10, 2010, 11:09:27 AM »
At work on windows machine, test case will be supplied tonight.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 10934
Re: microcore_v2.10rc1
« Reply #16 on: March 10, 2010, 09:12:10 PM »
I would need to see a tarball(s) in order to more fully understand what is being attempted.

Before getting that far, I started from the beginning again to make sure things weren't being influenced by an old extension or similar.

To reproduce - download rhythmbox.tcz/dep and all dependent tcz/dep from the repo into a folder.

1. "tce-load -i /path-to-folder/rhythmbox.tcz" will apparently succeed, but python.tcz is not loaded.

2. Reboot, delete avahi.tcz/dep, libdaemon.tcz/dep, nss-mdns.tcz/dep and delete all references to them in /path-to-folder/*dep. "tce-load -i /path-to-folder/rhythmbox.tcz" will apparently succeed, but python.tcz is not loaded.

3. Reboot, run this script to convert to recursive deps:
Code: [Select]
#!/bin/bash


recursive_scan() {

  echo ${1} >> /tmp/deplist
  deps=""
  if [ -f /tmp/repodeplist/${1}.dep ]; then

    deps=`cat /tmp/repodeplist/${1}.dep`
    for d in $deps; do
      recursive_scan $d
    done
  fi
}

for F in `ls *.dep`; do
  for I in `cat "$F"`; do

recursive_scan "$I"

for E in `cat "$F"`; do

 if cat /tmp/deplist | grep -v "$I" | grep "$E" >/dev/null; then
   echo "$E"
  sed -i "/^"$E"/d" "$F"
 fi
 done
cat /tmp/deplist > /tmp/"$I".files
rm /tmp/deplist

  done

done

"tce-load -i /path-to-folder/rhythmbox.tcz" will apparently succeed, but python.tcz is not loaded.

I find it hard to understand why python.tcz is not loaded (and I tried three times just to be sure) - very strange  ???
« Last Edit: March 10, 2010, 11:11:18 PM by Juanito »

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7003
    • My Community Forum
Re: microcore_v2.10rc1
« Reply #17 on: March 12, 2010, 05:31:50 AM »
Same is happening with wicd (thanks to Miller for reporting the issue).

Installing wicd.tcz all extensions are laoded except python.tcz Installing it manually wicd works fine. What is strange, that wicd.tcz.dep is loaded.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: microcore_v2.10rc1
« Reply #18 on: March 12, 2010, 02:23:04 PM »
Regarding the issue of missing dependencies: I just noticed that in the case of 'wicd.tcz' the 'python.tcz' appears in 'wicd.tcz.dep' as well as 'dbus-python.tcz'. Since the latter got installed but not the former, I suspected the 'grep -q ${1} /tmp/deplist ...' statements.

I did a quick test and replaced the three grep -q ${1} /tmp/deplist statements with grep -q "^${1}" /tmp/deplist. That seem to have done the trick since 'python.tcz' now got loaded for 'wicd.tcz'.

More testing will need to confirm this finding, but I have now to leave here urgently.

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: microcore_v2.10rc1
« Reply #19 on: March 13, 2010, 10:32:06 AM »
Yes, I have found a couple of bugs in tce-load.
I have rewritten and updated tce-load to use variables to implement a stack structure instead tmp files.
It is still in testing mode before I release rc2.
10+ Years Contributing to Linux Open Source Projects.