FS#59159 - [pinentry] generates a pacnew (/usr/bin/pinentry.pacnew)
Attached to Project:
Arch Linux
Opened by Sean Enck (enckse) - Wednesday, 27 June 2018, 13:01 GMT
Last edited by Gaetan Bisson (vesath) - Thursday, 28 June 2018, 22:59 GMT
Opened by Sean Enck (enckse) - Wednesday, 27 June 2018, 13:01 GMT
Last edited by Gaetan Bisson (vesath) - Thursday, 28 June 2018, 22:59 GMT
|
Details
Description:
I've never edited or altered /usr/bin/pinentry Additional info: 1.1.0-4 (12/14) upgrading pinentry [######################################] 100% warning: /usr/bin/pinentry installed as /usr/bin/pinentry.pacnew Steps to reproduce: Upgraded pinentry |
This task depends upon
NoUpgrade = file …
All files listed with a NoUpgrade directive will never be touched during a package install/upgrade, and the new files will be installed with a .pacnew extension. These files refer to files in the package archive, so do not include the leading slash (the RootDir) when specifying them. Shell-style glob patterns are allowed. It is possible to invert matches by prepending a file with an exclamation mark. Inverted files will result in previously blacklisted files being whitelisted again. Subsequent matches will override previous ones. A leading literal exclamation mark or backslash needs to be escaped.
This is not a packaging bug.
The PKGBUILD specifically states:
backup=('usr/bin/pinentry')
Perhaps as two separate updates?
It looks like this stems from [0]:
1. It seems like the needs of the few will now spawn this warning for everyone for a while
2. Maybe, per the ticket, if pinentry (the arch supplied script at least) were a "arch-project" someone could spend the time to engineer a etc-based solution (I know, it's a volunteer/not infinite free-time set of people)
[0] https://bugs.archlinux.org/task/58979
P.S. I'd be interested to know how many backups exist of things in "/usr/bin/", I'm guessing (hoping) not many
It seems like if the backup of pinentry is going to stick around and if this isn't newsworthy this should be resolved as wontfix
Of course it mattered. It is a backup file, and backup files become pacnew files *when pacman thinks they've been edited*.
And pacman *only* thinks they've been edited, when 1) they actually were edited, or 2) the maintainer sneaks in a modification to the file in the same pacman transaction with which it became a backup file.
If the file had not been changed in that exact update, it would not be a pacnew.
> I also don't know, without some looking into it, if you don't replace your "/usr/bin/pinentry" with "/usr/bin/pinentry.pacnew" whether you will get new versions of the script or if those will keep getting dumped into pacnew files and we'd be stuck with the pinentry from this upgrade
It's a backup file, by definition since pacman thinks you've edited it yourself it will never give you a new version but just create pacnew files until you merge it by hand.
...
IMHO this should never have been a backup file, because that's not expected behavior for /usr/bin, and no, nothing else to my knowledge does this, and no, this is not newsworthy as nothing even happened. The script still works, the pacnew tells you like all pacnew files, and it's hardly worthy of "onoes, everyone panic and alert the frontpage news because anyone who doesn't get official frontpage news guidance on what to do will end up in trouble".
It's a *minor* bug, but we don't have frontpage news for the other almost 60,000 bugs in Arch Linux history, now do we?
3282
ls | grep pacnew | wc -l
1
Maybe not news, but it's certainly not nominal.
I believe this answers my main question which is that you'd have to merge by hand which means you are stuck with a specific pinentry script until you do this (and in this case even if you never edited it you now have that single script pinned to a specific time-in-point)
This is nice though, wouldn't feel like arch if there wasn't the edgy "go to another distro" whenever you submit a bug request.
Very simple, infinitely flexible, does not make /usr/bin "ugly" by adding backup files willy-nilly.
Also, there's still the issue where you created a backup file in the same update that modified it, thus *forcing* it to be a pacnew for people who did not in fact edit it and have no interest in doing so.