Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#67708 - dnsmasq broken as of 2.82-2: failed to commit transaction (conflicting files)

Attached to Project: Arch Linux
Opened by Damian Nowak (Nowaker) - Monday, 24 August 2020, 21:00 GMT
Last edited by Doug Newgard (Scimmia) - Monday, 24 August 2020, 21:43 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

`pacman -Syu` results in:

```
error: failed to commit transaction (conflicting files)
dnsmasq: /usr/bin/dhcp_lease_time exists in filesystem (owned by dnsmasq-contrib)
dnsmasq: /usr/bin/dhcp_release exists in filesystem (owned by dnsmasq-contrib)
dnsmasq: /usr/share/man/man1/dhcp_lease_time.1.gz exists in filesystem (owned by dnsmasq-contrib)
dnsmasq: /usr/share/man/man1/dhcp_release.1.gz exists in filesystem (owned by dnsmasq-contrib)
Errors occurred, no packages were upgraded.
```

`pacman -Syu --ignore dnsmasq` succeeded. After full upgrade, `pacman -Syu` still fails due to a buggy dnsmasq package.

```
% sudo pacman -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
pritunl is up to date
:: Starting full system upgrade...
warning: postgresql: ignoring package upgrade (9.6.5-1 => 12.3-2)
warning: postgresql-libs: ignoring package upgrade (9.6.5-1 => 12.3-2)
warning: postgresql-old-upgrade: ignoring package upgrade (9.6.10-1 => 11.8-2)
resolving dependencies...
looking for conflicting packages...

Package (1) Old Version New Version Net Change

extra/dnsmasq 2.82-1 2.82-2 0.05 MiB

Total Installed Size: 0.78 MiB
Net Upgrade Size: 0.05 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [############################################################################] 100%
(1/1) checking package integrity [############################################################################] 100%
(1/1) loading package files [############################################################################] 100%
(1/1) checking for file conflicts [############################################################################] 100%
error: failed to commit transaction (conflicting files)
dnsmasq: /usr/bin/dhcp_lease_time exists in filesystem (owned by dnsmasq-contrib)
dnsmasq: /usr/bin/dhcp_release exists in filesystem (owned by dnsmasq-contrib)
dnsmasq: /usr/share/man/man1/dhcp_lease_time.1.gz exists in filesystem (owned by dnsmasq-contrib)
dnsmasq: /usr/share/man/man1/dhcp_release.1.gz exists in filesystem (owned by dnsmasq-contrib)
Errors occurred, no packages were upgraded.
```

From what I understand `dnsmasq-contrib` used to be a thing and now the contents of both `dnsmasq` and `dnsmasq-contrib` are consolidated into `dnsmasq`. I guess `dnsmasq` needs `Replaces` and `Conflicts`, or something else to auto-delete `dnsmasq-contrib` as it's no longer needed?

If a manual intervention is needed, it needs an entry at archlinux.org blog/news section.
This task depends upon

Closed by  Doug Newgard (Scimmia)
Monday, 24 August 2020, 21:43 GMT
Reason for closing:  Not a bug
Comment by Doug Newgard (Scimmia) - Monday, 24 August 2020, 21:30 GMT
What does `pacman -Qi dnsmasq-contrib` give you? I can't find any record of it anywhere.
Comment by Damian Nowak (Nowaker) - Monday, 24 August 2020, 21:37 GMT
Oh wow, it was probably a very long-gone AUR package. Sorry for bothering.


```
% pacman -Qi dnsmasq-contrib
Name : dnsmasq-contrib
Version : 2.63-1
Description : dnsmasq contrib
Architecture : x86_64
URL : http://www.thekelleys.org.uk/dnsmasq/doc.html
Licenses : GPL
Groups : None
Provides : None
Depends On : glibc
Optional Deps : None
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 32.00 KiB
Packager : Unknown Packager
Build Date : Sat 26 Jan 2013 03:55:43 PM CST
Install Date : Sat 26 Jan 2013 03:55:47 PM CST
Install Reason : Explicitly installed
Install Script : No
Validated By : Unknown
```

Loading...