Bug#964245: patch from pull request

2020-07-06 Thread Edward Shornock

>From dab0c1f9abda5b17cc7488f89a6fe08be7bc56a0 Mon Sep 17 00:00:00 2001
From: wisp3rwind <17089248+wisp3rw...@users.noreply.github.com>
Date: Tue, 9 Jun 2020 19:34:31 +0200
Subject: [PATCH] compatibility with breaking changes to the ast module

new in 3.10, also backported to 3.8 and 3.9: https://github.com/python/cpython/pull/20649
In fact, our generation of some Literals has been invalid since Python
3.4, fix that too.
---
 beets/util/functemplate.py | 29 -
 1 files changed, 20 insertions(+), 9 deletions(-)

Index: beets-1.4.9/beets/util/functemplate.py
===
--- beets-1.4.9.orig/beets/util/functemplate.py
+++ beets-1.4.9/beets/util/functemplate.py
@@ -73,15 +73,26 @@ def ex_literal(val):
 """An int, float, long, bool, string, or None literal with the given
 value.
 """
-if val is None:
-return ast.Name('None', ast.Load())
-elif isinstance(val, six.integer_types):
-return ast.Num(val)
-elif isinstance(val, bool):
-return ast.Name(bytes(val), ast.Load())
-elif isinstance(val, six.string_types):
-return ast.Str(val)
-raise TypeError(u'no literal for {0}'.format(type(val)))
+if sys.version_info[:2] < (3, 4):
+if val is None:
+return ast.Name('None', ast.Load())
+elif isinstance(val, six.integer_types):
+return ast.Num(val)
+elif isinstance(val, bool):
+return ast.Name(bytes(val), ast.Load())
+elif isinstance(val, six.string_types):
+return ast.Str(val)
+raise TypeError(u'no literal for {0}'.format(type(val)))
+elif sys.version_info[:2] < (3, 6):
+if val in [None, True, False]:
+return ast.NameConstant(val)
+elif isinstance(val, six.integer_types):
+return ast.Num(val)
+elif isinstance(val, six.string_types):
+return ast.Str(val)
+raise TypeError(u'no literal for {0}'.format(type(val)))
+else:
+return ast.Constant(val)
 
 
 def ex_varassign(name, expr):


Bug#964245: (no subject)

2020-07-06 Thread Edward Shornock
It looks like this was fixed in https://github.com/beetbox/beets/pull/3621



Bug#929846: firefox: Fails to load https sites after today's upgrade to 67.0-3

2019-06-01 Thread Edward Shornock
On Sun, 2 Jun 2019 07:24:04 +0900 Mike Hommey  wrote:
> On Sat, Jun 01, 2019 at 07:59:24PM +0300, jim_p wrote:
> > Package: firefox
> > Version: 67.0-3
> > Severity: normal
> >
> > Dear Maintainer,
> >
> > After today's update to 67.0-3, firefox fails to open every https
site, popping
> > up the "NS_ERROR_NET_INADEQUATE_SECURITY" error.
> >
> > It was working as it should on 67.0-1 all these days and on 67.0-2
since this
> > morning.
>

> Try upgrading libnss3.


This solved the problem for me.

>
> Mike
>
>



Bug#341397: artwiz-cursor: package is indeed *horribly* broken

2006-12-19 Thread Edward Shornock
Package: artwiz-cursor
Followup-For: Bug #341397

I don't know why I tried to install this package, but after the
installation failed miserably, I tried to purge it. At the time the
purging seemed to be successful.

Upon restarting Xorg, I got the following:


Build Date: 07 July 2006
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Tue Dec 19 20:47:09 2006
(==) Using config file: "/etc/X11/xorg.conf"
xkb_keycodes { include "xfree86+aliases(qwerty)" };
xkb_types{ include "complete" };
xkb_compatibility{ include "complete" };
xkb_symbols  { include "pc(pc105)+us" };
xkb_geometry { include "pc(pc104)" };

Fatal server error:
could not open default cursor font 'cursor'
XIO:  fatal IO error 104 (Connection reset by peer) on X server ":0.0"
  after 0 requests (0 known processed) with 0 events remaining.


Hilarity indeed. =P

A simple `dpkg-divert --remove /usr/share/fonts/X11/misc/cursor.pcf.gz
&& apt-get --reinstall install xfonts-base` fixed the damage
though.


-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (600, 'testing'), (500, 'testing-proposed-updates'), (50, 
'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.19-cks2
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)


signature.asc
Description: Digital signature


Bug#352546: cyrus21-common: the postinst script doesn't cope with an already existing system user "cyrus"

2006-02-12 Thread Edward Shornock
On Sun, Feb 12, 2006 at 05:33:58PM +0100, Michael Lipka wrote:
> Package: cyrus21-common
> Version: 2.1.18-3
> Severity: grave
> Justification: renders package unusable

Actually, as Henrique pointed out to me:

On Sun, Feb 12, 2006 at 08:24:11AM -0200, Henrique de Moraes Holschuh wrote:
> On Fri, 10 Feb 2006, Edward J. Shornock wrote:
> > ii  adduser 3.82 Add and remove users and groups
>
> 3.82 is buggy, a bug has already been reported.  This is no cyrus fault.

Reference #352225.  Cyrus is innocent. This will be fixed by the upload of 
adduser 3.83.


signature.asc
Description: Digital signature