Is this normal? [warning: /usr/bin/pinentry installed as /usr/bin/pinentry.pacnew]

unstable
update
pacnew

#1

When installing the latest unstable update, I received the warning:

warning: /usr/bin/pinentry installed as /usr/bin/pinentry.pacnew

This seems odd because .pacnew files are usually created when a .conf file gets updated, not for a binary in /usr/bin/.

Should I do anything about this?


Pacui doubts
#2

This is what pinentry file contains in testing and unstable on my end:

#!/bin/sh
test -e /usr/lib/libgtk-x11-2.0.so.0 && exec /usr/bin/pinentry-gtk-2  "$@"
exec /usr/bin/pinentry-curses "$@"

if you compare the two on your system and the .pacnew one has something different, then the old one might need to be replaced/edited/updated …


#3

Here are the 2 files. They contain the same commands with different spacing.

/usr/bin/pinentry

#!/bin/sh
test -e /usr/lib/libgtk-x11-2.0.so.0 && exec /usr/bin/pinentry-gtk-2  "$@"
exec /usr/bin/pinentry-curses "$@"

/usr/bin/pinentry.pacnew

#!/bin/sh

test -e /usr/lib/libgtk-x11-2.0.so.0 &&
exec /usr/bin/pinentry-gtk-2  "$@"

exec /usr/bin/pinentry-curses "$@"

#4

I’m going to make the update on one of my unstable installs and see if i notice something off after …


#5

I just checked the PKGBUILD and found this line:

+backup=('usr/bin/pinentry')

That explains why it generated a .pacnew file.

EDIT: I just found why this was added to the PKGBUILD.
https://bugs.archlinux.org/task/58979


#6

Then i will mark your last reply as solution.
Interestingly enough is that on one of my plasma unstable there was no .pacnew created. On another install there was and also on my Gnome unstable install. The difference is as you pointed out, no issues after reboot.


#7

for me, with my kde, .pacnew is bad, its :
exec /usr/bin/pinentry-qt "$@"
acapture_0627_142414

choise is :

/usr/bin/pinentry-curses
/usr/bin/pinentry-emacs
/usr/bin/pinentry-gnome3
/usr/bin/pinentry-gtk-2
/usr/bin/pinentry-qt
/usr/bin/pinentry-tty

or we can write tests as :

[[ "$DESKTOP_SESSION" =~ "plasma" ]] &&  exec /usr/bin/pinentry-qt  "$@"
[[ "$DESKTOP_SESSION" =~ "xfce" ]] &&  exec /usr/bin/pinentry-gtk-2  "$@"
[[ "$DESKTOP_SESSION" =~ "gnome" ]] &&  exec /usr/bin/pinentry-gnome3  "$@"
exec /usr/bin/pinentry-tty "$@"

[Testing Update] 2018-06-27 - Kernels, Plasma 5.13.2, LibreOffice, Firefox, Haskell, Python
closed #8

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.