[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: Question about variably depending packages

I accomplish this by

In the control file for test-application_1_i386.deb

Depends: test-database (=@DEB-VERSION@) | test-database-server-installed,
test-storage (=@DEB-VERSION@) | test-storage-server-installed,

Then if the empty package test-database-server-installed  is not installed
it will always get test-database package.

Thanks for your help!

>-----Original Message-----
>From: Goswin von Brederlow [mailto:brederlo@informatik.uni-tuebingen.de]
>Sent: Tuesday, July 18, 2006 10:37 AM
>To: Jerry DuVal
>Cc: debian-mentors@lists.debian.org
>Subject: Re: Question about variably depending packages
>"Jerry DuVal" <jduval@pace2020.com> writes:
>> :o="urn:schemas-microsoft-com:office:office"
>> xmlns:w="urn:schemas-microsoft-com:office:word"
>> xmlns="http://www.w3.org/TR/REC-html40";>
>> Can a package have a variable depends in the control file?  :p>
>Yes. But not the way you mean.
>What you mean is that the depends should change depending on a config
>file on the system. That is not possible. The file could be changed at
>any time and that would alter the depends and break the system. That
>just isn't supported.
>> I have created the following packages:p>
>> :p>
>> test-database_1_i386.deb:p>
>> test-application_1_i386.deb:p>
>> test-storage_1_i386.deb:p>
>You could have a 4th package test-remotedb that asks for the hostname
>of the remote db during configuration (with debconf) and enters that
>IP into the config file. The test-database package on the other hand
>would enter localhost into the config file. test-remotedb and
>test-database could conflict.
>        Goswin
>PS: use ucf for config file handling, don't include the file as
>To UNSUBSCRIBE, email to debian-mentors-REQUEST@lists.debian.org
>with a subject of "unsubscribe". Trouble? Contact

Reply to: