16 Commits

Author SHA1 Message Date
207b36f01b openrc: version bump to 0.42.1
Fix build failure when using gcc:10
2020-10-28 00:21:03 +03:00
96c276e7e3 sys-apps/evrouter: initial import of version 0.4 2020-10-24 15:07:39 +02:00
7766cab320 x11-misc/xvkbd: initial import of version 4.1 2020-10-24 14:41:42 +02:00
edeb38c438 Merge remote-tracking branch 'tgurr/mbedtls' into master 2020-10-16 19:42:54 +02:00
Timo Gurr
a905f6a69b mbedtls: python is slotted 2020-10-16 14:53:09 +02:00
22a4b8c88d Merge remote-tracking branch 'tombriden/trickle-fix' into master 2020-10-15 13:58:12 +02:00
47e3a327f5 trickle: fix build with newer glibc 2020-10-15 12:47:08 +01:00
1d265ec71c Merge remote-tracking branch 'kapsh/zim' into master 2020-09-22 22:11:45 +02:00
a1d695d130 zim: version bump to 0.73.2 2020-09-18 01:30:29 +03:00
d604fdd3e3 dev-util/github-cli: version bump to 1.0.0 2020-09-17 18:19:16 +02:00
030647d916 Merge remote-tracking branch 'kapsh/mypy' into master 2020-09-17 17:55:40 +02:00
4b11a0f320 mypy: version bump to 0.782 2020-09-13 22:59:20 +03:00
ea70e8ecda mypy_extensions: version bump to 0.4.3 2020-09-13 22:59:16 +03:00
bde0a5fdfb Merge remote-tracking branch 'kapsh/typed-ast' into master 2020-09-13 14:50:17 +02:00
1a2e490361 Merge remote-tracking branch 'kapsh/pinta' into master 2020-09-13 14:50:05 +02:00
18fe5ece15 typed-ast: version bump to 1.4.1 2020-09-13 14:23:32 +03:00
13 changed files with 408 additions and 9 deletions

View File

@@ -36,7 +36,7 @@ DEPENDENCIES="
sys-libs/zlib
test:
dev-lang/perl:*
dev-lang/python[>=3]
dev-lang/python:*[>=3]
"
CMAKE_SRC_CONFIGURE_PARAMS=(

View File

@@ -24,7 +24,7 @@ MYOPTIONS=""
DEPENDENCIES="
build+run:
dev-python/typed-ast[>=1.4.0&<1.5.0][python_abis:*(-)?]
dev-python/mypy_extensions[>=0.4.0&<0.5.0][python_abis:*(-)?]
dev-python/mypy_extensions[>=0.4.3&<0.5.0][python_abis:*(-)?]
dev-python/typing-extensions[>=3.7.4][python_abis:*(-)?]
test:
dev-python/attrs[>=18.0][python_abis:*(-)?]

View File

@@ -17,6 +17,7 @@ MYOPTIONS=""
DEPENDENCIES="
build+run:
dev-libs/libevent:=
net-libs/libtirpc
"
BUGS_TO="hasufell@posteo.de"
@@ -27,3 +28,10 @@ DEFAULT_SRC_PREPARE_PATCHES=(
"${FILES}"/fix-install.patch
)
src_prepare(){
CFLAGS+=" -I/usr/$(exhost --target)/include/tirpc"
LDFLAGS+=" -ltirpc"
autotools_src_prepare
}

View File

@@ -0,0 +1,31 @@
# Copyright 2020 Julian Ospald <hasufell@posteo.de>
# Distributed under the terms of the GNU General Public License v2
require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 ] ]
SUMMARY="An input event router"
DOWNLOADS="https://files.bedroomlan.org/debian/pool/main/e/evrouter/evrouter_${PV}.tar.gz"
LICENCES="GPL-2"
SLOT="0"
PLATFORMS="~amd64 ~x86"
MYOPTIONS=""
RESTRICT="test"
DEPENDENCIES="
build+run:
x11-libs/libX11
x11-libs/libXtst
"
BUGS_TO="hasufell@posteo.de"
DEFAULT_SRC_CONFIGURE_PARAMS=(
--without-xmms
)
src_prepare() {
default
eautoreconf
}

View File

@@ -0,0 +1,48 @@
From 375ef42393f3dc6edbaa2cb70c79b2366072db38 Mon Sep 17 00:00:00 2001
From: Sergei Trofimovich <slyfox@gentoo.org>
Date: Sun, 19 Jan 2020 15:24:20 +0000
Subject: [PATCH] src/rc/rc-logger.h: fix build failure against gcc-10
On gcc-10 (and gcc-9 -fno-common) build fails as:
```
cc -L../librc -L../libeinfo -O2 -g -std=c99 -Wall -Wextra -Wimplicit -Wshadow \
-Wformat=2 -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn \
-Wmissing-format-attribute -Wnested-externs -Winline -Wwrite-strings \
-Wcast-align -Wcast-qual -Wpointer-arith -Wdeclaration-after-statement \
-Wsequence-point -Werror=implicit-function-declaration \
-Wl,-rpath=/lib -o openrc rc.o rc-logger.o rc-misc.o rc-plugin.o _usage.o -lutil -lrc -leinfo -Wl,-Bdynamic -ldl
ld: rc-logger.o:/home/slyfox/dev/git/openrc/src/rc/rc-logger.h:16:
multiple definition of `rc_logger_pid'; rc.o:openrc/src/rc/rc-logger.h:16: first defined here
ld: rc-logger.o:/home/slyfox/dev/git/openrc/src/rc/rc-logger.h:17:
multiple definition of `rc_logger_tty'; rc.o:openrc/src/rc/rc-logger.h:17: first defined here
```
gcc-10 will change the default from -fcommon to fno-common:
https://gcc.gnu.org/PR85678.
The error also happens if CFLAGS=-fno-common passed explicitly.
This fixes #348.
---
src/rc/rc-logger.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/rc/rc-logger.h b/src/rc/rc-logger.h
index bf6e3e57..1da294b0 100644
--- a/src/rc/rc-logger.h
+++ b/src/rc/rc-logger.h
@@ -13,8 +13,8 @@
#ifndef RC_LOGGER_H
#define RC_LOGGER_H
-pid_t rc_logger_pid;
-int rc_logger_tty;
+extern pid_t rc_logger_pid;
+extern int rc_logger_tty;
extern bool rc_in_logger;
void rc_logger_open(const char *runlevel);
--
2.29.0

View File

@@ -47,6 +47,10 @@ DEPENDENCIES="
REMOTE_IDS="github:OpenRC/${PN}"
DEFAULT_SRC_PREPARE_PATCHES=(
"${FILES}"/src-rc-rc-logger.h-fix-build-failure-against-gcc-10.patch
)
DEFAULT_SRC_COMPILE_PARAMS=(
LIBNAME=lib
LIBEXECDIR=/usr/$(exhost --target)/libexec/rc

View File

@@ -0,0 +1,37 @@
# Copyright 2020 Julian Ospald <hasufell@posteo.de>
# Distributed under the terms of the GNU General Public License v2
SUMMARY="Virtual keyboard for X window system"
HOMEPAGE="http://t-sato.in.coocan.jp/xvkbd/"
DOWNLOADS="http://t-sato.in.coocan.jp/xvkbd/${PNV}.tar.gz"
LICENCES="GPL-2"
SLOT="0"
PLATFORMS="~amd64 ~x86"
DEPENDENCIES="
build:
virtual/pkg-config
x11-proto/xorgproto
build+run:
x11-libs/libX11
x11-libs/libXaw
x11-libs/libXmu
x11-libs/libXt
x11-libs/libXtst
"
src_prepare() {
edo sed -i -e 's/shell pkg-config/shell ${PKG_CONFIG}/' \
Makefile.{am,in}
}
src_install() {
dodir /usr/share/X11/app-defaults
default
dodoc ChangeLog README
newman ${PN}.man ${PN}.1
}

View File

@@ -0,0 +1,27 @@
Upstream: sent https://github.com/zim-desktop-wiki/zim-desktop-wiki/pull/1261
From 1e63570eb941b985dc70df31043c7f4279c6a935 Mon Sep 17 00:00:00 2001
From: Alexander Kapshuna <kapsh@kap.sh>
Date: Fri, 18 Sep 2020 01:15:16 +0300
Subject: [PATCH] Fix reading preformatted text under Python 3.9
---
zim/formats/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/zim/formats/__init__.py b/zim/formats/__init__.py
index e1149f7f..f22b0b0b 100644
--- a/zim/formats/__init__.py
+++ b/zim/formats/__init__.py
@@ -822,7 +822,7 @@ class ParseTreeBuilder(Builder):
self._last_char = None
def append(self, tag, attrib=None, text=None):
- attrib = attrib.copy() if attrib is not None else None
+ attrib = attrib.copy() if attrib is not None else {}
if tag in BLOCK_LEVEL:
if text and not text.endswith('\n'):
text += '\n'
--
2.28.0

View File

@@ -0,0 +1,239 @@
Upstream: master
From 0c7d355a76236b0c687fb7c59cd974c2c7f35657 Mon Sep 17 00:00:00 2001
From: Robin Lee <cheeselee@fedoraproject.org>
Date: Thu, 10 Sep 2020 21:31:22 +0800
Subject: [PATCH] Replace usage of `getchildren` and `getiterator` with `list`
or `iter`
Methods getchildren() and getiterator() of classes ElementTree and Element in
the ElementTree module have been deprecated since Python 3.2 and removed since
Python 3.9.
Fixes #1258
Closes #1259
---
tests/__init__.py | 2 +-
zim/formats/__init__.py | 44 ++++++++++++++++++++---------------------
zim/gui/pageview.py | 2 +-
3 files changed, 24 insertions(+), 24 deletions(-)
diff --git a/tests/__init__.py b/tests/__init__.py
index 20e5b8df..88f87f87 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -559,7 +559,7 @@ class _TestData(object):
tree = etree.ElementTree(file=root + '/tests/data/notebook-wiki.xml')
test_data = []
- for node in tree.getiterator(tag='page'):
+ for node in tree.iter(tag='page'):
name = node.attrib['name']
text = str(node.text.lstrip('\n'))
test_data.append((name, text))
diff --git a/zim/formats/__init__.py b/zim/formats/__init__.py
index 9e00c169..e1149f7f 100644
--- a/zim/formats/__init__.py
+++ b/zim/formats/__init__.py
@@ -262,7 +262,7 @@ class ParseTree(object):
'''Returns True if the tree contains any content at all.'''
root = self._etree.getroot()
return root is not None and (
- bool(root.getchildren()) or (root.text and not root.text.isspace())
+ bool(list(root)) or (root.text and not root.text.isspace())
)
@property
@@ -284,14 +284,14 @@ class ParseTree(object):
myroot = self._etree.getroot()
otherroot = tree._etree.getroot()
if otherroot.text:
- children = myroot.getchildren()
+ children = list(myroot)
if children:
last = children[-1]
last.tail = (last.tail or '') + otherroot.text
else:
myroot.text = (myroot.text or '') + otherroot.text
- for element in otherroot.getchildren():
+ for element in iter(otherroot):
myroot.append(element)
return self
@@ -312,7 +312,7 @@ class ParseTree(object):
# HACK: Force sorting of attrib - else change in python3.8 breaks test cases
# Ensure all attrib are string, else ElementTree fails
- for element in self._etree.getiterator('*'):
+ for element in self._etree.iter('*'):
myattrib = element.attrib.copy()
element.attrib.clear()
for key in sorted(myattrib.keys()):
@@ -342,8 +342,8 @@ class ParseTree(object):
from zim.notebook.page import HRef # XXX
seen = set()
for elt in itertools.chain(
- self._etree.getiterator(LINK),
- self._etree.getiterator(IMAGE)
+ self._etree.iter(LINK),
+ self._etree.iter(IMAGE)
):
href = elt.attrib.get('href')
if href and href not in seen:
@@ -359,7 +359,7 @@ class ParseTree(object):
@returns: yields an unordered list of tag names
'''
seen = set()
- for elt in self._etree.getiterator(TAG):
+ for elt in self._etree.iter(TAG):
name = elt.text
if not name in seen:
seen.add(name)
@@ -367,7 +367,7 @@ class ParseTree(object):
def _get_heading_element(self, level=1):
root = self._etree.getroot()
- children = root.getchildren()
+ children = list(root)
if root.text and not root.text.isspace():
return None
@@ -424,7 +424,7 @@ class ParseTree(object):
'''
root = self._etree.getroot()
roottext = root.text and not root.text.isspace()
- children = root.getchildren()
+ children = list(root)
if children and not roottext:
first = children[0]
@@ -442,7 +442,7 @@ class ParseTree(object):
and a max depth.
'''
path = []
- for heading in self._etree.getiterator('h'):
+ for heading in self._etree.iter('h'):
level = int(heading.attrib['level'])
# find parent header in path using old level
while path and path[-1][0] >= level:
@@ -461,11 +461,11 @@ class ParseTree(object):
adds a '_src_file' attribute to the elements with the full file path.
'''
if notebook is None:
- for element in self._etree.getiterator('img'):
+ for element in self._etree.iter('img'):
filepath = element.attrib['src']
element.attrib['_src_file'] = File(filepath)
else:
- for element in self._etree.getiterator('img'):
+ for element in self._etree.iter('img'):
filepath = element.attrib['src']
element.attrib['_src_file'] = notebook.resolve_file(element.attrib['src'], path)
@@ -473,7 +473,7 @@ class ParseTree(object):
'''Undo effect of L{resolve_images()}, mainly intended for
testing.
'''
- for element in self._etree.getiterator('img'):
+ for element in self._etree.iter('img'):
if '_src_file' in element.attrib:
element.attrib.pop('_src_file')
@@ -481,7 +481,7 @@ class ParseTree(object):
'''Calls encode_url() on all links that contain urls.
See zim.parsing for details. Modifies the parse tree.
'''
- for link in self._etree.getiterator('link'):
+ for link in self._etree.iter('link'):
href = link.attrib['href']
if href and is_url_re.match(href):
link.attrib['href'] = url_encode(href, mode=mode)
@@ -492,7 +492,7 @@ class ParseTree(object):
'''Calls decode_url() on all links that contain urls.
See zim.parsing for details. Modifies the parse tree.
'''
- for link in self._etree.getiterator('link'):
+ for link in self._etree.iter('link'):
href = link.attrib['href']
if href and is_url_re.match(href):
link.attrib['href'] = url_decode(href, mode=mode)
@@ -502,7 +502,7 @@ class ParseTree(object):
def count(self, text):
'''Returns the number of occurences of 'text' in this tree.'''
count = 0
- for element in self._etree.getiterator():
+ for element in self._etree.iter():
if element.text:
count += element.text.count(text)
if element.tail:
@@ -515,7 +515,7 @@ class ParseTree(object):
in this tree.
'''
count = 0
- for element in self._etree.getiterator():
+ for element in self._etree.iter():
if element.text:
newstring, n = regex.subn('', element.text)
count += n
@@ -535,7 +535,7 @@ class ParseTree(object):
elif element.tag in ('li', 'h'):
return True # implicit newline
else:
- children = element.getchildren()
+ children = list(element)
if children:
return self._get_element_ends_with_newline(children[-1]) # recurs
elif element.text:
@@ -586,7 +586,7 @@ class ParseTree(object):
@param tag: tag name
@returns: yields L{Node} objects
'''
- for elt in self._etree.getiterator(tag):
+ for elt in self._etree.iter(tag):
yield Element.new_from_etree(elt)
def replace(self, tag, func):
@@ -932,7 +932,7 @@ class OldParseTreeBuilder(object):
if len(self._stack) > 1 and not (
tag in (IMAGE, OBJECT, HEADDATA, TABLEDATA)
or (self._last.text and not self._last.text.isspace())
- or self._last.getchildren()
+ or bool(list(self._last))
):
# purge empty tags
if self._last.text and self._last.text.isspace():
@@ -940,7 +940,7 @@ class OldParseTreeBuilder(object):
empty = self._stack.pop()
self._stack[-1].remove(empty)
- children = self._stack[-1].getchildren()
+ children = list(self._stack[-1])
if children:
self._last = children[-1]
if not self._last.tail is None:
@@ -1053,7 +1053,7 @@ class OldParseTreeBuilder(object):
def _append_to_previous(self, text):
'''Add text before current element'''
parent = self._stack[-2]
- children = parent.getchildren()[:-1]
+ children = list(parent)[:-1]
if children:
if children[-1].tail:
children[-1].tail = children[-1].tail + text
diff --git a/zim/gui/pageview.py b/zim/gui/pageview.py
index 84fe99b4..c2c29cc5 100644
--- a/zim/gui/pageview.py
+++ b/zim/gui/pageview.py
@@ -857,7 +857,7 @@ class TextBuffer(Gtk.TextBuffer):
if not iter.starts_line():
self.insert_at_cursor('\n')
- for element in node.getchildren():
+ for element in iter(node):
if element.tag in ('p', 'div'):
# No force line start here on purpose
if 'indent' in element.attrib:
--
2.28.0

View File

@@ -25,14 +25,14 @@ DEPENDENCIES="
recommendation:
dev-python/pyxdg[python_abis:*(-)?]
suggestion:
app-text/dvipng
app-text/texlive-core
app-text/dvipng [[ note = [ equation plugin ] ]]
app-text/texlive-core [[ note = [ equation plugin ] ]]
dev-libs/zeitgeist:2.0
dev-scm/bzr
media-gfx/ImageMagick
media-gfx/graphviz
media-gfx/scrot
media-sound/lilypond
dev-scm/bzr [[ note = [ version control plugin ] ]]
media-gfx/graphviz [[ note = [ diagram editor plugin ] ]]
media-gfx/ImageMagick [[ note = [ screenshot plugin ] ]]
media-gfx/scrot [[ note = [ screenshot plugin ] ]]
media-sound/lilypond [[ note = [ music score plugin ] ]]
sci-apps/gnuplot
"
@@ -41,6 +41,11 @@ RESTRICT="test"
WORK=${WORKBASE}/${PNV/_rc/-rc}
DEFAULT_SRC_PREPARE_PATCHES=(
"${FILES}"/Fix-reading-preformatted-text-under-Python-3.9.patch
"${FILES}"/Replace-usage-of-getchildren-and-getiterator-with-li.patch
)
pkg_setup() {
unset DISPLAY # tries to access X socket
}