WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How create the file "depends"  (Read 3552 times)

Offline xpto09

  • Newbie
  • *
  • Posts: 30
How create the file "depends"
« on: July 27, 2009, 05:21:45 PM »
I got to create my first package.tce.
How do I create the file "depends".





Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: How create the file "depends"
« Reply #1 on: July 27, 2009, 07:39:46 PM »
Talking about the .dep file? See the wiki page "iconmenuinfo".  For a more complete guide, you can follow "creating extensions"

Offline xpto09

  • Newbie
  • *
  • Posts: 30
Re: How create the file "depends"
« Reply #2 on: July 27, 2009, 08:46:23 PM »
Talking about the .dep file? See the wiki page "iconmenuinfo".  For a more complete guide, you can follow "creating extensions"

Yes.
My doubt is because I have installed all the files below.
I would like to know if there is a method to know this.
Some files I know that are no need, but the most I don't know.

advcomp
atk
atk-devs
base-devs
beaver
binutils
bison
cairo
cairo-devs
cdparanoia
compiletc
curl
dbus
dbus-glib
dejavu-fonts-ttf
diffutils
expat2
expat2-devs
faac
file
findutils
firefox
flash10
flex
fontconfig
fontconfig-devs
gawk
gcc
GConf-2.18.0.1.devs
gdb-6.8_bin
getFlash10
glib1
glib2
glib2-devs
glib2-locales
glibc_add_libs
glibc_apps
glibc_gconv
glibc_i18n_locale
gperf
graphics-libs-1
graphics-libs-1-devs
grep
gtk1
gtk2
gtk2-devs
lcms
libasound
libmad
libtheora
libxml2
libxml2-devs
m4
make
mc
MPlayer-svn-gtk1
nss-nspr
ogg-vorbis
openssl-0.9.8h
opera
ORBit2-2.14.17_devs
OSS
pango
pango-devs
patch
perl_xml
pixman
pixman-devs
pkg-config
sed
util-linux-ng
x11vnc-0.9.6
Xdialog
Xorg-7.4
Xorg-7.4-dev
xulrunner

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: How create the file "depends"
« Reply #3 on: July 27, 2009, 10:20:02 PM »
Usually you can find them out by looking up the application's dependencies/requirements on their documentation/sites/etc.

If there are a set of binaries, running `ldd` on them may help as well.  After that, its probably up to testing.  However, if the application is also on another distro's repository, looking it up there may also help (though they can be different due to different configurations)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14796
Re: How create the file "depends"
« Reply #4 on: July 27, 2009, 11:24:34 PM »
In general, the gcc + helper apps (binutils, bison, compiletc, diffutils, file, findutils, flex, gawk, gcc, gperf, grep, m4, make, patch, perl_xml, pkg-config, sed) will not be required by the compiled application and need not be listed.

The *-dev packages (atk-devs, base-dev, cairo-devs, expat2-devs, fontconfig-devs, GConf-2.18.0.1.devs, glib2-devs, graphics-libs-1-devs, gtk2-devs, libxml2-devs, ORBit2-2.14.17_devs, pango-devs, pixman-devs, Xorg-7.4-dev) will not be required by the compiled application and need not be listed.

Other packages that were used in working with the application (advcomp, beaver, firefox, flash10, glib1, gtk1, opera, perl_xml) will probably not be needed either.

I would recommend to start your application from a terminal window without any of the dep files installed - this way it will "complain" about missing dependencies, which you can add one by one until it stops "complaining" at which point you'll have your list of deps...

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: How create the file "depends"
« Reply #5 on: July 28, 2009, 11:02:43 AM »
I have a script which automatically determines dependencies using ldd. It is fairly easy to run, but I do not know if you would find it useful. If you are interested in it, then send me a message and I can send you what I have. It may help.

If I get it to the point where I think it is ready for general consumption, I'll post it to the scripts area.