diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-02-17 01:16:38 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-02-17 01:16:38 +0000 |
commit | 53cba99042fa967e2a93da9f8db806fe2d035543 (patch) | |
tree | 9780d3b87dfc6bdebc6b7b7d15af1ecb813c6853 /net-irc/weechat | |
parent | 71deace00d1a2b091313fe137ab7092418c6f87c (diff) |
gentoo resync : 17.02.2020
Diffstat (limited to 'net-irc/weechat')
-rw-r--r-- | net-irc/weechat/Manifest | 5 | ||||
-rw-r--r-- | net-irc/weechat/files/2.7-CVE-2020-8955.patch | 46 | ||||
-rw-r--r-- | net-irc/weechat/weechat-2.6-r1.ebuild | 147 | ||||
-rw-r--r-- | net-irc/weechat/weechat-2.7-r2.ebuild (renamed from net-irc/weechat/weechat-2.7-r1.ebuild) | 4 |
4 files changed, 51 insertions, 151 deletions
diff --git a/net-irc/weechat/Manifest b/net-irc/weechat/Manifest index 1a4d577ac343..c7933eeddff5 100644 --- a/net-irc/weechat/Manifest +++ b/net-irc/weechat/Manifest @@ -1,6 +1,5 @@ -DIST weechat-2.6.tar.xz 2080092 BLAKE2B e54d8493de7783e18e0de3a7280088a27a70b270a2d7a504ad35c4091e03a0d3c2f3fd19260b700bb115e3804ab4d6d8963bea46faad1368f3dd0569c0595add SHA512 cf56692e12b2e034675d4c15a8822836b2fcf93d584948e338d263f5a7207edf4599cc72bfb940427146f5f75e7239207cf54f5ed07dd5b6119f68c445725a2d +AUX 2.7-CVE-2020-8955.patch 1924 BLAKE2B ba379cd994f45ba6a7944e9d16c0d98d4646b8c263e23fdd221bad54e942bfee9957df0205755cd3ea0a9fb6c374d32a8067b02f0985bdb3af9af21cc813e0d2 SHA512 181d0332dd724d12d734c697dec80c4451896d24b26de19642a8c773c17bf53e920ba283dec2cd5eda1ba158b764ac27596e58486c9fc4cad3ed81468a3da3c2 DIST weechat-2.7.tar.xz 2226876 BLAKE2B accb97f018c5405850df5ba7d1d8ad0b23ccfd478cedf29ebbd1f468f364efcfce7a7a34ef557ce7f64c2157392c1b281f8f74e57782ed69b4e0ada9f1b67b37 SHA512 5377cf9c37520cb2b7d1ba43251df3f33d814783ea4bd20d28cb08a2106c8db0e44a392a61929987b807a7d5e69a3c0ed1f3fec122a014b7ea7068e159341075 -EBUILD weechat-2.6-r1.ebuild 3805 BLAKE2B 2c9fb850906a064b7b48e3cfd34f5b8785a14b9c53533b51753db92336f2fa5ac0927de2fc5cc8a46defe9e75e7c34a79aa7b06177dc8e9de03dfa633f7ee918 SHA512 dfe35dfb97761d99a4eb819fc0ed957ecc69f42bef7cad92082d284350e4e91b0e68796bcd360ce6b2deb55977787b53b76e0243a7e0c76f80c6d51f68026a50 -EBUILD weechat-2.7-r1.ebuild 4034 BLAKE2B 267b0cc758bc9fc891efa337371aad866dafe7b6199fb8470c203ec4d7ce1053da1077d89fb3aa7b75ecb0704d5bf66b1785365949065f834f0b52d011f8a221 SHA512 33070e95c038ee15e1bb2cbeb72c66edcbe10f1e563fa62013532bdf686085dba38952de7fb506eb2dc1c8a48eaad0cf561d47972ddbf68e1e30e827d89fc3b0 +EBUILD weechat-2.7-r2.ebuild 4085 BLAKE2B c46368e6e1b4c938547f9b4d82fea46a4e1a24179b08ffbdeacbcadda140ac3fec5971002e890cc4e63e96a136329859d1cec0994e7849ff40a96c97fb697e85 SHA512 e8dac0642ba99faa003d59b1c67f7213b7afb2ab4338979df1051e85b59a5e01c577b907e62a691e4f7cd31e66bcaa59cf63fc309a75b0e5f24720ef28224d9e EBUILD weechat-9999.ebuild 4034 BLAKE2B 267b0cc758bc9fc891efa337371aad866dafe7b6199fb8470c203ec4d7ce1053da1077d89fb3aa7b75ecb0704d5bf66b1785365949065f834f0b52d011f8a221 SHA512 33070e95c038ee15e1bb2cbeb72c66edcbe10f1e563fa62013532bdf686085dba38952de7fb506eb2dc1c8a48eaad0cf561d47972ddbf68e1e30e827d89fc3b0 MISC metadata.xml 988 BLAKE2B 26997114f73adc3dc8758a9241009fe8fd84c9856bbccdc31fc0ad7e8d26b20656c27451cb4475fe60421069e1df43ed5f1bd39cdf493cc47622796f20d79487 SHA512 2463ed39fd434c3dac81c46525907c76a0cdba7d321029cf8b165ee62b003ab1e7153d714b4f71664ffd758572b89db4b0d7c30280f56acd7708668d54a17046 diff --git a/net-irc/weechat/files/2.7-CVE-2020-8955.patch b/net-irc/weechat/files/2.7-CVE-2020-8955.patch new file mode 100644 index 000000000000..0bad821f9130 --- /dev/null +++ b/net-irc/weechat/files/2.7-CVE-2020-8955.patch @@ -0,0 +1,46 @@ +From 6f4f147d8e86adf9ad34a8ffd7e7f1f23a7e74da Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= <flashcode@flashtux.org> +Date: Sat, 8 Feb 2020 20:24:50 +0100 +Subject: [PATCH] irc: fix crash when receiving a malformed message 324 + (channel mode) + +Thanks to Stuart Nevans Locke for reporting the issue. +--- + ChangeLog.adoc | 1 + + src/plugins/irc/irc-mode.c | 21 ++++++++++++--------- + 2 files changed, 13 insertions(+), 9 deletions(-) + +diff --git a/src/plugins/irc/irc-mode.c b/src/plugins/irc/irc-mode.c +index 2237a344b..e79f0deb7 100644 +--- a/src/plugins/irc/irc-mode.c ++++ b/src/plugins/irc/irc-mode.c +@@ -224,17 +224,20 @@ irc_mode_channel_update (struct t_irc_server *server, + current_arg++; + if (pos[0] == chanmode) + { +- chanmode_found = 1; +- if (set_flag == '+') ++ if (!chanmode_found) + { +- str_mode[0] = pos[0]; +- str_mode[1] = '\0'; +- strcat (new_modes, str_mode); +- if (argument) ++ chanmode_found = 1; ++ if (set_flag == '+') + { +- if (new_args[0]) +- strcat (new_args, " "); +- strcat (new_args, argument); ++ str_mode[0] = pos[0]; ++ str_mode[1] = '\0'; ++ strcat (new_modes, str_mode); ++ if (argument) ++ { ++ if (new_args[0]) ++ strcat (new_args, " "); ++ strcat (new_args, argument); ++ } + } + } + } diff --git a/net-irc/weechat/weechat-2.6-r1.ebuild b/net-irc/weechat/weechat-2.6-r1.ebuild deleted file mode 100644 index 80b28aea3253..000000000000 --- a/net-irc/weechat/weechat-2.6-r1.ebuild +++ /dev/null @@ -1,147 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python{3_6,3_7} ) - -inherit cmake-utils python-single-r1 xdg-utils - -if [[ ${PV} == "9999" ]] ; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/weechat/weechat.git" -else - SRC_URI="https://weechat.org/files/src/${P}.tar.xz" - KEYWORDS="amd64 ~arm ~ppc64 x86 ~x64-macos" -fi - -DESCRIPTION="Portable and multi-interface IRC client" -HOMEPAGE="https://weechat.org/" - -LICENSE="GPL-3" -SLOT="0" - -NETWORKS="+irc" -PLUGINS="+alias +buflist +charset +exec +fifo +fset +logger +relay +scripts +spell +trigger +xfer" -# dev-lang/v8 was dropped from Gentoo so we can't enable javascript support -SCRIPT_LANGS="guile lua +perl php +python ruby tcl" -LANGS=" cs de es fr it ja pl ru" -IUSE="doc man nls +ssl test ${SCRIPT_LANGS} ${PLUGINS} ${INTERFACES} ${NETWORKS}" -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" - -RDEPEND=" - dev-libs/libgcrypt:0= - net-misc/curl[ssl] - sys-libs/ncurses:0= - sys-libs/zlib - charset? ( virtual/libiconv ) - guile? ( >=dev-scheme/guile-2.0 ) - lua? ( dev-lang/lua:0[deprecated] ) - nls? ( virtual/libintl ) - perl? ( dev-lang/perl:= ) - php? ( >=dev-lang/php-7.0:*[embed] ) - python? ( ${PYTHON_DEPS} ) - ruby? ( || ( dev-lang/ruby:2.6 dev-lang/ruby:2.5 dev-lang/ruby:2.4 ) ) - ssl? ( net-libs/gnutls ) - spell? ( app-text/aspell ) - tcl? ( >=dev-lang/tcl-8.4.15:0= ) -" -DEPEND="${RDEPEND} - test? ( dev-util/cpputest ) -" - -BDEPEND=" - doc? ( >=dev-ruby/asciidoctor-1.5.4 ) - man? ( >=dev-ruby/asciidoctor-1.5.4 ) - nls? ( >=sys-devel/gettext-0.15 ) -" - -DOCS="AUTHORS.adoc ChangeLog.adoc Contributing.adoc ReleaseNotes.adoc README.adoc" - -# tests need to be fixed to not use system plugins if weechat is already installed -RESTRICT="test" - -pkg_setup() { - use python && python-single-r1_pkg_setup -} - -src_prepare() { - cmake-utils_src_prepare - - # install only required translations - local i - for i in ${LANGS} ; do - if ! has ${i} ${LINGUAS-${i}} ; then - sed -i \ - -e "/${i}.po/d" \ - po/CMakeLists.txt || die - fi - done - - # install only required documentation ; en always - for i in $(grep add_subdirectory doc/CMakeLists.txt \ - | sed -e 's/.*add_subdirectory(\(..\)).*/\1/' -e '/en/d'); do - if ! has ${i} ${LINGUAS-${i}} ; then - sed -i \ - -e '/add_subdirectory('${i}')/d' \ - doc/CMakeLists.txt || die - fi - done - - # install docs in correct directory - sed -i "s#\${SHAREDIR}/doc/\${PROJECT_NAME}#\0-${PV}/html#" doc/*/CMakeLists.txt || die - - if [[ ${CHOST} == *-darwin* ]]; then - # fix linking error on Darwin - sed -i "s/+ get_config_var('LINKFORSHARED')//" \ - cmake/FindPython.cmake || die - # allow to find the plugins by default - sed -i 's/".so,.dll"/".bundle,.so,.dll"/' \ - src/core/wee-config.c || die - fi -} - -src_configure() { - local mycmakeargs=( - -DLIBDIR=/usr/$(get_libdir) - -DENABLE_JAVASCRIPT=OFF - -DENABLE_LARGEFILE=ON - -DENABLE_NCURSES=ON - -DENABLE_ALIAS=$(usex alias) - -DENABLE_BUFLIST=$(usex buflist) - -DENABLE_CHARSET=$(usex charset) - -DENABLE_DOC=$(usex doc) - -DENABLE_EXEC=$(usex exec) - -DENABLE_FIFO=$(usex fifo) - -DENABLE_FSET=$(usex fset) - -DENABLE_GNUTLS=$(usex ssl) - -DENABLE_GUILE=$(usex guile) - -DENABLE_IRC=$(usex irc) - -DENABLE_LOGGER=$(usex logger) - -DENABLE_LUA=$(usex lua) - -DENABLE_MAN=$(usex man) - -DENABLE_NLS=$(usex nls) - -DENABLE_PERL=$(usex perl) - -DENABLE_PHP=$(usex php) - -DENABLE_PYTHON=$(usex python) - -DENABLE_RELAY=$(usex relay) - -DENABLE_RUBY=$(usex ruby) - -DENABLE_SCRIPT=$(usex scripts) - -DENABLE_SCRIPTS=$(usex scripts) - -DENABLE_SPELL=$(usex spell) - -DENABLE_TCL=$(usex tcl) - -DENABLE_TESTS=$(usex test) - -DENABLE_TRIGGER=$(usex trigger) - -DENABLE_XFER=$(usex xfer) - ) - - cmake-utils_src_configure -} - -pkg_postinst() { - xdg_icon_cache_update -} - -pkg_postrm() { - xdg_icon_cache_update -} diff --git a/net-irc/weechat/weechat-2.7-r1.ebuild b/net-irc/weechat/weechat-2.7-r2.ebuild index 37b7a1e45182..36e757471243 100644 --- a/net-irc/weechat/weechat-2.7-r1.ebuild +++ b/net-irc/weechat/weechat-2.7-r2.ebuild @@ -12,7 +12,7 @@ if [[ ${PV} == "9999" ]] ; then EGIT_REPO_URI="https://github.com/weechat/weechat.git" else SRC_URI="https://weechat.org/files/src/${P}.tar.xz" - KEYWORDS="~amd64 ~arm ~ppc64 ~x86 ~x64-macos" + KEYWORDS="amd64 ~arm ~ppc64 x86 ~x64-macos" fi DESCRIPTION="Portable and multi-interface IRC client" @@ -62,6 +62,8 @@ DOCS="AUTHORS.adoc ChangeLog.adoc Contributing.adoc ReleaseNotes.adoc README.ado # tests need to be fixed to not use system plugins if weechat is already installed RESTRICT="test" +PATCHES=( "${FILESDIR}/${PV}-CVE-2020-8955.patch" ) + pkg_setup() { use python && python-single-r1_pkg_setup } |