diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-05-15 13:19:56 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-05-15 13:19:56 +0100 |
commit | d302a5d7fc9caafba5c8a404f2891bb6ccdec311 (patch) | |
tree | 2a3ee43f080d1d0086964de8c29ccf1021fdfda7 /sys-block/targetcli-fb/files | |
parent | ea31ad0ed5501d0bf92267c35beaf06ac016bad2 (diff) |
gentoo resync : 15.05.2018
Diffstat (limited to 'sys-block/targetcli-fb/files')
-rw-r--r-- | sys-block/targetcli-fb/files/targetcli-fb-2.1.48-python3.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sys-block/targetcli-fb/files/targetcli-fb-2.1.48-python3.patch b/sys-block/targetcli-fb/files/targetcli-fb-2.1.48-python3.patch new file mode 100644 index 000000000000..ec771c4a1305 --- /dev/null +++ b/sys-block/targetcli-fb/files/targetcli-fb-2.1.48-python3.patch @@ -0,0 +1,23 @@ +From ed5ff9b9505e50b545e86dfbdd32077f0ddda0cb Mon Sep 17 00:00:00 2001 +From: Taylor Jakobson <tjakobs@us.ibm.com> +Date: Thu, 1 Feb 2018 14:44:32 -0600 +Subject: [PATCH] Use signed char instead of char + +Python3 does not have the "character" type, use signed char instead. +--- + targetcli/ui_backstore.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/targetcli/ui_backstore.py b/targetcli/ui_backstore.py +index 3a2db10..5af448f 100644 +--- a/targetcli/ui_backstore.py ++++ b/targetcli/ui_backstore.py +@@ -536,7 +536,7 @@ def _ui_block_ro_check(self, dev): + except (OSError, IOError): + raise ExecutionError("Could not open %s" % dev) + # ioctl returns an int. Provision a buffer for it +- buf = array.array('c', [chr(0)] * 4) ++ buf = array.array('b', [0] * 4) + try: + fcntl.ioctl(f, BLKROGET, buf) + except (OSError, IOError): |