Re: Create custom package



On 2008-01-31 15:25 +0100, Kunszt Árpád wrote:

I want to create an "alternate" package for libmysqlclient15off. It
means I tried to create an dvrt-libmysqlclient15off package which can
replace the libmysqlclient15off package in the dependency checks. The
control files relevant part is now:

Package: dvrt-libmysqlclient15off
Section: libs
Architecture: any
Depends: dvrt-mysql-common (>= ${Source-Version}), ${shlibs:Depends}
Conflicts: libmysqlclient15, libmysqlclient15off
Replaces: libmysqlclient15, libmysqlclient15off
Description: mysql database client library
MySQL is a fast, stable and true multi-user, multi-threaded SQL database
server. SQL (Structured Query Language) is the most popular database query
language in the world. The main goals of MySQL are speed, robustness and
ease of use.
.
This package includes the client library.
Provides: libmysqlclient15off

But when I try to install a package which depends on
libmysqlclient15off, I get error like this:

server01-vz16:~/packages/mysql/5.0/work/mysql-dfsg-5.0-5.0.32# apt-get
install libdbd-mysql-perl dvrt-libmysqlclient15off
Reading package lists... Done
Building dependency tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libdbd-mysql-perl: Depends: libmysqlclient15off (>= 5.0.24-2)
E: Broken packages

What am I doing wrong?

Nothing, basically. The bad news is that dpkg does currently not allow
versioned `Provides'; see http://bugs.debian.org/24934 and its
relatives. Until that is resolved¹, you're simply out of luck. :-(

PS: Sorry for my English.

No need for that, your English seems OK to me (though I'm not a native
speaker myself).

PPS: Changing just the version number of the package and leave it's name
is not an option now.

Then you probably have to implement versioned `Provides' in dpkg.

Sven

¹ Given that the bug is only at `wishlist' severity and dpkg has a
plethora of other open bugs, this will probably not happen any time
soon, if at all.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Create custom package
    ... I want to create an "alternate" package for libmysqlclient15off. ... replace the libmysqlclient15off package in the dependency checks. ... Package: dvrt-libmysqlclient15off ...
    (Debian-User)
  • Re: dip Notions 2 Major Errors
    ... primary arguments against the DIP are as follows: ... applying the DIP never changes the dependency so that 'y ... To the extent that the DIP inverts dependencies at the package level, ... That's a form of inversion, ...
    (comp.object)
  • PHP Classes suggestions (was Re: Recommendations for PHP Form Validation Script)
    ... Class dependency is not hard. ... you locate the dependency package and then copy it to the clipboard. ... I don't know for other developers, ... I believe in opening the source code of projects when the advantages ...
    (comp.lang.php)
  • Re: dip Notions 2 Major Errors
    ... B has incoming dependency from class A' becomes 'class B has outgoing ... The inversion lies in the fact that the relation in which class B ... This inversion is important in the DIP, for the DIP calls for depending on ... 'package x depends on package y' becomes 'package y depends ...
    (comp.object)
  • Re: Is there a UNIX standard for where to install local tools?
    ... First, you loose dependency tracking. ... Very old Red Hats with RPM package manager could encounter such problem. ... I realize most distributions install it. ... in the world out there more people use package managers ...
    (comp.unix.shell)