WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Zero length .dep files
« on: February 27, 2012, 03: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."

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11568
Re: Zero length .dep files
« Reply #1 on: February 27, 2012, 12:16:06 PM »
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: 7183
    • My Community Forum
Re: Zero length .dep files
« Reply #2 on: February 27, 2012, 12:35:13 PM »
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."

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11568
Re: Zero length .dep files
« Reply #3 on: February 27, 2012, 12:52:41 PM »
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: 7183
    • My Community Forum
Re: Zero length .dep files
« Reply #4 on: February 27, 2012, 12:57:32 PM »
@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: 550
  • nothing can be impeccable in this imperfect world
    • @ß№®M!$
Re: Zero length .dep files
« Reply #5 on: February 27, 2012, 06: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, 06:21:33 PM by AbNoRMiS »
Basic Design Concept © @ß№®M!$
please forgive my terrible english :)

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Zero length .dep files
« Reply #6 on: February 27, 2012, 07: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.