FS#13917 - File conflict - ntp-4.2.4p6-2

Attached to Project: Arch Linux
Opened by Matthew Gyurgyik (pyther) - Sunday, 22 March 2009, 14:08 GMT
Last edited by Eric Belanger (Snowman) - Tuesday, 24 March 2009, 05:38 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Kevin Piche (kpiche)
Vesa Kaihlavirta (vegai)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: When trying to upgrade there is a file conflict with the ntpd man page.

Targets (2): ntp-4.2.4p6-2 tzdata-2009c-1

Total Download Size: 0.00 MB
Total Installed Size: 6.61 MB

Proceed with installation? [Y/n] y
checking package integrity...
(2/2) checking for file conflicts [#########################] 100%
error: could not prepare transaction
error: failed to commit transaction (conflicting files)
ntp: /usr/share/man/man8/ntpd.8.gz exists in filesystem
Errors occurred, no packages were upgraded.


Additional info:
* x86_64
* Running testing, however ntp-4.2.4p6-2 is in extra

This task depends upon

Closed by  Eric Belanger (Snowman)
Tuesday, 24 March 2009, 05:38 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in ntp-4.2.4p6-3
Comment by Allan McRae (Allan) - Sunday, 22 March 2009, 14:12 GMT
What does it conflict with?
pacman -Qo /usr/share/man/man8/ntpd.8.gz
Comment by Matthew Gyurgyik (pyther) - Sunday, 22 March 2009, 14:14 GMT
It conflict with openntpd.

tux:~ $ pacman -Qo /usr/share/man/man8/ntpd.8.gz
/usr/share/man/man8/ntpd.8.gz is owned by openntpd 3.9p1-7

Should ntpd conflict with openntpd?
Comment by Allan McRae (Allan) - Sunday, 22 March 2009, 14:21 GMT
Well, I'm not sure how they both would work together... so a conflict would probably be good.
Comment by Jens Adam (byte) - Sunday, 22 March 2009, 16:21 GMT
I wouldn't like a package conflict here.
You could run openntpd as daemon and still want to use the utilities (ntpq/ntptrace/ntpdate etc) from the official ntp distribution.
Comment by Eric Belanger (Snowman) - Sunday, 22 March 2009, 17:44 GMT
in the previous ntp package, I think that this man page was being installed as /usr/share/man/man1/ntpd.1.gz

I could just move it (and maybe the others that are in man8/).
Comment by Eric Belanger (Snowman) - Sunday, 22 March 2009, 19:16 GMT
To fix it, apply this patch to the PKGBUILD. My internet connection is very unstable today. I don't want to risk uploading a broken package. I'll fix it tomorrow if my connection is better, unless someone else fixes it in the meanwhile.
diff:
5c5
< pkgrel=3
---
> pkgrel=2
37,39c37,39
< # install man pages
< install -d $startdir/pkg/usr/share/man/man{1,5}
< install -m644 $startdir/src/man/*.5 \
---
> # install and remove duplicate man pages
> install -d $startdir/pkg/usr/share/man/man{5,8}
> install -D -m644 $startdir/src/man/*.5 \
41,44c41,45
< for i in $startdir/src/man/*.8 ; do
< install -m644 $i $startdir/pkg/usr/share/man/man1/$(basename $i .8).1 || return 1
< done
< mv $startdir/pkg/usr/share/man/man1/keygen.1 $startdir/pkg/usr/share/man/man1/ntp-keygen.1 || return 1
---
> install -D -m644 $startdir/src/man/*.8 \
> $startdir/pkg/usr/share/man/man8/ || return 1
> rm $startdir/pkg/usr/share/man/man1/{ntpd.1,ntpdc.1,ntpdsim.1,ntpq.1,ntp-keygen.1}
> rm $startdir/pkg/usr/share/man/man8/ntpdsim.8
> mv $startdir/pkg/usr/share/man/man8/keygen.8 $startdir/pkg/usr/share/man/man8/ntp-keygen.8

Loading...