You are not logged in.

#1 2007-03-09 21:00:23

nadavvin
Member
Registered: 2006-11-29
Posts: 105

What to do with optional and recommend dependencies?

Hello

I create a package for graphviz:
http://aur.archlinux.org/packages.php?d … =1&ID=2951


The problem is the dependencies list here:
http://www.graphviz.org/Download_source.php

include recommend and optional.

Should I include them?

Currently it include most of them.

If there no need, how do I change the package that I upload?
and set the dependencies to:

depends=(expat gettext)
makedepends=(ghostscript swig)

Which group should I need to associate this package?

Offline

#2 2007-03-09 21:10:52

skymt
Member
Registered: 2006-11-27
Posts: 443

Re: What to do with optional and recommend dependencies?

According to the Arch Packaging Standards, the right way to handle optional dependencies is to print a message (from the .install script) notifying the user about the missing functionality and what packages they need to install to enable it.

However, in the case of Graphviz, some important functionality (Pango, Cairo, and PNG support) is disabled without the optional dependencies. I'd just depend on everything and let the user modify the PKGBUILD if they want a lighter build.


To replace a package in the AUR, just upload it like you did the first time and tell it to overwrite the previous version.


I'd say Graphviz fits pretty well in the science category.

Offline

#3 2007-03-09 21:22:53

nadavvin
Member
Registered: 2006-11-29
Posts: 105

Re: What to do with optional and recommend dependencies?

thanks.

I get answers very fast here.

How do you do this? there is any RSS here?

I will edit the package to warn about the possibility to remove the optional dependency.

Offline

#4 2007-03-09 21:31:31

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: What to do with optional and recommend dependencies?

graphviz is already in the extra repo. If this package for a devel version? If yes, change the name to graphviz-devel and remove the old one from AUR. If no, remove it from AUR.

Offline

#5 2007-03-09 21:58:10

nadavvin
Member
Registered: 2006-11-29
Posts: 105

Re: What to do with optional and recommend dependencies?

Snowman wrote:

graphviz is already in the extra repo. If this package for a devel version? If yes, change the name to graphviz-devel and remove the old one from AUR. If no, remove it from AUR.

Why does it happen me sad

It is the last development so I change to graphviz-devel

http://aur.archlinux.org/packages.php?d … =1&ID=9748

Last edited by nadavvin (2007-03-09 22:04:03)

Offline

#6 2007-03-09 22:34:07

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: What to do with optional and recommend dependencies?

nadavvin wrote:
Snowman wrote:

graphviz is already in the extra repo. If this package for a devel version? If yes, change the name to graphviz-devel and remove the old one from AUR. If no, remove it from AUR.

Why does it happen me sad

Probably because you don't check the official repo and AUR before making PKGBUILDs. tongue

Offline

Board footer

Powered by FluxBB