WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Suggestion: Auto download missing dependencies  (Read 3359 times)

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Suggestion: Auto download missing dependencies
« on: October 14, 2010, 10:05:14 AM »
Today was another one of those days where on rebooting, my setup was broken. Reason was, many of my extensions would not run, having a new missing dependency (pixbuf2).

I have to add here that I have a script that runs on every boot to check for extension updates and auto-downloads such updates. This saves me from checking this manually, since updates are frequent and many.

Only, gtk2 has now this new dependency of pixbuf2. Which meant all my apps which depend on gtk2 would not load (chromium, openbox, tint2 etc.)

So this brings me again to the same request for auto feature: Could tce-load please have the ability to automatically fetch any missing dependencies when asked to load an extension? It seems to me the most logical and straightforward way to fix this issue of updates breaking previously working setups. I can't see any disadvantage...
« Last Edit: October 14, 2010, 10:09:05 AM by jur »

Offline schultzter

  • Newbie
  • *
  • Posts: 25
    • Blog
Re: Suggestion: Auto download missing dependencies
« Reply #1 on: October 17, 2010, 03:07:27 PM »
That would explain things.

I can't remember where I found the error message, but something tipped me off that pixbuf2 was the issue, so I used AppBrowser to download it and then everything worked.

I guess at a high-level the updater would need to handle missing dependencies.  Exactly how it's implemented is something else.  I'm not in favour of "magical black boxes" - I like to know what's going on and why.  But I'd rather not have to waste a lot of time hunting stuff down.
Headed for the second star to the right and straight on 'til morning...

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Suggestion: Auto download missing dependencies
« Reply #2 on: October 17, 2010, 03:23:58 PM »
AppsAudit
Dependencies->
Update .dep files->                 (Note this step is optional, but will ensure that your .dep files are up to date.)
Build Reporting Database->
Display All with Missing Dependencies.

Suggest to run this after any system update and reboot.
« Last Edit: October 19, 2010, 04:25:54 PM by roberts »
10+ Years Contributing to Linux Open Source Projects.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Suggestion: Auto download missing dependencies
« Reply #3 on: October 24, 2010, 03:32:08 PM »
10+ Years Contributing to Linux Open Source Projects.

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: Suggestion: Auto download missing dependencies
« Reply #4 on: October 25, 2010, 09:04:31 AM »
How about microcore, is it possible to do the same with tce-audit?
I tried, but didn't succeed, also searched for documentation, didn't find any.

I ended up installing the missing dependencies with my own looping cat.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Suggestion: Auto download missing dependencies
« Reply #5 on: October 25, 2010, 11:27:39 AM »
Yes. Anything that can be done with AppsAudit is available from CLI via tce-audit
as AppsAudit merely calls tce-audit with proper syntax.

tce-audit {updatedeps|builddb|auditall|nodepends|notrequired|marked|clearlst}  /path/to/tcedir/

tce-audit {dependson|requiredby|audit}delete} /path/to/tcedir/extension.tcz


I will add niceties of  default pathing and default ext in next release.

Note: audit means "display missing dependencies"
« Last Edit: October 25, 2010, 01:46:02 PM by roberts »
10+ Years Contributing to Linux Open Source Projects.

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: Suggestion: Auto download missing dependencies
« Reply #6 on: October 25, 2010, 12:20:17 PM »
What I understand is that I have to builddb as a first step. But then what do I have to do to find all missing packages?

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Suggestion: Auto download missing dependencies
« Reply #7 on: October 25, 2010, 01:25:05 PM »
tce-audit auditall  /path/to/tcedir/
10+ Years Contributing to Linux Open Source Projects.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Suggestion: Auto download missing dependencies
« Reply #8 on: October 25, 2010, 09:21:52 PM »
Quote
I will add niceties of  default pathing and default ext (.tcz) in next release.
Done. Starting with v3.3 you will be able to use

tce-audit builddb
tce-audit auditall
tce-audit dependson gtk2

Of course does not really apply to AppsAudit only to better support Micro Core / CLI users.
10+ Years Contributing to Linux Open Source Projects.

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: Suggestion: Auto download missing dependencies
« Reply #9 on: October 26, 2010, 07:23:19 AM »
thanks