Artix Linux Forum

Artix Linux => Package management => Topic started by: ####### on 04 February 2021, 23:39:32

Title: pipewire pacnew files
Post by: ####### on 04 February 2021, 23:39:32
I saw I got these pacnew files when upgrading, but I can't recall modifying the originals? It's not impossible I could have done and forgot I suppose, but I think this only got installed on my OS as a dep or build dep of something else and I couldn't see anything searching .bash_history. Reinstalling the last pipewire version from my cache still had the pacnew's so it's been like that a while.
Code: [Select]
$ ls -l /etc/pipewire/media-session.d/
total 24
-rw-r--r-- 1 root root 1758 Jan  5 15:10 alsa-monitor.conf
-rw-r--r-- 1 root root 2082 Feb  4 01:14 alsa-monitor.conf.pacnew
-rw-r--r-- 1 root root 2034 Feb  4 01:14 bluez-monitor.conf
-rw-r--r-- 1 root root 1542 Jan  5 15:10 media-session.conf
-rw-r--r-- 1 root root 1680 Feb  4 01:14 media-session.conf.pacnew
-rw-r--r-- 1 root root 1163 Feb  4 01:14 v4l2-monitor.conf
Title: Re: pipewire pacnew files
Post by: ndowens on 05 February 2021, 01:31:58
Should be fine, IIRC happens during upgrades normally anyway and also at one point in time pipewire's config format changed, which may be why you got this notice.
Title: Re: pipewire pacnew files
Post by: ####### on 05 February 2021, 03:51:29
Yes, I just thought it worth mentioning as the new files have some new config, and if anyone using pipewire had the same issue but hadn't spotted this it might affect things like their bluetooth connection.
Title: Re: pipewire pacnew files
Post by: alium on 05 February 2021, 09:02:36
A .pacnew file may be created during a package upgrade (pacman -Syu, pacman -Su or pacman -U) to avoid overwriting a file which already exists and was previously modified by the user

https://wiki.archlinux.org/index.php/Pacman/Pacnew_and_Pacsave

you need look the new config and look what i new in this new config and transfer changes to your file ...
but it is absolutely fine and the expected function ;-)
Title: Re: pipewire pacnew files
Post by: Roberto on 05 February 2021, 19:39:26
I know the topic is already solved, but I wanted to add, that you can compare the two files with diffuse, for example.
With this package you can compare 2 files very easily.
Title: Re: pipewire pacnew files
Post by: negative on 17 March 2021, 23:51:03
i know this has been solved. Diffuse works when comparing single files (i think). I have been using meld, since i can compare by folders. Diffuse looks better though, wish it would compare files in folders
Title: Re: pipewire pacnew files
Post by: strajder on 18 March 2021, 20:21:50
I find it a lot easier to type (in this example):
Code: [Select]
$ diff /etc/pipewire/media-session.d/alsa-monitor.conf{.pacnew,} | less
You can press Tab to complete parts of the path when typing.