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

Bug#916774: linux-perf metapackage fails to upgrade due to file conflict between linux-perf-4.18 & linux-perf-4.19



On Tue, 2018-12-18 at 21:24 +0800, Paul Wise wrote:
> Package: linux-perf-4.19
> Version: 4.19.9-1
> Severity: serious
> 
> I had the linux-perf metapackage fail to upgrade due to a file conflict
> between linux-perf-4.18 & linux-perf-4.19:
[...]
> dpkg: error processing archive /var/cache/apt/archives/linux-perf-4.19_4.19.9-1_amd64.deb (--unpack):
>  trying to overwrite '/usr/lib/perf/examples/bpf/5sec.c', which is also in package linux-perf-4.18 4.18.20-2
[...]

The linux-perf-* packages are intended to be coinstallable (though in
practice libperl sometimes prevents that).

We have a build-time test that all installed file paths are versioned:

    ! find $(DESTDIR) -name '*perf*' \! -path '*[_-]$(VERSION)*' | grep  .

but now I see that that doesn't work because -path matches against the
full path, which includes $(DESTDIR), which includes $(VERSION).

Ben.

-- 
Ben Hutchings
Anthony's Law of Force: Don't force it, get a larger hammer.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: