Bug#1051326: systemsettings: A lot of icons are just black squares

2023-09-06 Thread Jan Gerber
Package: systemsettings
Version: 4:5.27.7-1
Severity: important

Dear Maintainer,

opening systemsettings while running gnome-shell most of the interface
is just black squares. The Appearance tab is completly empty.
This also results in black squares in ohter Qt based applications like
kdenlive.


Opening systemsettings in a temrinal I get some errors that might be
relevant:

QSocketNotifier: Can only be used with threads started with QThread
kf.kirigami: Failed to find a Kirigami platform plugin
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/ScrollablePage.qml:200:9:
 QML MouseArea: Binding loop detected for property "width"
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/ScrollablePage.qml:200:9:
 QML MouseArea: Binding loop detected for property "width"
kf.kirigami: Failed to find a Kirigami platform plugin
QSGTextureAtlas: texture atlas allocation failed, code=501
QSGTextureAtlas: texture atlas allocation failed, code=501
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
org.kde.kf5.kwindowsystem.kwayland: This compositor does not support the Shadow 
interface



-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.5.0-0-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages systemsettings depends on:
ii  kio 5.107.0-1
ii  kpackagetool5   5.107.0-1
ii  libc6   2.37-7
ii  libkf5activities5   5.107.0-1
ii  libkf5auth5 5.107.0-1
ii  libkf5authcore5 5.107.0-1
ii  libkf5completion5   5.107.0-1
ii  libkf5configcore5   5.107.0-1
ii  libkf5configgui55.107.0-1
ii  libkf5configwidgets55.107.0-2
ii  libkf5coreaddons5   5.107.0-1
ii  libkf5crash55.107.0-1
ii  libkf5dbusaddons5   5.107.0-1
ii  libkf5i18n5 5.107.0-1+b1
ii  libkf5iconthemes5   5.107.0-1+b1
ii  libkf5itemmodels5   5.107.0-1
ii  libkf5itemviews55.107.0-1
ii  libkf5kcmutils5 5.107.0-2
ii  libkf5kiocore5  5.107.0-1
ii  libkf5kiogui5   5.107.0-1
ii  libkf5kiowidgets5   5.107.0-1
ii  libkf5kirigami2-5   5.107.0-1+b1
ii  libkf5notifications55.107.0-1
ii  libkf5package5  5.107.0-1
ii  libkf5runner5   5.107.0-1
ii  libkf5service-bin   5.107.0-1
ii  libkf5service5  5.107.0-1
ii  libkf5widgetsaddons55.107.0-1
ii  libkf5windowsystem5 5.107.0-1
ii  libkf5xmlgui5   5.107.0-1+b1
ii  libkworkspace5-54:5.27.7-2
ii  libqt5core5a5.15.10+dfsg-3
ii  libqt5gui5  5.15.10+dfsg-3
ii  libqt5qml5  5.15.10+dfsg-2
ii  libqt5quick5-gles   5.15.10+dfsg-2
ii  libqt5quickwidgets5 5.15.10+dfsg-2
ii  libqt5widgets5  5.15.10+dfsg-3
ii  libstdc++6  13.2.0-3
ii  qml-module-org-kde-kcm  5.107.0-1
ii  qml-module-org-kde-kcmutils 5.107.0-2
ii  qml-module-org-kde-kirigami25.107.0-1+b1
ii  qml-module-org-kde-kitemmodels  5.107.0-1
ii  qml-module-org-kde-newstuff 5.107.0-1
ii  qml-module-qtquick-controls 5.15.10-2
ii  qml-module-qtquick-layouts  5.15.10+dfsg-2
ii  qml-module-qtquick-shapes   5.15.10+dfsg-2
ii  qml-module-qtquick2 5.15.10+dfsg-2

systemsettings recommends no packages.

systemsettings suggests no packages.

-- no debconf information



Bug#983249: offlineimap3: sequence item 1: expected str instance, bytes found

2021-02-21 Thread Jan Gerber
Package: offlineimap3
Version: 0.0~git20210105.00d395b+dfsg-3
Severity: important

Dear Maintainer,

offlineimap fails with:

sequence item 1: expected str instance, bytes found

while trying to sync an imap folder with

pythonfile = ~/.config/offlineimap.py

that looks up username and password:

remoteusereval = get_username("account")

while get_username returns a string, the value gets converted into bytes in

/usr/share/offlineimap3/offlineimap/repository/IMAP.py
...
def getuser(self):
...
if user is not None:
return localeval.eval(user).encode('UTF-8')


due to that, the following fails:

/usr/share/offlineimap3/offlineimap/imapserver.py
...
def __plainhandler(self, response):

tries to mix bytes and strings:

retval = NULL.join((authz, authc, passwd))


This has been fixed upstream in 
https://github.com/OfflineIMAP/offlineimap3/pull/50
in the same way it was fixed for passwords in
debian/patches/0001-Right-format-for-password-from-remotepassfile.patch



-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-3-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages offlineimap3 depends on:
ii  python3   3.9.1-1
ii  python3-distro1.5.0-1
ii  python3-imaplib2  2.57-5.2

offlineimap3 recommends no packages.

offlineimap3 suggests no packages.

-- no debconf information
>From fa080b8d92944a1692a44e982292ffde8066950a Mon Sep 17 00:00:00 2001
From: Konstantinos Natsakis <5933427+knatsa...@users.noreply.github.com>
Date: Mon, 8 Feb 2021 23:40:32 +0200
Subject: [PATCH] BUG: Right format for username using remoteusereval

Similarly to 7a4285370f338a6653e8bb1a8fb99e3703683b6f, reading the username
using remoteusereval returns a bytes objects instead an utf-8 string.

This patch includes support for both string and bytes objects.

Signed-off-by: Konstantinos Natsakis 
<5933427+knatsa...@users.noreply.github.com>
---
 offlineimap/repository/IMAP.py | 17 ++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/offlineimap/repository/IMAP.py b/offlineimap/repository/IMAP.py
index b732243..e90d30c 100644
--- a/offlineimap/repository/IMAP.py
+++ b/offlineimap/repository/IMAP.py
@@ -206,12 +206,23 @@ def getuser(self):
 Returns: Returns the remoteusereval or remoteuser or netrc user value.
 
 """
-localeval = self.localeval
-
 if self.config.has_option(self.getsection(), 'remoteusereval'):
 user = self.getconf('remoteusereval')
 if user is not None:
-return localeval.eval(user).encode('UTF-8')
+l_user = self.localeval.eval(user)
+
+# We need a str username
+if isinstance(l_user, bytes):
+return l_user.decode(encoding='utf-8')
+elif isinstance(l_user, str):
+return l_user
+
+# If is not bytes or str, we have a problem
+raise OfflineImapError("Could not get a right username format 
for"
+   " repository %s. Type found: %s. "
+   "Please, open a bug." %
+   (self.name, type(l_user)),
+   OfflineImapError.ERROR.FOLDER)
 
 if self.config.has_option(self.getsection(), 'remoteuser'):
 # Assume the configuration file to be UTF-8 encoded so we must not


Bug#970909: gnome-authenticator does not start up

2020-09-25 Thread Jan Gerber
Package: gnome-authenticator
Version: 3.32.2+dfsg1-1
Severity: important

Dear Maintainer,

authenticator fails to start, here the error:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/Authenticator/application.py", line 208, 
in _is_locked_changed
Window.get_default().refresh_view()
  File "/usr/lib/python3/dist-packages/Authenticator/widgets/window.py", line 
70, in get_default
Window.instance = Window()
  File "/usr/lib/python3/dist-packages/Authenticator/widgets/window.py", line 
55, in __init__
self.init_template('Window')
TypeError: () takes 0 positional arguments but 1 was given
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/Authenticator/application.py", line 77, 
in do_activate
window = Window.get_default()
  File "/usr/lib/python3/dist-packages/Authenticator/widgets/window.py", line 
70, in get_default
Window.instance = Window()
  File "/usr/lib/python3/dist-packages/Authenticator/widgets/window.py", line 
55, in __init__
self.init_template('Window')
TypeError: () takes 0 positional arguments but 1 was given



-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.8.0-1-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_USER, TAINT_CRAP, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gnome-authenticator depends on:
ii  dconf-gsettings-backend [gsettings-backend]  0.36.0-1
ii  gir1.2-secret-1  0.20.3-1
ii  python3  3.8.2-3
ii  python3-bs4  4.9.1-1
ii  python3-gi   3.36.1-1
ii  python3-pil  7.2.0-1
ii  python3-pyfavicon0.1.1+dfsg1-2
ii  python3-pyotp2.3.0-1
ii  python3-pyzbar   0.1.8-1
ii  python3-yoyo 7.2.0+dfsg1-1

gnome-authenticator recommends no packages.

gnome-authenticator suggests no packages.

-- no debconf information



Bug#969885: megadown: [python] is required and it's not installed

2020-09-08 Thread Jan Gerber
Package: megadown
Version: 0~20180705+git83c53dd-1.1
Severity: important

in sid /usr/bin/python no longer exists, must be python2 or python3
dependency is on python3:any but the script calls python not python3:

[python] is required and it's not installed

ERROR: there are dependencies not present!


-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.8.0-1-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_USER, TAINT_CRAP, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages megadown depends on:
ii  bash 5.0-7
ii  curl 7.72.0-1
ii  openssl  1.1.1g-1
ii  pv   1.6.6-1+b1
ii  python3  3.8.2-3
ii  wget 1.20.3-1+b3

megadown recommends no packages.

megadown suggests no packages.

-- no debconf information



Bug#940591: python-mlt: mlt.py and _mlt.so installed in wrong location(/usr/lib/dist-packages/)

2019-09-17 Thread Jan Gerber
Package: python-mlt
Version: 6.16.0-4
Severity: important

Dear Maintainer,

mlt.py and _mlt.so are installed in the wrong location (/usr/lib/dist-packages/)
instead they must be installed in /usr/lib/python3/dist-packages/
right now the package is not usable

This happens because pyversions (for python2) is still used in
debian/rules:

PYTHON_DIR := usr/lib/$(shell pyversions -d)/dist-packages

with python3 this should just be:

PYTHON_DIR := usr/lib/python3/dist-packages



-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_USER, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python-mlt depends on:
ii  libc6 2.29-1
ii  libgcc1   1:9.2.1-7
ii  libmlt++3 6.16.0-4
ii  libmlt6   6.16.0-4
ii  libpython3.7  3.7.4-4
ii  libstdc++69.2.1-7

python-mlt recommends no packages.

python-mlt suggests no packages.

-- no debconf information



Bug#904620: mpv: opening movie from sftp:// in nautilus does not work

2018-07-25 Thread Jan Gerber
Package: mpv
Version: 0.28.2-3
Severity: normal

Dear Maintainer,

opening a video on an sftp:// share in nautilus does not work.
double clicking on .mp4 file with mpv as default handler fails.

(the path contains spaces, escaped as %20 by nautilus in sftp urls)

mpv should use the gvfs path (/run/user/.../gvfs/sftp:...) or support 
%20/quoted paths in sftp urls.

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.17.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mpv depends on:
ii  libarchive13  3.2.2-4
ii  libasound21.1.6-1
ii  libass9   1:0.14.0-2
ii  libavcodec58  7:4.0.2-1
ii  libavdevice58 7:4.0.2-1
ii  libavfilter7  7:4.0.2-1
ii  libavformat58 7:4.0.2-1
ii  libavutil56   7:4.0.2-1
ii  libbluray21:1.0.2-3
ii  libc6 2.27-5
ii  libcaca0  0.99.beta19-2+b3
ii  libcdio-cdda2 10.2+0.94+2-2+b2
ii  libcdio-paranoia2 10.2+0.94+2-2+b2
ii  libcdio18 2.0.0-2
ii  libdrm2   2.4.92-1
ii  libdvdnav46.0.0-1
ii  libdvdread4   6.0.0-1
ii  libegl1   1.0.0+git20180308-3
ii  libgbm1   18.1.4-1
ii  libgl11.0.0+git20180308-3
ii  libjack-jackd2-0 [libjack-0.125]  1.9.12~dfsg-2
ii  libjpeg62-turbo   1:1.5.2-2+b1
ii  liblcms2-22.9-2
ii  liblua5.2-0   5.2.4-1.1+b2
ii  libpulse0 12.0-1
ii  librubberband21.8.1-7
ii  libsdl2-2.0-0 2.0.8+dfsg1-1
ii  libsmbclient  2:4.8.2+dfsg-2
ii  libsndio6.1   1.1.0-3
ii  libswresample37:4.0.2-1
ii  libswscale5   7:4.0.2-1
ii  libuchardet0  0.0.6-3
ii  libva-drm22.2.0-1
ii  libva-wayland22.2.0-1
ii  libva-x11-2   2.2.0-1
ii  libva22.2.0-1
ii  libvdpau1 1.1.1-8
ii  libvulkan11.1.73+dfsg-1
ii  libwayland-client01.15.0-2
ii  libwayland-cursor01.15.0-2
ii  libwayland-egl1   1.15.0-2
ii  libx11-6  2:1.6.5-1
ii  libxext6  2:1.3.3-1+b2
ii  libxinerama1  2:1.1.3-1+b3
ii  libxkbcommon0 0.8.0-2
ii  libxrandr22:1.5.1-1
ii  libxss1   1:1.2.2-1+b2
ii  libxv12:1.0.11-1
ii  zlib1g1:1.2.11.dfsg-1

Versions of packages mpv recommends:
ii  xdg-utils   1.1.3-1
ii  youtube-dl  2018.06.18-1.1

mpv suggests no packages.

-- no debconf information



Bug#902411: upower fails to start with MemoryDenyWriteExecute=true

2018-06-26 Thread Jan Gerber
Package: upower
Version: 0.99.8-1
Severity: important

Dear Maintainer,

upower fails to start with the following error:

/usr/lib/upower/upowerd: error while loading shared libraries: libffi.so.6: 
cannot enable executable stack as shared object requires: Operation not 
permitted


setting MemoryDenyWriteExecute=false in the systemd service file, upower
starts up again.



-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.16.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages upower depends on:
ii  dbus   1.12.8-3
ii  libc6  2.27-3
ii  libglib2.0-0   2.56.1-2
ii  libgudev-1.0-0 232-2
ii  libimobiledevice6  1.2.1~git20180302.3a37a4e-1
ii  libplist3  2.0.0-3
ii  libupower-glib30.99.8-1
ii  libusb-1.0-0   2:1.0.22-2
ii  udev   239-1

Versions of packages upower recommends:
ii  policykit-1  0.105-20

upower suggests no packages.

-- no debconf information



Bug#865619: fonts-gujr-extra: conffile '/etc/fonts/conf.avail/65-0-fonts-gujr-extra.conf' is not a plain file

2017-06-23 Thread Jan Gerber
Package: fonts-gujr-extra
Version: 1.0-6
Severity: normal

Dear Maintainer,

as a followup to #854164

Updating from a version that created extra
directories fails now with the following warning:

dpkg: warning: fonts-gujr-extra: conffile
'/etc/fonts/conf.avail/65-0-fonts-gujr-extra.conf' is not a plain file
or symlink (= '/etc/fonts/conf.avail/65-0-fonts-gujr-extra.conf')


-- System Information:
Debian Release: 9.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-- no debconf information



Bug#865415: libmovit6 should not conflict with libmovit5

2017-06-21 Thread Jan Gerber
Package: libmovit6
Version: 1.5.1-2
Severity: normal

The reason to bump sonames is to allow multiple versions of a library to be 
installed at the same time.
By adding a conflict on the previous version this is maded impossible.

It should be ok to install libmovit6 and libmovit5 at the same time,
rebuilding a package depending on libmovit-dev will use the latest version.


-- System Information:
Debian Release: 9.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libmovit6 depends on:
ii  libc6 2.24-12
ii  libepoxy0 1.3.1-2
ii  libfftw3-double3  3.3.6p2-1
ii  libgcc1   1:7.1.0-7
ii  libstdc++67.1.0-7

libmovit6 recommends no packages.

libmovit6 suggests no packages.



Bug#851900: upstream has patch

2017-01-19 Thread Jan Gerber
Tags: patch

there is a patch upstream, a patch to put that into debian/patches is attached.
>From 82016c47a723d23f9199d0f9b9e7b44697d1d78e Mon Sep 17 00:00:00 2001
From: j 
Date: Thu, 19 Jan 2017 18:33:51 +0100
Subject: [PATCH] Fix TLS 1.1 and TLS 1.2 support

remove hard coded tls version using upstream commit
https://github.com/fritzy/SleekXMPP/commit/6ebcf6b60d879e31e41bac58ba7db6ea760579b9
---
 debian/patches/002-fix_tls_version_check.patch | 37 ++
 debian/patches/series  |  1 +
 2 files changed, 38 insertions(+)
 create mode 100644 debian/patches/002-fix_tls_version_check.patch

diff --git a/debian/patches/002-fix_tls_version_check.patch b/debian/patches/002-fix_tls_version_check.patch
new file mode 100644
index 000..a7ffa59
--- /dev/null
+++ b/debian/patches/002-fix_tls_version_check.patch
@@ -0,0 +1,37 @@
+From 6ebcf6b60d879e31e41bac58ba7db6ea760579b9 Mon Sep 17 00:00:00 2001
+From: Chris Snijder 
+Date: Mon, 2 May 2016 11:43:49 +0200
+Subject: [PATCH] Use ssl.get_protocol_name() to find out which TLS version is
+ in use (allows the latest TLS versions to be used as well as any future
+ versions).
+
+---
+ sleekxmpp/xmlstream/xmlstream.py | 8 +---
+ 1 file changed, 5 insertions(+), 3 deletions(-)
+
+diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py
+index 62d4610..565625c 100644
+--- a/sleekxmpp/xmlstream/xmlstream.py
 b/sleekxmpp/xmlstream/xmlstream.py
+@@ -464,7 +464,7 @@ def _connect(self, reattempt=True):
+ if self.reconnect_delay is None:
+ delay = 1.0
+ self.reconnect_delay = delay
+- 
++
+ if reattempt:
+ delay = min(self.reconnect_delay * 2, self.reconnect_max_delay)
+ delay = random.normalvariate(delay, delay * 0.1)
+@@ -839,8 +839,10 @@ def start_tls(self):
+ to be restarted.
+ """
+ log.info("Negotiating TLS")
+-ssl_versions = {3: 'TLS 1.0', 1: 'SSL 3', 2: 'SSL 2/3'}
+-log.info("Using SSL version: %s", ssl_versions[self.ssl_version])
++log.info(
++"Using SSL version: %s",
++ssl.get_protocol_name(self.ssl_version).replace('PROTOCOL_', '', 1)
++)
+ if self.ca_certs is None:
+ cert_policy = ssl.CERT_NONE
+ else:
diff --git a/debian/patches/series b/debian/patches/series
index fdc4efc..46401a0 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-get-rid-of-embedded-copies-dateutil-gnupg-ordereddic.patch
+002-fix_tls_version_check.patch
-- 
2.11.0



Bug#851900: python3-sleekxmpp: Fails to connect to servers that only support TLS 1.1 or TLS 1.2

2017-01-19 Thread Jan Gerber
Package: python3-sleekxmpp
Version: 1.3.1-5
Severity: important

sleekxmpp currently fails to connect to servers that use TLS 1.1 or
later.

-- System Information:
Debian Release: 9.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.8.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python3-sleekxmpp depends on:
ii  python3-dnspython   1.15.0-1
ii  python3-pyasn1  0.1.9-2
ii  python3-pyasn1-modules  0.0.7-0.1
pn  python3:any 

Versions of packages python3-sleekxmpp recommends:
ii  python3-dateutil  2.5.3-2
ii  python3-gnupg 0.3.9-1
ii  python3-socks 1.6.5-1

python3-sleekxmpp suggests no packages.

-- no debconf information



Bug#844858: Add import-cstring.patch (Closes #844858)

2016-11-29 Thread Jan Gerber
---
 debian/changelog|  6 ++
 debian/patches/import-cstring.patch | 10 ++
 debian/patches/series   |  1 +
 3 files changed, 17 insertions(+)
 create mode 100644 debian/patches/import-cstring.patch


diff --git a/debian/changelog b/debian/changelog
index 4e07afb..4df41b2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+oggvideotools (0.9.1-3) unstable; urgency=medium
+
+  * New patch import-cstring.patch Closes: #844858
+
+ -- Petter Reinholdtsen   Tue, 29 Nov 2016 12:52:42 +0100
+
 oggvideotools (0.9.1-2) unstable; urgency=medium
 
   * Add new and missing build dependency libboost-dev.
diff --git a/debian/patches/import-cstring.patch b/debian/patches/import-cstring.patch
new file mode 100644
index 000..1528d96
--- /dev/null
+++ b/debian/patches/import-cstring.patch
@@ -0,0 +1,10 @@
+--- oggvideotools-0.9.1.orig/src/base/test/decoderTest.cpp
 oggvideotools-0.9.1/src/base/test/decoderTest.cpp
+@@ -4,6 +4,7 @@
+ 
+ #include "oggDecoder.h"
+ #include 
++#include 
+ #include 
+
+ int main(int argc, char* argv[])
diff --git a/debian/patches/series b/debian/patches/series
index 37af4c4..663908d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ manual-typos.patch
 oggThumb-zero-getopt-long.patch
 more-compiler-warnings.patch
 init-for-valgrind.patch
+import-cstring.patch



Bug#833501: found in 53.0.2785.92-2

2016-09-08 Thread Jan Gerber
On Tue, 6 Sep 2016 17:38:18 -0400 Gedalya  wrote:
> now that we're back with gcc 6, same crashes occur with facebook, google maps 
> and other sites.
> 
> This got it working for me
> 
> --- rules.orig2016-09-06 15:44:51.692191414 -0400
> +++ rules2016-09-06 15:47:29.097229998 -0400
> @@ -16,6 +16,10 @@
>  export CFLAGS+=-fuse-ld=gold
>  export CXXFLAGS+=-fuse-ld=gold
>  
> +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68853
> +export CFLAGS+=-fno-delete-null-pointer-checks
> +export CXXFLAGS+=-fno-delete-null-pointer-checks
> +
>  # treat all warnings as errors
>  defines=werror=

can confirm that recompiling chromium with that patch fixes the issue for me.
without it, chromium crashes all the time.



Bug#836909: [Pkg-roundcube-maintainers] Bug#836909: roundcube-plugins: managesieve depends on php-net-sieve

2016-09-07 Thread Jan Gerber
On 09/07/2016 10:02 AM, Guilhem Moulin wrote:
>
> managesieve is the only plugin of the roundcube-plugins package
> depending of managesieve, hence I don't think adding managesieve's
> dependencies to the package's Depends is appropriate.  That being said,
> the relation between each plugin and its dependencies should be
> reflected in the roundcube-plugins package somehow, but through
> Recommends or Suggests, not Depends.  (The exception right now is the
> dependency on php-pspell, but there is a bug open #825500.)


Hi Guilhem,

recommends or suggests also works for me, looking at the plugins I found 3
external dependencies:

enigma:
php-crypt-gpg

managesieve:
php-net-sieve

zipdownload:
php-zip

roundcube-core already suggests php-crypt-gpg

roundcube-plugins should suggest php-net-sieve and php-zip



Bug#836909: roundcube-plugins: managesieve depends on php-net-sieve

2016-09-07 Thread Jan Gerber
Package: roundcube-plugins
Version: 1.2.1+dfsg.1-2
Severity: important

Dear Maintainer,

the managesieve plugin depends on php-net-sieve to work.
Without php-net-sieve installed managesieve plugin will
die with a 500 error.

roundcube-plugins should depend on php-net-sieve

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)



Bug#825527: nautilus: error while loading shared libraries: libunistring.so.0

2016-05-27 Thread Jan Gerber
Package: nautilus
Version: 3.20.1-2
Severity: important

in unstable nautilus fails to start with the following error:

nautilus: error while loading shared libraries: libunistring.so.0

libunistring0 (0.9.6-1.1) only provides:
 /usr/lib/x86_64-linux-gnu/libunistring.so.2.0.0
 /usr/lib/x86_64-linux-gnu/libunistring.so.2


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.5.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages nautilus depends on:
ii  desktop-file-utils 0.22-1
ii  gsettings-desktop-schemas  3.20.0-3
ii  gvfs   1.28.2-1
ii  libatk1.0-02.20.0-1
ii  libc6  2.22-9
ii  libcairo-gobject2  1.14.6-1+b1
ii  libcairo2  1.14.6-1+b1
ii  libexempi3 2.3.0-2
ii  libexif12  0.6.21-2
ii  libgail-3-03.20.5-4
ii  libgdk-pixbuf2.0-0 2.34.0-1
ii  libglib2.0-0   2.48.1-1
ii  libglib2.0-data2.48.1-1
ii  libgnome-desktop-3-12  3.20.2-1
ii  libgtk-3-0 3.20.5-4
ii  libnautilus-extension1a3.20.1-2
ii  libpango-1.0-0 1.40.1-1
ii  libpangocairo-1.0-01.40.1-1
ii  libselinux12.5-3
ii  libtracker-sparql-1.0-01.8.0-2+b1
ii  libx11-6   2:1.6.3-1
ii  nautilus-data  3.20.1-2
ii  shared-mime-info   1.6-1

Versions of packages nautilus recommends:
ii  gnome-icon-theme-symbolic  3.12.0-2
ii  gnome-sushi3.20.0-1
ii  gvfs-backends  1.28.2-1
ii  librsvg2-common2.40.15-1

Versions of packages nautilus suggests:
ii  brasero3.12.1-1
ii  eog3.20.2-1
ii  evince [pdf-viewer]3.20.0-3
ii  totem  3.20.1-2
ii  tracker1.8.0-2+b1
ii  vlc [mp3-decoder]  2.2.3-1
ii  vlc-nox [mp3-decoder]  2.2.3-1
ii  xdg-user-dirs  0.15-2

-- no debconf information



Bug#822555: ffmpeg: please compile with --enable-libtesseract

2016-04-25 Thread Jan Gerber
Package: ffmpeg
Version: 7:3.0.1-3
Severity: wishlist

Dear Maintainer,

FFmpeg 3.0 introduced a new ocr filter that depends on libtesseract.
Would be nice to see this enabled in Debian.

Thanks for packaging ffmpeg,
j

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.5.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages ffmpeg depends on:
ii  libavcodec57 7:3.0.1-3
ii  libavdevice577:3.0.1-3
ii  libavfilter6 7:3.0.1-3
ii  libavformat577:3.0.1-3
ii  libavresample3   7:3.0.1-3
ii  libavutil55  7:3.0.1-3
ii  libc62.22-7
ii  libpostproc547:3.0.1-3
ii  libsdl1.2debian  1.2.15+dfsg1-4
ii  libswresample2   7:3.0.1-3
ii  libswscale4  7:3.0.1-3
ii  libvdpau11.1.1-3
ii  libx11-6 2:1.6.3-1

ffmpeg recommends no packages.

Versions of packages ffmpeg suggests:
pn  ffmpeg-doc  

-- no debconf information



Bug#813586: libreoffice-writer: Images in PDF export broken

2016-02-03 Thread Jan Gerber
Package: libreoffice-writer
Version: 1:5.1.0~rc3-1
Severity: important

Dear Maintainer,

trying to export documents as pdf, some images are messed up in the
resulting pdf.

Here is a png image and an odt with that png image embedded:

https://r-w-x.org/tests/libreoffice/test.png
https://r-w-x.org/tests/libreoffice/test.odt

This generates the following output:

https://r-w-x.org/tests/libreoffice/test.pdf

Instead the image should look like the png and the odt does during
editing.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libreoffice-writer depends on:
ii  libabw-0.1-1   0.1.1-2
ii  libc6  2.21-7
ii  libe-book-0.1-10.1.2-2+b1
ii  libetonyek-0.1-1   0.1.6-1
ii  libgcc11:5.3.1-7
ii  libicu55   55.1-7
ii  libmwaw-0.3-3  0.3.7-1
ii  libodfgen-0.1-10.1.6-1
ii  libreoffice-base-core  1:5.1.0~rc3-1
ii  libreoffice-core   1:5.1.0~rc3-1
ii  librevenge-0.0-0   0.0.4-1
ii  libstdc++6 5.3.1-7
ii  libwpd-0.10-10 0.10.1-1
ii  libwpg-0.3-3   0.3.1-1
ii  libwps-0.4-4   0.4.2-1
ii  libxml22.9.3+dfsg1-1
ii  uno-libs3  5.1.0~rc3-1
ii  ure5.1.0~rc3-1
ii  zlib1g 1:1.2.8.dfsg-2+b1

Versions of packages libreoffice-writer recommends:
ii  libreoffice-math  1:5.1.0~rc3-1

Versions of packages libreoffice-writer suggests:
ii  default-jre [java5-runtime]2:1.7-52.1
pn  fonts-crosextra-caladea
ii  fonts-crosextra-carlito20130920-1
ii  libreoffice-base   1:5.1.0~rc3-1
pn  libreoffice-gcj
ii  libreoffice-java-common1:5.1.0~rc3-1
ii  openjdk-7-jre [java5-runtime]  7u95-2.6.4-1
ii  openjdk-8-jre [java5-runtime]  8u72-b15-1

Versions of packages libreoffice-core depends on:
ii  fontconfig2.11.0-6.3
ii  fonts-opensymbol  2:102.7+LibO5.0.5~rc1-1
ii  libboost-date-time1.58.0  1.58.0+dfsg-4.1+b1
ii  libc6 2.21-7
ii  libcairo2 1.14.6-1
ii  libclucene-contribs1v52.3.3.4-4.1
ii  libclucene-core1v52.3.3.4-4.1
ii  libcmis-0.5-5v5   0.5.0-4
ii  libcups2  2.1.2-2+b1
ii  libcurl3-gnutls   7.47.0-1
ii  libdbus-1-3   1.10.6-1
ii  libdbus-glib-1-2  0.106-1
ii  libdconf1 0.24.0-2
ii  libeot0   0.01-3
ii  libexpat1 2.1.0-7
ii  libexttextcat-2.0-0   3.4.4-1
ii  libfontconfig12.11.0-6.3
ii  libfreetype6  2.6.1-0.1
ii  libgcc1   1:5.3.1-7
ii  libgl1-mesa-glx [libgl1]  11.1.1-2
ii  libglew1.13   1.13.0-2
ii  libglib2.0-0  2.46.2-3
ii  libgltf-0.0-0v5   0.0.2-4+b1
ii  libglu1-mesa [libglu1]9.0.0-2.1
ii  libgraphite2-31.3.5-1
ii  libharfbuzz-icu0  1.0.1-1+b1
ii  libharfbuzz0b 1.0.1-1+b1
ii  libhunspell-1.3-0 1.3.3-3+b2
ii  libhyphen02.8.8-2
ii  libice6   2:1.0.9-1+b1
ii  libicu55  55.1-7
ii  libjpeg62-turbo   1:1.4.2-2
ii  liblangtag1   0.5.7-2
ii  liblcms2-22.6-3+b3
ii  libldap-2.4-2 2.4.42+dfsg-2+b2
ii  libmythes-1.2-0   2:1.2.4-1
ii  libneon27-gnutls  0.30.1-3
ii  libnspr4  2:4.11-1
ii  libnss3   2:3.21-1
ii  libnss3-1d2:3.21-1
ii  libodfgen-0.1-1   0.1.6-1
ii  libpcre3  2:8.38-1
ii  libpng12-01.2.54-1
ii  librdf0   1.0.17-1+b1
ii  libreoffice-common1:5.1.0~rc3-1
ii  librevenge-0.0-0  0.0.4-1
ii  libsm62:1.2.2-1+b1
ii  libssl1.0.2   1.0.2f-2
ii  libstdc++65.3.1-7
ii  libx11-6  2:1.6.3-1
ii  libxext6  2:1.3.3-1
ii  libxinerama1  2:1.1.3-1+b1
ii  libxml2   2.9.3+dfsg1-1
ii  libxrandr22:1.5.0-1
ii  libxrender1   1:0.9.9-2
ii  libxslt1.11.1.28-2.1
ii  uno-libs3 5.1.0~rc3-1
ii  ure   5.1.0~rc3-1
ii  zlib1g1:1.2.8.dfsg-2+b1

-- no debconf information



Bug#803811: ffmpeg2theora: FTBFS with FFmpeg 2.9

2016-01-09 Thread Jan Gerber
On 01/10/2016 01:11 AM, Andreas Cadhalpun wrote:
> By the way, I just noticed that this got disabled upstream [1].
> I'm CC'ing the author of that commit to make him aware of my patch [2]
> replacing avpicture_deinterlace with libavfilter functionality.
> 
> 1: 
> https://git.xiph.org/?p=ffmpeg2theora.git;a=commitdiff;h=f4800440119849d6d2544e2aea41efca24f1c264
> 2: 
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=803811;att=1;msg=5;filename=ffmpeg2theora_ffmpeg-2.9.patch
> 

Hi Andreas,

thanks for the patch. Applied to git and released a new version (0.30)

http://v2v.cc/~j/ffmpeg2theora/downloads/ffmpeg2theora-0.30.tar.bz2

j



Bug#801678: gnome-sushi: green box instead of video

2015-10-13 Thread Jan Gerber
Package: gnome-sushi
Version: 3.18.0-1
Severity: important

opening any video file, sushi shows a green box instead of the video.
The size of the preview matches that of the video, seeking works and
sound plays fine but only a green box is shown.
The videos play find in totem or gst-launch playbin url=file://.


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gnome-sushi depends on:
ii  gir1.2-clutter-1.01.24.2-1
ii  gir1.2-clutter-gst-2.02.0.16-1
ii  gir1.2-evince-3.0 3.18.0-1
ii  gir1.2-gdkpixbuf-2.0  2.32.1-1
ii  gir1.2-gst-plugins-base-1.0   1.6.0-1
ii  gir1.2-gtk-3.03.18.1-2
ii  gir1.2-gtkclutter-1.0 1.6.6-1
ii  gir1.2-gtksource-3.0  3.18.1-1
ii  gir1.2-webkit2-4.02.10.0+dfsg1-1
ii  gstreamer1.0-plugins-good 1.6.0-1
ii  libc6 2.19-22
ii  libcairo2 1.14.2-2
ii  libclutter-1.0-0  1.24.2-1
ii  libclutter-gst-2.0-0  2.0.16-1
ii  libclutter-gtk-1.0-0  1.6.6-1
ii  libevdocument3-4  3.18.0-1
ii  libevview3-3  3.18.0-1
ii  libfreetype6  2.6-2
ii  libgdk-pixbuf2.0-02.32.1-1
ii  libgirepository-1.0-1 1.46.0-1
ii  libgjs0e [libgjs0-libmozjs-24-0]  1.43.3-2
ii  libglib2.0-0  2.46.0-2
ii  libgstreamer-plugins-base1.0-01.6.0-1
ii  libgstreamer1.0-0 1.6.0-1
ii  libgtk-3-03.18.1-2
ii  libgtksourceview-3.0-13.18.1-1
ii  libmusicbrainz5-2 5.1.0+git20150707-5
ii  libpango-1.0-01.38.0-3
ii  libx11-6  2:1.6.3-1
ii  nautilus  3.18.0-1

gnome-sushi recommends no packages.

Versions of packages gnome-sushi suggests:
ii  gstreamer1.0-libav  1.6.0-1

-- no debconf information



Bug#785195: farstream-0.2: new upstream version available(0.2.7)

2015-05-13 Thread Jan Gerber
Source: farstream-0.2
Version: 0.2.4-1
Severity: normal

Several new upstream versions have been released since 0.2.4
would be nice to see an update to the current release 0.2.7.
http://freedesktop.org/software/farstream/releases/farstream/

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#784941: rebuildd-httpd crashes due to bug in gdchart

2015-05-10 Thread Jan Gerber
Package: rebuildd
Version: 0.4.2

Due to Bug #301563 (which has a patch that fixes this problem since
2009) rebuildd-httpd crashes loading an image.

there are two options to make rebuildd-httpd not crash

a) fix Bug #301563
b) don't depend on gdchart to create that image


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#784576: Allow commas in StringListSetting values

2015-05-06 Thread Jan Gerber
Package: python-cliapp
Version: 1.20140719-1
Tags: upstream patch

- Escape values with commas with double quotes in config syntax.
- Don't split values passed as arguments.

Needed to fix Bug #770722 in vmdebootstrap
From 47d70acc54da4f26c43a1443590c2e5441c0ec47 Mon Sep 17 00:00:00 2001
From: Jan Gerber j...@mailb.org
Date: Wed, 6 May 2015 19:05:36 +0200
Subject: Allow comma in StringListSetting values

- Escape values with comma with double quotes in config syntax.
- Don't split values passed as arguments.

diff --git a/cliapp/settings.py b/cliapp/settings.py
index c272a78..d9e5ba7 100644
--- a/cliapp/settings.py
+++ b/cliapp/settings.py
@@ -105,30 +105,41 @@ class StringListSetting(Setting):
 self, names, [], help_text, metavar=metavar, group=group,
 hidden=hidden)
 self.default = default
+self._strings = self.default or []
 self.using_default_value = True
 
 def default_metavar(self):
 return self.names[0].upper()
 
 def get_value(self):
-if self._string_value.strip():
-return [s.strip() for s in self._string_value.split(',')]
-else:
-return self.default
+return self._strings
 
 def set_value(self, strings):
-self._string_value = ','.join(strings)
+self._strings = strings
 self.using_default_value = False
 
 def has_value(self):
 return self.value != []
 
 def parse_value(self, string):
-self.value = [s.strip() for s in string.split(',')]
+values = []
+value = ''
+inside_quote = False
+for c in string:
+if c == '':
+inside_quote = not inside_quote
+elif c == ',' and not inside_quote:
+values.append(value)
+value = ''
+else:
+value += c
+if value:
+values.append(value)
+self.value = [v.strip() for v in values]
 
 def format(self):  # pragma: no cover
-return ', '.join(self.value)
-
+values = ['%s' % v if ',' in v else v for v in self.value]
+return ', '.join(values)
 
 class ChoiceSetting(Setting):
 
diff --git a/cliapp/settings_tests.py b/cliapp/settings_tests.py
index e1c4fa8..9284eec 100644
--- a/cliapp/settings_tests.py
+++ b/cliapp/settings_tests.py
@@ -278,14 +278,17 @@ foo = yeehaa
 [config]
 foo = yeehaa
 bar = ping, pong
+comma = ping, pong, foo,bar
 ''')
 
 self.settings.string_list(['foo'], 'foo help')
 self.settings.string_list(['bar'], 'bar help')
+self.settings.string_list(['comma'], 'comma help')
 self.settings.config_files = ['whatever.conf']
 self.settings.load_configs(open_file=mock_open)
 self.assertEqual(self.settings['foo'], ['yeehaa'])
 self.assertEqual(self.settings['bar'], ['ping', 'pong'])
+self.assertEqual(self.settings['comma'], ['ping', 'pong', 'foo,bar'])
 
 def test_handles_defaults_with_config_files(self):
 
@@ -330,9 +333,9 @@ bar = ping, pong
 self.settings.string_list(['bar'], 'bar help', default=['bar'])
 self.settings.config_files = ['whatever.conf']
 self.settings.load_configs(open_file=mock_open)
-self.settings.parse_args(['--foo=red', '--bar=blue', '--bar=white'])
+self.settings.parse_args(['--foo=red', '--bar=blue', '--bar=white,comma'])
 self.assertEqual(self.settings['foo'], 'red')
-self.assertEqual(self.settings['bar'], ['blue', 'white'])
+self.assertEqual(self.settings['bar'], ['blue', 'white,comma'])
 
 def test_load_configs_raises_error_for_unknown_variable(self):
 
-- 
2.2.1.209.g41e5f3a



Bug#770722: add -D to pass additional settings to debootstrap

2015-05-06 Thread Jan Gerber
new patch, just using settings.string_list (requires patch to cliapp to
work, also attached)

with that passing additional settings to debootstrap looks like this:

 -D components=main,contrib
 -D keyring=KEYRING
From d35b1962d62bebd1fa30558bde148e6f752ed3a4 Mon Sep 17 00:00:00 2001
From: Jan Gerber j...@mailb.org
Date: Sun, 3 May 2015 14:48:34 +0200
Subject: add -D to pass additional settings to debootstrap

some examples:
 -D components=main,contrib
 -D keyring=KEYRING

diff --git a/vmdebootstrap b/vmdebootstrap
index 49c21c8..aa45b9f 100755
--- a/vmdebootstrap
+++ b/vmdebootstrap
@@ -83,6 +83,10 @@ class VmDebootstrap(cliapp.Application):  # pylint: disable=too-many-public-meth
 self.settings.string(
 ['variant'],
 'select debootstrap variant it not using the default')
+self.settings.string_list(
+['debootstrap-setting', 'D'],
+'pass additional options to debootstrap (i.e. components=main,contrib) '
+'check debootstrap --help for valid options'),
 self.settings.boolean(
 ['extlinux'],
 'install extlinux?',
@@ -445,6 +449,8 @@ class VmDebootstrap(cliapp.Application):  # pylint: disable=too-many-public-meth
 if self.settings['variant']:
 args.append('--variant')
 args.append(self.settings['variant'])
+for opt in self.settings['debootstrap-setting']:
+args.append('--%s' % opt)
 args += [self.settings['distribution'],
  rootdir, self.settings['mirror']]
 logging.debug( .join(args))
diff --git a/vmdebootstrap.8.in b/vmdebootstrap.8.in
index 80df9bc..f3ada4a 100644
--- a/vmdebootstrap.8.in
+++ b/vmdebootstrap.8.in
@@ -29,7 +29,7 @@ vmdebootstrap \- install basic Debian system into virtual disk image
 [\-\-serial-console | \-\-no-serial-console] [\-\-sudo |\-\-no-sudo] [\-\-owner=OWNER]
 [\-\-bootsize=BOOTSIZE] [\-\-boottype=FSTYPE] [\-\-roottype=FSTYPE] [\-\-foreign=PATH]
 [\-\-variant=VARIANT] [\-\-no-extlinux] [\-\-squash] [\-\-configure-apt]
-[\-\-grub] [\-\-apt-mirror] [\-\-pkglist]
+[\-\-grub] [\-\-apt-mirror] [\-\-pkglist] [\-D, \-\-debootstrap\-setting]
 .SH DESCRIPTION
 .B vmdebootstrap
 installs a basic Debian system into a virtual disk image,
@@ -231,6 +231,9 @@ complete and grub-install will be called in the image.
 Output a list of package names installed inside the image. Useful if you
 need to track the relevant source packages used inside the image for
 licence compliance.
+.IP \-D, \-\-debootstrap\-setting
+Pass additional options to debootstrap (i.e. -D components=main,contrib)
+check debootstrap \-\-help for valid options
 .SH Configuration files and settings:
 .IP \-\-dump-config
 write out the entire current configuration
-- 
2.2.1.209.g41e5f3a

From 47d70acc54da4f26c43a1443590c2e5441c0ec47 Mon Sep 17 00:00:00 2001
From: Jan Gerber j...@mailb.org
Date: Wed, 6 May 2015 19:05:36 +0200
Subject: Allow comma in StringListSetting values

- Escape values with comma with double quotes in config syntax.
- Don't split values passed as arguments.

diff --git a/cliapp/settings.py b/cliapp/settings.py
index c272a78..d9e5ba7 100644
--- a/cliapp/settings.py
+++ b/cliapp/settings.py
@@ -105,30 +105,41 @@ class StringListSetting(Setting):
 self, names, [], help_text, metavar=metavar, group=group,
 hidden=hidden)
 self.default = default
+self._strings = self.default or []
 self.using_default_value = True
 
 def default_metavar(self):
 return self.names[0].upper()
 
 def get_value(self):
-if self._string_value.strip():
-return [s.strip() for s in self._string_value.split(',')]
-else:
-return self.default
+return self._strings
 
 def set_value(self, strings):
-self._string_value = ','.join(strings)
+self._strings = strings
 self.using_default_value = False
 
 def has_value(self):
 return self.value != []
 
 def parse_value(self, string):
-self.value = [s.strip() for s in string.split(',')]
+values = []
+value = ''
+inside_quote = False
+for c in string:
+if c == '':
+inside_quote = not inside_quote
+elif c == ',' and not inside_quote:
+values.append(value)
+value = ''
+else:
+value += c
+if value:
+values.append(value)
+self.value = [v.strip() for v in values]
 
 def format(self):  # pragma: no cover
-return ', '.join(self.value)
-
+values = ['%s' % v if ',' in v else v for v in self.value]
+return ', '.join(values)
 
 class ChoiceSetting(Setting):
 
diff --git a/cliapp/settings_tests.py b/cliapp/settings_tests.py
index e1c4fa8..9284eec 100644
--- a/cliapp/settings_tests.py
+++ b/cliapp/settings_tests.py
@@ -278,14 +278,17 @@ foo = yeehaa
 [config]
 foo = yeehaa
 bar = ping

Bug#770722: [Vmdebootstrap-devel] Bug#770722: Bug#770722: [PATCH] add --debootstrap-opts to pass additional options to debootstrap

2015-05-03 Thread Jan Gerber

On 05/03/2015 06:45 PM, Lars Wirzenius wrote:

I would make this a self.settings.string_list type option instead.
This is an option type provided by cliapp that means the value is a
list of strings. Thus

 vmdebootstrap --debootstrap-option --foo --debootstrap-option --bar

would result in a value [--foo, --bar], rather than having the
program have to parse the option value itself. This also means that
the cliapp configuration file parsing can handle this automatically.


another problem with string_list is that a comma is treated as a 
separator so


--debootstrap-option --components=main,contrib

becomes

['--components=main', 'contrib']


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#784126: expose debootstrap --components

2015-05-03 Thread Jan Gerber

Package:  vmdebootstrap
Version:  0.7-1
Tags: upstream patch

From 55c1b5d76903196b0a16a474411386c4a93b0ce8 Mon Sep 17 00:00:00 2001
From: Jan Gerber j...@mailb.org
Date: Thu, 9 Apr 2015 17:10:19 +0200
Subject: expose debootstrap --components


diff --git a/vmdebootstrap b/vmdebootstrap
index 49c21c8..648de18 100755
--- a/vmdebootstrap
+++ b/vmdebootstrap
@@ -83,6 +83,9 @@ class VmDebootstrap(cliapp.Application):  # pylint: disable=too-many-public-meth
 self.settings.string(
 ['variant'],
 'select debootstrap variant it not using the default')
+self.settings.string(
+['components'],
+'select debootstrap components it not using the default')
 self.settings.boolean(
 ['extlinux'],
 'install extlinux?',
@@ -412,6 +415,8 @@ class VmDebootstrap(cliapp.Application):  # pylint: disable=too-many-public-meth
 
 def debootstrap(self, rootdir):
 msg = (%s) % self.settings['variant'] if self.settings['variant'] else ''
+if self.settings['components']:
+msg += '[%s]' % self.settings['components']
 self.message('Debootstrapping %s %s' % (self.settings['distribution'], msg))
 
 include = self.settings['package']
@@ -445,6 +450,9 @@ class VmDebootstrap(cliapp.Application):  # pylint: disable=too-many-public-meth
 if self.settings['variant']:
 args.append('--variant')
 args.append(self.settings['variant'])
+if self.settings['components']:
+args.append('--components')
+args.append(self.settings['components'])
 args += [self.settings['distribution'],
  rootdir, self.settings['mirror']]
 logging.debug( .join(args))
@@ -792,11 +800,14 @@ append initrd=%(initrd)s root=UUID=%(uuid)s ro %(kserial)s
 if self.settings['apt-mirror']:
 mirror = self.settings['apt-mirror']
 self.message(Setting apt mirror to %s % mirror)
+components = 'main'
+if self.settings['components']:
+components = self.settings['components'].replace(',', ' ')
 os.unlink(os.path.join(rootdir, 'etc', 'apt', 'sources.list'))
 f = open(conf, 'w')
-line = 'deb %s %s main\n' % (mirror, self.settings['distribution'])
+line = 'deb %s %s %s\n' % (mirror, self.settings['distribution'], components)
 f.write(line)
-line = '#deb-src %s %s main\n' % (mirror, self.settings['distribution'])
+line = '#deb-src %s %s %s\n' % (mirror, self.settings['distribution'], components)
 f.write(line)
 f.close()
 # ensure the apt sources have valid lists
diff --git a/vmdebootstrap.8.in b/vmdebootstrap.8.in
index 80df9bc..5ca871e 100644
--- a/vmdebootstrap.8.in
+++ b/vmdebootstrap.8.in
@@ -28,7 +28,7 @@ vmdebootstrap \- install basic Debian system into virtual disk image
 [\-\-customize=SCRIPT] [\-\-hostname=HOSTNAME] [\-\-user=USER/PASSWORD]
 [\-\-serial-console | \-\-no-serial-console] [\-\-sudo |\-\-no-sudo] [\-\-owner=OWNER]
 [\-\-bootsize=BOOTSIZE] [\-\-boottype=FSTYPE] [\-\-roottype=FSTYPE] [\-\-foreign=PATH]
-[\-\-variant=VARIANT] [\-\-no-extlinux] [\-\-squash] [\-\-configure-apt]
+[\-\-variant=VARIANT] [\-\-components=COMPONETS] [\-\-no-extlinux] [\-\-squash] [\-\-configure-apt]
 [\-\-grub] [\-\-apt-mirror] [\-\-pkglist]
 .SH DESCRIPTION
 .B vmdebootstrap
-- 
2.2.1.209.g41e5f3a



Bug#784125: add option to install ssh key for root (--root-ssh-key)

2015-05-03 Thread Jan Gerber

Package:  vmdebootstrap
Version:  0.7-1
Tags: upstream patch
From 5b48e4d8e535a858e638156dc2a09896d1aafc9c Mon Sep 17 00:00:00 2001
From: Jan Gerber j...@mailb.org
Date: Mon, 27 Apr 2015 12:08:57 +0200
Subject: add option to install ssh key for root (--root-ssh-key)


diff --git a/vmdebootstrap b/vmdebootstrap
index 49c21c8..d951d31 100755
--- a/vmdebootstrap
+++ b/vmdebootstrap
@@ -131,6 +131,10 @@ class VmDebootstrap(cliapp.Application):  # pylint: disable=too-many-public-meth
 ['lock-root-password'],
 'lock root account so they cannot login?')
 self.settings.string(
+['root-ssh-key'],
+install given public ssh key in /root/.ssh/authorized_keys,
+metavar='SSHKEY')
+self.settings.string(
 ['customize'],
 'run SCRIPT after setting up system',
 metavar='SCRIPT')
@@ -544,6 +548,12 @@ class VmDebootstrap(cliapp.Application):  # pylint: disable=too-many-public-meth
 else:
 self.message('Give root an empty password')
 self.delete_password(rootdir, 'root')
+if self.settings['root-ssh-key']:
+self.message('Copy root ssh key %s' % self.settings['root-ssh-key'])
+os.mkdir(os.path.join(rootdir, 'root', '.ssh'))
+os.chmod(os.path.join(rootdir, 'root', '.ssh'), 0700)
+shutil.copy(self.settings['root-ssh-key'],
+os.path.join(rootdir, 'root', '.ssh', 'authorized_keys'))
 
 def create_users(self, rootdir):
 def create_user(user):
diff --git a/vmdebootstrap.8.in b/vmdebootstrap.8.in
index 80df9bc..7ab5607 100644
--- a/vmdebootstrap.8.in
+++ b/vmdebootstrap.8.in
@@ -24,7 +24,7 @@ vmdebootstrap \- install basic Debian system into virtual disk image
 [\-\-output=FILE] [\-\-verbose |\-\-no-verbose] \-\-image=FILE \-\-size=SIZE
 [\-\-tarball=FILE] [\-\-mirror=URL] [\-\-arch=ARCH] [\-\-distribution=NAME]
 [\-\-package=PACKAGE] [\-\-custom-package=DEB] [\-\-no-kernel]
-[\-\-enable-dhcp | \-\-no-enable-dhcp] [\-\-root-password=PASSWORD]
+[\-\-enable-dhcp | \-\-no-enable-dhcp] [\-\-root-password=PASSWORD] [\-\-root-ssh-key=KEY]
 [\-\-customize=SCRIPT] [\-\-hostname=HOSTNAME] [\-\-user=USER/PASSWORD]
 [\-\-serial-console | \-\-no-serial-console] [\-\-sudo |\-\-no-sudo] [\-\-owner=OWNER]
 [\-\-bootsize=BOOTSIZE] [\-\-boottype=FSTYPE] [\-\-roottype=FSTYPE] [\-\-foreign=PATH]
@@ -166,6 +166,8 @@ do not install a linux package
 enable DHCP on eth0
 .IP \-\-root-password=PASSWORD
 set root password
+.IP \-\-root-ssh-key=KEY
+install ssh key in /root/.ssh/authorized_keys
 .IP \-\-customize=SCRIPT
 run SCRIPT after setting up system. If the script does not exist in the current
 working directory, /usr/share/vmdebootstrap/examples/ will be checked as a
-- 
2.2.1.209.g41e5f3a



Bug#770722: [Vmdebootstrap-devel] Bug#770722: Merging

2015-05-03 Thread Jan Gerber

On 05/03/2015 02:10 PM, Neil Williams wrote: tag 770722 - patch
 tag 784126 - patch

components (bug 784126) might be still worth to be an option for 
vmdebootstrap, since it would also change what gets written into 
sources.list


https://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=0001-expose-debootstrap-components.patch;att=1;bug=784126


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770722: [Bug#770722]: add --debootstrap-opts to pass additional options to debootstrap

2015-05-03 Thread Jan Gerber

On 05/03/2015 07:58 PM, Neil Williams wrote:

I stand by my opinion, however, that adding another level of option
parsing would be confusing. vmdebootstrap's already difficult to use
(and I say that as its original author).


Mandating that the value to the option is entirely quoted?

--debootstrap-option --components=main,contrib

It would be an error to provide more than one string to the option.


that would only help if the shell would split at the comma,
but this is done in cliapp.settings.StringListSetting:

http://git.liw.fi/cgi-bin/cgit/cgit.cgi/cliapp/tree/cliapp/settings.py#n113

Looking at the documentation of string_list/StringListSetting it is not 
clear to me why it has the additional comma parsing, it seams to combine 
2 modes:

 - argument can be passed multiple times to pass multiple values
   (--key foo --key bar)
 - value is a list separated by comma
   (--key foo, bar)

my initial thought would be that settings.string_list should be one of 
those two modes not both. from the docs I would guess the first mode.


adding a simple string list without comma parsing could look like this:

class MultiStringSetting(StringSetting):
action = 'append'
using_default_value = False

Lars, would that be acceptable to add to cliapp?


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770722: [Vmdebootstrap-devel] Bug#770722: [PATCH] add --debootstrap-opts to pass additional options to debootstrap

2015-05-03 Thread Jan Gerber

On 05/03/2015 06:45 PM, Lars Wirzenius wrote:

On Sun, May 03, 2015 at 02:55:58PM +0200, j...@mailb.org wrote:

+self.settings.string(
+['debootstrap-opts'],
+'pass additional options to debootstrap (check debootstrap --help 
for valid options)')


I would make this a self.settings.string_list type option instead.
This is an option type provided by cliapp that means the value is a
list of strings. Thus

 vmdebootstrap --debootstrap-option --foo --debootstrap-option --bar

would result in a value [--foo, --bar], rather than having the
program have to parse the option value itself. This also means that
the cliapp configuration file parsing can handle this automatically.



That was my first thought too, but after looking at common options one 
would pass to debootstrap, most of them are


 --key value

with self.settings.string_list that would become

 --debootstrap-option --key --debootstrap-option value

that looks ugly and seams to verbose.


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770616: [PATCH] use PROTOCOL_SSLv23 instead of PROTOCOL_SSLv3

2014-12-08 Thread Jan Gerber
Porting nossl3.patch from
https://bugs.debian.org/cgi-bin/bugreport.cgi?msg=17;filename=python2.7-nossl3.patch;att=1;bug=768611
to gevent.ssl

Not that upstream does not like it that Debian just removed
ssl.PROTOCOL_SSLv3 (https://github.com/hypothesis/h/issues/1704)
diff a/gevent/ssl.py b/gevent/ssl.py
--- a/gevent/ssl.py
+++ b/gevent/ssl.py
@@ -382,7 +382,7 @@ def wrap_socket(sock, keyfile=None, certfile=None,
  ciphers=ciphers)
 
 
-def get_server_certificate(addr, ssl_version=PROTOCOL_SSLv3, ca_certs=None):
+def get_server_certificate(addr, ssl_version=PROTOCOL_SSLv23, ca_certs=None):
 Retrieve the certificate from the server at the specified address,
 and return it as a PEM-encoded string.
 If 'ca_certs' is specified, validate the server cert against it.
diff a/greentest/2.6/test_ssl.py b/greentest/2.6/test_ssl.py
--- a/greentest/2.6/test_ssl.py
+++ b/greentest/2.6/test_ssl.py
@@ -60,7 +60,6 @@ class BasicTests(unittest.TestCase):
 def test_constants(self):
 ssl.PROTOCOL_SSLv2
 ssl.PROTOCOL_SSLv23
-ssl.PROTOCOL_SSLv3
 ssl.PROTOCOL_TLSv1
 ssl.CERT_NONE
 ssl.CERT_OPTIONAL
@@ -839,7 +838,7 @@ else:
 try_protocol_combo(ssl.PROTOCOL_SSLv2, ssl.PROTOCOL_SSLv2, True, ssl.CERT_OPTIONAL)
 try_protocol_combo(ssl.PROTOCOL_SSLv2, ssl.PROTOCOL_SSLv2, True, ssl.CERT_REQUIRED)
 try_protocol_combo(ssl.PROTOCOL_SSLv2, ssl.PROTOCOL_SSLv23, True)
-try_protocol_combo(ssl.PROTOCOL_SSLv2, ssl.PROTOCOL_SSLv3, False)
+try_protocol_combo(ssl.PROTOCOL_SSLv2, ssl.PROTOCOL_SSLv23, False)
 try_protocol_combo(ssl.PROTOCOL_SSLv2, ssl.PROTOCOL_TLSv1, False)
 
 def test_protocol_sslv23(self):
@@ -856,15 +855,12 @@ else:
 sys.stdout.write(
  SSL2 client to SSL23 server test unexpectedly failed:\n %s\n
 % str(x))
-try_protocol_combo(ssl.PROTOCOL_SSLv23, ssl.PROTOCOL_SSLv3, True)
 try_protocol_combo(ssl.PROTOCOL_SSLv23, ssl.PROTOCOL_SSLv23, True)
 try_protocol_combo(ssl.PROTOCOL_SSLv23, ssl.PROTOCOL_TLSv1, True)
 
-try_protocol_combo(ssl.PROTOCOL_SSLv23, ssl.PROTOCOL_SSLv3, True, ssl.CERT_OPTIONAL)
 try_protocol_combo(ssl.PROTOCOL_SSLv23, ssl.PROTOCOL_SSLv23, True, ssl.CERT_OPTIONAL)
 try_protocol_combo(ssl.PROTOCOL_SSLv23, ssl.PROTOCOL_TLSv1, True, ssl.CERT_OPTIONAL)
 
-try_protocol_combo(ssl.PROTOCOL_SSLv23, ssl.PROTOCOL_SSLv3, True, ssl.CERT_REQUIRED)
 try_protocol_combo(ssl.PROTOCOL_SSLv23, ssl.PROTOCOL_SSLv23, True, ssl.CERT_REQUIRED)
 try_protocol_combo(ssl.PROTOCOL_SSLv23, ssl.PROTOCOL_TLSv1, True, ssl.CERT_REQUIRED)
 
@@ -874,12 +870,11 @@ else:
 sys.stdout.write(\ntest_protocol_sslv3 disabled, 
  as it fails on OpenSSL 1.0.0+)
 return
-try_protocol_combo(ssl.PROTOCOL_SSLv3, ssl.PROTOCOL_SSLv3, True)
-try_protocol_combo(ssl.PROTOCOL_SSLv3, ssl.PROTOCOL_SSLv3, True, ssl.CERT_OPTIONAL)
-try_protocol_combo(ssl.PROTOCOL_SSLv3, ssl.PROTOCOL_SSLv3, True, ssl.CERT_REQUIRED)
-try_protocol_combo(ssl.PROTOCOL_SSLv3, ssl.PROTOCOL_SSLv2, False)
-try_protocol_combo(ssl.PROTOCOL_SSLv3, ssl.PROTOCOL_SSLv23, False)
-try_protocol_combo(ssl.PROTOCOL_SSLv3, ssl.PROTOCOL_TLSv1, False)
+try_protocol_combo(ssl.PROTOCOL_SSLv23, ssl.PROTOCOL_SSLv23, True)
+try_protocol_combo(ssl.PROTOCOL_SSLv23, ssl.PROTOCOL_SSLv23, True, ssl.CERT_OPTIONAL)
+try_protocol_combo(ssl.PROTOCOL_SSLv23, ssl.PROTOCOL_SSLv23, True, ssl.CERT_REQUIRED)
+try_protocol_combo(ssl.PROTOCOL_SSLv23, ssl.PROTOCOL_SSLv2, False)
+try_protocol_combo(ssl.PROTOCOL_SSLv23, ssl.PROTOCOL_TLSv1, False)
 
 def test_protocol_tlsv1(self):
 Connecting to a TLSv1 server with various client options
@@ -891,7 +886,6 @@ else:
 try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_TLSv1, True, ssl.CERT_OPTIONAL)
 try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_TLSv1, True, ssl.CERT_REQUIRED)
 try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_SSLv2, False)
-try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_SSLv3, False)
 try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_SSLv23, False)
 
 def test_starttls(self):
diff a/greentest/2.7/test_ftplib.py b/greentest/2.7/test_ftplib.py
--- a/greentest/2.7/test_ftplib.py
+++ b/greentest/2.7/test_ftplib.py
@@ -655,7 +655,7 @@ class TestTLS_FTPClass(TestCase):
 
 def test_auth_ssl(self):
 try:
-self.client.ssl_version = ssl.PROTOCOL_SSLv3
+self.client.ssl_version = ssl.PROTOCOL_SSLv23
 self.client.auth()
 self.assertRaises(ValueError, self.client.auth)
 finally:
diff 

Bug#771499: [PATCH] use PROTOCOL_SSLv23 instead of PROTOCOL_SSLv3

2014-12-08 Thread Jan Gerber
--- a/weboob/deprecated/browser/browser.py.orig	2014-12-08 22:56:48.602859096 +0100
+++ b/weboob/deprecated/browser/browser.py	2014-12-08 22:56:58.818858568 +0100
@@ -730,7 +730,7 @@
 
 class HTTPSConnection2(httplib.HTTPSConnection):
 _HOSTS = {}
-_PROTOCOLS = [ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_SSLv3]
+_PROTOCOLS = [ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_SSLv23]
 
 def _my_create_connection(self):
 sock = socket.create_connection((self.host, self.port), self.timeout)


Bug#768870: [Vmdebootstrap-devel] Bug#768870: vmdebootstrap: Should extlinux be installed if grub installation succeed?

2014-11-09 Thread Jan Gerber
just calling install_extlinux in the except clause might be cleaner.


diff --git a/vmdebootstrap b/vmdebootstrap
index 126475f..e7b5f16 100755
--- a/vmdebootstrap
+++ b/vmdebootstrap
@@ -487,10 +487,10 @@ class VmDebootstrap(cliapp.Application):
 self.runcmd(['chroot', rootdir, 'grub-install', install_dev])
 except cliapp.AppException as e:
 self.message(Failed. Is grub2-common installed? Using extlinux.)
+self.install_extlinux(rootdev, rootdir)
 self.runcmd(['umount', os.path.join(rootdir, 'sys')])
 self.runcmd(['umount', os.path.join(rootdir, 'proc')])
 self.runcmd(['umount', os.path.join(rootdir, 'dev')])
-self.install_extlinux(rootdev, rootdir)
 
 def install_extlinux(self, rootdev, rootdir):
 if not os.path.exists(/usr/bin/extlinux):


Bug#765086: python-couchdb: dpkg fails to setup python-couchdb with SyntaxError: invalid syntax in util3.py, line 17

2014-10-13 Thread Jan Gerber
Package: python-couchdb
Version: 0.10-1
Severity: important

dpkg fails while setting up couchdb:

Setting up python-couchdb (0.10-1) ...
  File /usr/lib/python2.7/dist-packages/couchdb/util3.py, line 17
pyexec = exec
^
SyntaxError: invalid syntax

dpkg: error processing package python-couchdb (--configure):
 subprocess installed post-installation script returned error exit status 101
Errors were encountered while processing:
 python-couchdb
E: Sub-process /usr/bin/dpkg returned an error code (1)

util3.py is only imported in python3 (from util.py)
dpkg calls pycompile that tries to compile all files in the folder.


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-couchdb depends on:
ii  libjs-jquery   1.7.2+dfsg-3.2
ii  libjs-underscore   1.4.4-2
ii  python 2.7.8-1
ii  python-simplejson  3.6.4-1
pn  python:any none

python-couchdb recommends no packages.

Versions of packages python-couchdb suggests:
pn  couchdb  none

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/lib/python2.7/dist-packages/couchdb/util3.py (from 
python-couchdb package)


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org