avsm / opam-installext

OPAM plugin to install external system libraries alongside OPAM packages
5 stars 1 forks source link

Use equivs for debian based distribution #2

Open bobot opened 9 years ago

bobot commented 9 years ago

The debian script use sudo apt-get install -qq -y $depext. So $depext is said to be manually installed without any informations about the reason. Months later one will forget and remove it because no debian package needs $depext, and days later one try to use a program (installed with opam) that is not working anymore.

Could the debian script use equivs that allows to create metapackage? Are you open to such merge-request?

Benefits:

An example for lablgtk: the command equivs-build opam-lablgtk-dep creates opam-lablgtk-dep_1.0_all.deb.

cat opam-lablgtk-dep:

### Commented entries have reasonable defaults.
### Uncomment to edit them.
# Source: <source package name; defaults to package name>
Section: misc
Priority: optional
# Homepage: <enter URL here; no default>
Standards-Version: 3.9.2

Package: opam-lablgtk-dep
# Version: <enter version here; defaults to 1.0>
# Maintainer: Your Name <yourname@example.com>
# Pre-Depends: <comma-separated list of packages>
Depends: libgtksourceview2.0-dev, libgtk2.0-dev, libgtkgl2.0-dev, libgnomecanvas2-dev
# Recommends: <comma-separated list of packages>
# Suggests: <comma-separated list of packages>
# Provides: <comma-separated list of packages>
# Replaces: <comma-separated list of packages>
# 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>
# Files: <pair of space-separated paths; First is file to include, second is destination>
#  <more pairs, if there's more than one file to include. Notice the starting space>
Description: Keep the dependencies of lablgtk opam met
 Keep the dependencies of lablgtk opam met

aptitude show opam-lablgtk-dep:

Paquet : opam-lablgtk-dep                               
Nouveau: oui
État: installé
Automatiquement installé: non
Version : 1.0
Priorité : optionnel
Section : misc
Responsable : François Bobot <francois@bobot.eu>
Architecture : all
Taille décompressée : 26,6 k
Dépend: libgtksourceview2.0-dev, libgtk2.0-dev, libgtkgl2.0-dev, libgnomecanvas2-dev
Description : Keep the dependencies of lablgtk opam met
 Keep the dependencies of lablgtk opam met
avsm commented 9 years ago

This sounds very sensible indeed. Pull request most welcome!

avsm commented 9 years ago

This package is now deprecated in favour of opam depext in https://github.com/ocaml/opam-depext. Any chance you could create this issue there? I think the functionality is still most welcome, and easier to add into the new OCaml-based plugin.

UnixJunkie commented 5 years ago

Making it harder to not break opam-installed software seems a yummy proposition.