LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-20-2019, 09:54 AM   #1
Xsane
Member
 
Registered: Jan 2014
Posts: 183

Rep: Reputation: 131Reputation: 131
Broken dot-new config handler


I posted this in 'Requests for -current', but it didn't get any traction; so lets
try a separate thread. Any comments?

The dot-new handler falls down when the configuration file has a version in its
path. For example, every upgrade of the ghostscript package is leaving cruft due
to cidfmap.new

Code:
/usr/share/ghostscript/
├── 9.22
│** └── Resource
│**     └── Init
│**         └── cidfmap
├── 9.23
│** └── Resource
│**     └── Init
│**         └── cidfmap
├── 9.24
│** └── Resource
│**     └── Init
│**         └── cidfmap
├── 9.25
│** └── Resource
│**     └── Init
│**         └── cidfmap
├── 9.26
│** └── Resource
│**     └── Init
│**         └── cidfmap
The only useful instance for cidfmap.new would be a rebuild
(same version; same path).

Any sys-admin using a custom cidfmap must be used to reinstalling it
on every upgrade; so having to do so on a rebuild should not be a
surprise. Meaning, that IMO cidfmap should not be using the dot-new
handler. I suppose the handler could be rewritten for this corner
case, but it probably wouldn't be a good ROI.
 
Old 12-20-2019, 10:33 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,083

Rep: Reputation: 6880Reputation: 6880Reputation: 6880Reputation: 6880Reputation: 6880Reputation: 6880Reputation: 6880Reputation: 6880Reputation: 6880Reputation: 6880Reputation: 6880
I don't see how it would be broken, 'slackpkg new-config' handles all *.new files in /etc/ properly.
Your issue is with the files that are left behind by 'upgradepkg'. And since the Slackware pkgtools do not have a post-uninstall function, there's not a lot to be done about it.
 
Old 12-20-2019, 11:23 AM   #3
Xsane
Member
 
Registered: Jan 2014
Posts: 183

Original Poster
Rep: Reputation: 131Reputation: 131
Quote:
Originally Posted by Alien Bob View Post
Your issue is with the files that are left behind by 'upgradepkg'. And since the Slackware pkgtools do not have a post-uninstall function, there's not a lot to be done about it.
Hi Eric,
As I said, the solution in this case is to not use cidfmap.new since it does more harm then good.

If I hear you correctly, you take issue with me calling the handler 'broken'. Fair enough. The end result for these corner cases is sub-optimal. I suspect there may be a way to handle it without post-uninstall functions; but I am not suggesting that should be done. As I said, its likely a poor ROI.
 
Old 12-20-2019, 11:25 AM   #4
Xsane
Member
 
Registered: Jan 2014
Posts: 183

Original Poster
Rep: Reputation: 131Reputation: 131
It also happened with imagemagick 6 -> 7

Code:
/etc/ImageMagick-6/
├── coder.xml
├── colors.xml
├── delegates.xml
├── log.xml
├── magic.xml
├── mime.xml
├── policy.xml
├── quantization-table.xml
├── thresholds.xml
├── type-apple.xml
├── type-dejavu.xml
├── type-ghostscript.xml
├── type-urw-base35.xml
├── type-windows.xml
└── type.xml

imagemagick-7.0.9_8-x86_64-1:
etc/ImageMagick-7/colors.xml.new
etc/ImageMagick-7/delegates.xml.new
etc/ImageMagick-7/log.xml.new
etc/ImageMagick-7/mime.xml.new
etc/ImageMagick-7/policy.xml.new
etc/ImageMagick-7/quantization-table.xml.new
etc/ImageMagick-7/thresholds.xml.new
etc/ImageMagick-7/type-apple.xml.new
etc/ImageMagick-7/type-dejavu.xml.new
etc/ImageMagick-7/type-ghostscript.xml.new
etc/ImageMagick-7/type-urw-base35.xml.new
etc/ImageMagick-7/type-windows.xml.new
etc/ImageMagick-7/type.xml.new
Other brittle paths where it could happen:
Code:
gtk+3-3.24.13-x86_64-1:
 etc/gtk-3.0/gtkrc.new
 etc/gtk-3.0/im-multipress.conf.new

gtk+2-2.24.32-x86_64-2:
 etc/gtk-2.0/im-multipress.conf.new

blueman-2.1.1-x86_64-1:
 etc/polkit-1/rules.d/30-blueman-netdev-allow-access.rules.new

iproute2-5.4.0-x86_64-1:
 etc/iproute2/bpf_pinning.new
 etc/iproute2/ematch_map.new
 etc/iproute2/group.new
 etc/iproute2/nl_protos.new
 etc/iproute2/rt_dsfield.new
 etc/iproute2/rt_protos.new
 etc/iproute2/rt_realms.new
 etc/iproute2/rt_scopes.new
 etc/iproute2/rt_tables.new

cups-2.3.1-x86_64-1:
 etc/dbus-1/system.d/cups.conf.new

polkit-0.116-x86_64-1:
 etc/polkit-1/rules.d/10-org.freedesktop.NetworkManager.rules.new
 etc/polkit-1/rules.d/20-plugdev-group-mount-override.rules.new

GConf-3.2.6-x86_64-4:
 etc/gconf/2/evoldap.conf.new
 etc/gconf/2/path.new

system-config-printer-1.5.12-x86_64-1:
 etc/dbus-1/system.d/com.redhat.NewPrinterNotification.conf.new
 etc/dbus-1/system.d/com.redhat.PrinterDriversInstaller.conf.new
 
Old 12-22-2019, 01:06 PM   #5
bormant
Member
 
Registered: Jan 2008
Posts: 380

Rep: Reputation: 211Reputation: 211Reputation: 211
/etc/gtk-2.0/
/etc/gtk-3.0/
/etc/dbus-1/
/etc/polkit-1/
/etc/iproute2/
are false positive.
 
Old 04-08-2020, 11:00 AM   #6
Xsane
Member
 
Registered: Jan 2014
Posts: 183

Original Poster
Rep: Reputation: 131Reputation: 131
Quote:
Originally Posted by Alien Bob View Post
Slackware pkgtools do not have a post-uninstall function,
They do now
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible when posting in bbs dot archlinux dot org there is no way to attach text? stf92 Arch 2 07-19-2018 08:19 PM
dot space dot binary_0011 Linux - Newbie 5 09-14-2006 07:43 AM
<0>Kernel panic: Aiee, killing interrupt handler! In interrupt handler - not syncing mrb Linux - Newbie 2 01-09-2005 09:47 AM
useradd not accepting dot so i am not able to use dot in mail id hanu_raob Linux - General 5 05-13-2004 07:04 AM
dot and dot dot gag Linux - Newbie 4 10-17-2003 05:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration