WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Recursive dependency bug  (Read 5637 times)

Offline Xianwen Chen

  • Full Member
  • ***
  • Posts: 142
Recursive dependency bug
« on: June 20, 2010, 04:38:25 AM »
Hi Robert,

After TCL is booted with "base norestore", only first level of TCE dependencies can be solved when loading a TCE from the other directory in appbrowser. Further dependencies are ignored.

Best regards,

Xianwen
« Last Edit: June 20, 2010, 05:21:03 AM by Xianwen Chen »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14845
Re: Recursive dependency bug
« Reply #1 on: June 20, 2010, 06:52:53 AM »
Booting "base norestore" in both tc-2.11.4 and tc-3_alpha7, I get this:
Code: [Select]
$ sudo mount /dev/sda1
$ tce-load -i /mnt/sda1/tce/optional/svn.tcz
expat2.tcz: OK
libproxy.tcz: OK
openssl-0.9.8.tcz: OK
neon.tcz: OK
apr.tcz: OK
apr-util.tcz: OK
svn.tcz: OK

..am I missing something?

Offline Xianwen Chen

  • Full Member
  • ***
  • Posts: 142
Re: Recursive dependency bug
« Reply #2 on: June 20, 2010, 07:25:09 AM »
Booting "base norestore" in both tc-2.11.4 and tc-3_alpha7, I get this:
Code: [Select]
$ sudo mount /dev/sda1
$ tce-load -i /mnt/sda1/tce/optional/svn.tcz
expat2.tcz: OK
libproxy.tcz: OK
openssl-0.9.8.tcz: OK
neon.tcz: OK
apr.tcz: OK
apr-util.tcz: OK
svn.tcz: OK

..am I missing something?

Yes, if you do not use tce-load but appbrowser.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14845
Re: Recursive dependency bug
« Reply #3 on: June 20, 2010, 07:42:24 AM »
I tried that too, i.e.
Code: [Select]
$ sudo tce-setup
$ startx
[open terminal window]
$ appbrowser

..and then select "local", "svn" and "OK" and all of the deps load.

I use microcore and I don't have an Internet connection at the moment, so there must be something with using tinycore and/or loading from the repo using appbrowser that I don't see.

Offline Xianwen Chen

  • Full Member
  • ***
  • Posts: 142
Re: Recursive dependency bug
« Reply #4 on: June 20, 2010, 07:54:03 AM »
I tried that too, i.e.
Code: [Select]
$ sudo tce-setup
$ startx
[open terminal window]
$ appbrowser

..and then select "local", "svn" and "OK" and all of the deps load.

I use microcore and I don't have an Internet connection at the moment, so there must be something with using tinycore and/or loading from the repo using appbrowser that I don't see.

Well, if you don't run tce-setup.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Recursive dependency bug
« Reply #5 on: June 20, 2010, 12:37:26 PM »
This was first reported for 3.0 alpha 6 see: http://forum.tinycorelinux.net/index.php?topic=6319.30
I fixed it for alpha7 and 2.11.4. It has furthermore been reported to have been fixed by the reporting user and others. Please be sure to use 2.11.4 or 3.0 alpha 7. As  you posted TCL, I am assuming that you are using Tiny Core, but you did not state which version. Use version comand to see. Otherwise I need more specifics.

10+ Years Contributing to Linux Open Source Projects.

Offline Xianwen Chen

  • Full Member
  • ***
  • Posts: 142
Re: Recursive dependency bug
« Reply #6 on: June 20, 2010, 12:39:07 PM »
Hi Roberts,

It is 2.11.4.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Recursive dependency bug
« Reply #7 on: June 20, 2010, 12:50:33 PM »
Loading local necessarily implies that a prior successful download  via appbrowser or tce-load. Therefore other dependencies must reside in the same directory of the target. If you download via alternate means, no automatic download to try to resolve dependencies occurs. You can use appsaudit to check for missing dependencies. Also useful is to boot Tiny Core with the showapps and pause options, as perhaps a change in a dependency has occured.
10+ Years Contributing to Linux Open Source Projects.

Offline Xianwen Chen

  • Full Member
  • ***
  • Posts: 142
Re: Recursive dependency bug
« Reply #8 on: June 20, 2010, 01:22:47 PM »
Loading local necessarily implies that a prior successful download  via appbrowser or tce-load. Therefore other dependencies must reside in the same directory of the target. If you download via alternate means, no automatic download to try to resolve dependencies occurs. You can use appsaudit to check for missing dependencies. Also useful is to boot Tiny Core with the showapps and pause options, as perhaps a change in a dependency has occured.

Hi Robert,

Thanks a lot for your reply!

Yes, all needed TCZs are inside the same directory, but not the one described in /opt. Appbrowser can load the first level of dependency when loading a package from such a path, but not further.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Recursive dependency bug
« Reply #9 on: June 20, 2010, 02:00:48 PM »
We moved away from supporting multiple tce directories awhile back; too many duplications.
Of course appbrowser is looking only at the contents of /opt/.tce_dir. It is by design.
Your options are to use tce-load or temporarily change /opt/tce_dir.
10+ Years Contributing to Linux Open Source Projects.

Offline Xianwen Chen

  • Full Member
  • ***
  • Posts: 142
Re: Recursive dependency bug
« Reply #10 on: June 20, 2010, 02:01:21 PM »
We moved away from supporting multiple tce directories awhile back; too many duplications.
Of course appbrowser is looking only at the contents of /opt/.tce_dir. It is by design.
Your options are to use tce-load or temporarily change /opt/tce_dir.

I see. Thanks!