Package: mailcap
Version: 3.69
Severity: normal
Tags: patch

Dear Maintainer,

In update-mime, setting all variable with 'my' prevents them from
being updated by the conf file (/etc/update-mime.conf). Setting them
to 'our' solves this issue. We use this so that locally installed
applications won't mess up the distribution's /usr/lib (specifically
$appsdir and $mimedir).

Regards,
    Yair.

-- System Information:
Debian Release: 11.2
  APT prefers stable-security
  APT policy: (910, 'stable-security'), (900, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.79-aufs-1 (SMP w/1 CPU thread)
Locale: LANG=en_IL.UTF-8, LC_CTYPE=en_IL.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en_GB:en
Shell: /bin/sh linked to /usr/bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages mailcap depends on:
ii  media-types  4.0.0
ii  perl         5.32.1-4+deb11u2

Versions of packages mailcap recommends:
ii  bzip2     1.0.8-4
ii  file      1:5.39-3
ii  xz-utils  5.2.5-2

mailcap suggests no packages.

-- Configuration Files:
/etc/mailcap.order changed [not included]

-- no debconf information
--- /usr/sbin/update-mime       2021-02-25 20:24:36.000000000 +0200
+++ /tmp/update-mime    2022-02-08 16:10:34.551409405 +0200
@@ -26,8 +26,8 @@
 my $conffile   = "/etc/update-mime.conf";
 my $mailcap    = "/etc/mailcap";
 my $mailcapdef = "/usr/lib/mime/mailcap";
-my $mimedir    = "/usr/lib/mime/packages";
-my $appsdir    = "/usr/share/applications";
+our $mimedir   = "/usr/lib/mime/packages";
+our $appsdir   = "/usr/share/applications";
 my $orderfile  = "/etc/mailcap.order";
 my $defpriority        = 5;
 my $localgen   = 0;

Reply via email to