DPKG 当量问题

DPKG 当量问题

基本上,这是我的问题的要点:

我已经编译了自己的 MySQL 版本,并在其中加入了一些 Sphinx magic。但是,由于它是从源代码编译的,而不是从任何包管理系统安装的,因此任何需要 mysql-common 的东西仍然需要包管理器来安装它。对于 dpkg,这个问题的解决方案似乎是 equiv 包。我已经使用 equiv-control 和 equiv-build 创建了一个 equiv 包,它似乎构建得很好,但我无法让它真正认为我已经安装了 mysql-common 包。依赖于该包的所有内容仍然需要从 repo 安装它。

下面我附上了使用 equiv-build 构建 .deb 的文档。您能看出这有什么问题吗?对可能的修复有什么建议吗?或者甚至欢迎提供我的问题的替代解决方案。

Package: mysql-common-sphinx
Version: 1.0
Maintainer: Michael Wright <email address hidden>
# Pre-Depends: <comma-separated list of packages>
# Depends: <comma-separated list of packages>
# Recommends: <comma-separated list of packages>
# Suggests: <comma-separated list of packages>
Provides: mysql-common
Replaces: mysql-common
# Architecture: all
# Copyright: <copyright file; defaults to GPL2>
# Changelog: <changelog file; defaults to a generic changelog>
# Readme: <README.Debian file; defaults to a generic one>
# Extra-Files: <comma-separated list of additional files for the doc directory>
Description: mysql-sphinx package
  mysql-sphinx package

答案1

你真的安装了你构建的 equivs 包吗?使用 dpkg -i 执行此操作包裹名字

看起来您展示的内容应该有效。您可以尝试将包命名为 mysql-common 而不是 mysql-common-sphinx。您可能需要调整版本号,使其与实际 mysql-common 包的版本号相同。

相关内容