WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Zero length .dep files  (Read 2302 times)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7035
    • My Community Forum
Zero length .dep files
« on: February 27, 2012, 12:55:17 AM »
Following empty .dep files are in 4.x repo:

fftw.tcz.dep
flightgear-data.tcz.dep
ftgl.tcz.dep
gc.tcz.dep
kde-wallpapers.tcz.dep
kdeartwork.tcz.dep
libfftw3f.tcz.dep
libiconv.tcz.dep
libva.tcz.dep
mobile-broadband-provider-info.tcz.dep
openslp-doc.tcz.dep
oxygen-icon-theme.tcz.dep
poedit-doc.tcz.dep
qhull.tcz.dep
raptor-doc.tcz.dep
rasqal-doc.tcz.dep
ser2net.tcz.dep
udev-lib.tcz.dep
Béla
Ham Radio callsign: HA5DI

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

Online Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 7400
Re: Zero length .dep files
« Reply #1 on: February 27, 2012, 09:16:06 AM »
Hi bmarkus
I think those empty files may actually serve a purpose. If you click on the  Size  tab in AppBrowser for those
extensions, you can tell whether or not they are installed. I recently submit an extension called  findshares.
Since it had no dependencies, I did not include a dependency file. If you click on the  Size  tab for that
extension, you get a blank page.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7035
    • My Community Forum
Re: Zero length .dep files
« Reply #2 on: February 27, 2012, 09:35:13 AM »
Hi bmarkus
I think those empty files may actually serve a purpose. If you click on the  Size  tab in AppBrowser for those
extensions, you can tell whether or not they are installed. I recently submit an extension called  findshares.
Since it had no dependencies, I did not include a dependency file. If you click on the  Size  tab for that
extension, you get a blank page.

OK, I can't decide wheter it is a bug or a feature :) I havn't seen a policy to add empty .dep file to packages as a requirement. Also one can say that lack of .dep may indicate either a missing .dep by failure or a blank .dep while an empty .dep is clearly shows an intentional empty one.

Lets see the official statement :)
Béla
Ham Radio callsign: HA5DI

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

Online Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 7400
Re: Zero length .dep files
« Reply #3 on: February 27, 2012, 09:52:41 AM »
Hi bmarkus
I think it's a feature. I'm guessing that the reason my extension returns a blank is because the extension name is
derived by stripping  .dep  from the end of the dependency file, which doesn't exist, so nothing is found to display.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7035
    • My Community Forum
Re: Zero length .dep files
« Reply #4 on: February 27, 2012, 09:57:32 AM »
@Jason

do we have to add emprty .dep files to submitted packages when no dependencies?
Béla
Ham Radio callsign: HA5DI

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

Offline AbNoRMiS

  • Hero Member
  • *****
  • Posts: 551
  • nothing can be impeccable in this imperfect world
    • @ß№®M!$
Re: Zero length .dep files
« Reply #5 on: February 27, 2012, 03:16:09 PM »
i think that this empty dep-files stayed after cleaning excess dependencies from them by a script
need ask to repository administrator, it seems to me i remember that someone said about this
« Last Edit: February 27, 2012, 03:21:33 PM by AbNoRMiS »
Basic Design Concept © @ß№®M!$
please forgive my terrible english :)

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9668
Re: Zero length .dep files
« Reply #6 on: February 27, 2012, 04:57:28 PM »
To my knowledge, extensions without dependencies simply have no dep file. 

The audit script does not presently throw up a signal when there is an empty dep file, I may add that in. 

Not to pick on Arslan in his absence, but it seems that the empty dep files mainly belong to his stuff upon a quick glance.  I imagine that his build script echoes entries into the dep files, and when there are no deps then an empty dep file is created by echoing " ", perhaps.