Closed kduret closed 5 months ago
I tested it with the following yaml:
# nfpm example configuration file
#
# check https://nfpm.goreleaser.com/configuration for detailed usage
#
name: "foo"
arch: "amd64"
platform: "linux"
version: "1.0.0"
section: "default"
priority: "extra"
replaces:
- foobar
provides:
- bar
depends:
- foo
- bar
recommends:
- whatever
suggests:
- something-else
conflicts:
- not-foo
- not-bar
maintainer: "John Doe <john@example.com>"
description: |
FooBar is the great foo and bar software.
And this can be in multiple lines!
vendor: "FooBarCorp"
homepage: "http://example.com"
license: "MIT"
contents:
- src: ./foo
dst: /usr/bin/foo
overrides:
deb:
depends:
- centreon-common (= ${VERSION}-${RELEASE}${DIST})
- centreon-perl-libs (= ${VERSION}-${RELEASE}${DIST})
- centreon-poller (= ${VERSION}-${RELEASE}${DIST})
- "centreon-broker-cbd (>= ${MAJOR_VERSION}~)"
- "centreon-broker-cbd (<< ${NEXT_MAJOR_VERSION}~)"
- lsb-release
- apache2
- php8.1
- php8.1-cli
- php8.1-fpm
- php8.1-curl
- php8.1-intl
- php8.1-xml
- php8.1-dom
- php8.1-gd
- php8.1-mbstring
- php8.1-xml
- php8.1-mysql
- php8.1-zip
- php8.1-snmp
- php8.1-ldap
- php8.1-readline
- php8.1-sqlite3
- php-pear
- rrdtool
- locales
- gettext
- rsync
- brotli
- lua-curl
provides:
- centreon-web-apache
- centreon-web-common
- centreon-widget-engine-status
- centreon-widget-global-health
- centreon-widget-graph-monitoring
- centreon-widget-grid-map
- centreon-widget-httploader
- centreon-widget-host-monitoring
- centreon-widget-hostgroup-monitoring
- centreon-widget-live-top10-cpu-usage
- centreon-widget-live-top10-memory-usage
- centreon-widget-ntopng-listing
- centreon-widget-service-monitoring
- centreon-widget-servicegroup-monitoring
- centreon-widget-single-metric
- centreon-widget-tactical-overview
conflicts:
- centreon-web-apache
- centreon-web-common
- centreon-widget-engine-status
- centreon-widget-global-health
- centreon-widget-graph-monitoring
- centreon-widget-grid-map
- centreon-widget-httploader
- centreon-widget-host-monitoring
- centreon-widget-hostgroup-monitoring
- centreon-widget-live-top10-cpu-usage
- centreon-widget-live-top10-memory-usage
- centreon-widget-ntopng-listing
- centreon-widget-service-monitoring
- centreon-widget-servicegroup-monitoring
- centreon-widget-single-metric
- centreon-widget-tactical-overview
replaces:
- centreon-web-apache
- centreon-web-common
- centreon-widget-engine-status
- centreon-widget-global-health
- centreon-widget-graph-monitoring
- centreon-widget-grid-map
- centreon-widget-httploader
- centreon-widget-host-monitoring
- centreon-widget-hostgroup-monitoring
- centreon-widget-live-top10-cpu-usage
- centreon-widget-live-top10-memory-usage
- centreon-widget-ntopng-listing
- centreon-widget-service-monitoring
- centreon-widget-servicegroup-monitoring
- centreon-widget-single-metric
- centreon-widget-tactical-overview
(basically nfpm init
plus the replaces
your provided)
and with dpkg -I
, and got this:
can you share your entire nfpm.yml? or a minimal reproducible?
Indeed I'm not able to reproduce anymore 😨 Sorry for the noise I will reopen the ticket if reproduce the case
What happened?
when using
overrides.deb.depends
,overrides.deb.provides
andoverrides.deb.conflicts
, only the last element of the list is written in the packageHow can we reproduce this?
create a package
centreon-web
with following section :run
apt show centreon-web
:Only
centreon-widget-tactical-overview
is addednfpm version
Search
Code of Conduct
Additional context
overrides.deb.depends
is okthis breaks our deb packages upgrades :
The following packages have unmet dependencies: centreon-widget-engine-status : Depends: centreon-web (< 23.11~) but 24.04.0-bullseye is to be installed centreon-widget-global-health : Depends: centreon-web (< 23.11~) but 24.04.0-bullseye is to be installed centreon-widget-graph-monitoring : Depends: centreon-web (< 23.11~) but 24.04.0-bullseye is to be installed centreon-widget-grid-map : Depends: centreon-web (< 23.11~) but 24.04.0-bullseye is to be installed centreon-widget-host-monitoring : Depends: centreon-web (< 23.11~) but 24.04.0-bullseye is to be installed centreon-widget-hostgroup-monitoring : Depends: centreon-web (< 23.11~) but 24.04.0-bullseye is to be installed centreon-widget-httploader : Depends: centreon-web (< 23.11~) but 24.04.0-bullseye is to be installed centreon-widget-live-top10-cpu-usage : Depends: centreon-web (< 23.11~) but 24.04.0-bullseye is to be installed centreon-widget-live-top10-memory-usage : Depends: centreon-web (< 23.11~) but 24.04.0-bullseye is to be installed centreon-widget-service-monitoring : Depends: centreon-web (< 23.11~) but 24.04.0-bullseye is to be installed centreon-widget-servicegroup-monitoring : Depends: centreon-web (< 23.11~) but 24.04.0-bullseye is to be installed centreon-widget-single-metric : Depends: centreon-web (< 23.11~) but 24.04.0-bullseye is to be installed