[gentoo-dev] Last rites: dev-python/pyalsaaudio

2020-04-25 Thread Michał Górny
# Michał Górny  (2020-04-25)
# Unmaintained.  Stuck on Python 3.6.  Tests require direct hardware
# access.  Ebuild broken.  No revdeps.
# Removal in 30 days.  Bug #719380.
dev-python/pyalsaaudio

-- 
Best regards,
Michał Górny



signature.asc
Description: This is a digitally signed message part


[gentoo-dev] Last rites: dev-python/pyodbc

2020-04-25 Thread Michał Górny
# Michał Górny  (2020-04-25)
# Stuck on py3.6.  Missing tests.  No revdeps.
# Removal in 30 days.  Bug #719424.
dev-python/pyodbc

-- 
Best regards,
Michał Górny



signature.asc
Description: This is a digitally signed message part


[gentoo-dev] Last rites: dev-python/pyjade

2020-04-25 Thread Michał Górny
# Michał Górny  (2020-04-25)
# Unmaintained.  Stuck on Python 3.6.  Missing tests.  The only revdep
# is masked for removal.
# Removal in 30 days.  Bug #719418.
dev-python/pyjade

-- 
Best regards,
Michał Górny



signature.asc
Description: This is a digitally signed message part


Re: [gentoo-dev] package up for grabs: net-news/newsboat

2020-04-25 Thread Cédric Krier
On 2020-04-05 19:52, Georgy Yakovlev wrote:
> No longer use it.
> Needs a minor bump, upstream changed doc dependency to asciidoctor.
> Uses custom build system and rust,
> may be tricky to maintain, but I can help.
> 
> Couple of open bugs: arm keywording and musl related build falure.
> 
> net-news/newsboat

I use it so I took it and bumped to the last version.

-- 
Cédric Krier


signature.asc
Description: PGP signature


[gentoo-dev] Last rites: dev-python/pyswisseph

2020-04-25 Thread Michał Górny
# Michał Górny  (2020-04-25)
# Unmaintained.  Stuck on py3.6.  Tests missing.  The only revdep masked
# for removal.
# Removal in 30 days.  Bug #719432.
dev-python/pyswisseph

-- 
Best regards,
Michał Górny



signature.asc
Description: This is a digitally signed message part


[gentoo-dev] [PATCH] meson.eclass: implement support for native machine files

2020-04-25 Thread Mike Gilbert
Using a native file avoids putting meson into cross-compiler mode for
multilib builds.

Reference: https://mesonbuild.com/Machine-files.html
Reference: https://mesonbuild.com/Native-environments.html

Bug: https://bugs.gentoo.org/719382
Signed-off-by: Mike Gilbert 
---
 eclass/meson.eclass | 107 +++-
 1 file changed, 87 insertions(+), 20 deletions(-)

diff --git a/eclass/meson.eclass b/eclass/meson.eclass
index 423a497e840c..7b1a6a9735bd 100644
--- a/eclass/meson.eclass
+++ b/eclass/meson.eclass
@@ -125,17 +125,17 @@ _meson_env_array() {
python -c "${__MESON_ARRAY_PARSER}" "$@"
 }
 
-# @FUNCTION: _meson_create_cross_file
+# @FUNCTION: _meson_get_machine_info
+# @USAGE: 
+# @RETURN: system/cpu_family/cpu variables
 # @INTERNAL
 # @DESCRIPTION:
-# Creates a cross file. meson uses this to define settings for
-# cross-compilers. This function is called from meson_src_configure.
-_meson_create_cross_file() {
-   # Reference: http://mesonbuild.com/Cross-compilation.html
+# Translate toolchain tuple into machine values for meson.
+_meson_get_machine_info() {
+   local tuple=$1
 
# system roughly corresponds to uname -s (lowercase)
-   local system=unknown
-   case ${CHOST} in
+   case ${tuple} in
*-aix*)  system=aix ;;
*-cygwin*)   system=cygwin ;;
*-darwin*)   system=darwin ;;
@@ -145,19 +145,29 @@ _meson_create_cross_file() {
*-solaris*)  system=sunos ;;
esac
 
-   local cpu_family=$(tc-arch)
+   cpu_family=$(tc-arch "${tuple}")
case ${cpu_family} in
amd64) cpu_family=x86_64 ;;
arm64) cpu_family=aarch64 ;;
esac
 
# This may require adjustment based on CFLAGS
-   local cpu=${CHOST%%-*}
+   cpu=${tuple%%-*}
+}
+
+# @FUNCTION: _meson_create_cross_file
+# @RETURN: path to cross file
+# @INTERNAL
+# @DESCRIPTION:
+# Creates a cross file. meson uses this to define settings for
+# cross-compilers. This function is called from meson_src_configure.
+_meson_create_cross_file() {
+   local system cpu_family cpu
+   _meson_get_machine_info "${CHOST}"
 
-   local needs_exe_wrapper=false
-   tc-is-cross-compiler && needs_exe_wrapper=true
+   local fn=${T}/meson.${CHOST}.ini
 
-   cat > "${T}/meson.${CHOST}.${ABI}" <<-EOF
+   cat > "${fn}" <<-EOF
[binaries]
ar = $(_meson_env_array "$(tc-getAR)")
c = $(_meson_env_array "$(tc-getCC)")
@@ -181,16 +191,67 @@ _meson_create_cross_file() {
objc_link_args = $(_meson_env_array "${OBJCFLAGS} ${LDFLAGS}")
objcpp_args = $(_meson_env_array "${OBJCXXFLAGS} ${CPPFLAGS}")
objcpp_link_args = $(_meson_env_array "${OBJCXXFLAGS} ${LDFLAGS}")
-   needs_exe_wrapper = ${needs_exe_wrapper}
+   needs_exe_wrapper = true
sys_root = '${SYSROOT}'
-   pkg_config_libdir = 
'${PKG_CONFIG_LIBDIR-${EPREFIX}/usr/$(get_libdir)/pkgconfig}'
+   pkg_config_libdir = '${EPREFIX}/usr/$(get_libdir)/pkgconfig'
 
[host_machine]
system = '${system}'
cpu_family = '${cpu_family}'
cpu = '${cpu}'
-   endian = '$(tc-endian)'
+   endian = '$(tc-endian "${CHOST}")'
+   EOF
+
+   echo "${fn}"
+}
+
+# @FUNCTION: _meson_create_native_file
+# @RETURN: path to native file
+# @INTERNAL
+# @DESCRIPTION:
+# Creates a native file. meson uses this to define settings for
+# native compilers. This function is called from meson_src_configure.
+_meson_create_native_file() {
+   local system cpu_family cpu
+   _meson_get_machine_info "${CBUILD}"
+
+   local fn=${T}/meson.${CBUILD}.ini
+
+   cat > "${fn}" <<-EOF
+   [binaries]
+   ar = $(_meson_env_array "$(tc-getBUILD_AR)")
+   c = $(_meson_env_array "$(tc-getBUILD_CC)")
+   cpp = $(_meson_env_array "$(tc-getBUILD_CXX)")
+   fortran = $(_meson_env_array "$(tc-getBUILD_PROG FC gfortran)")
+   llvm-config = '$(tc-getBUILD_PROG LLVM_CONFIG llvm-config)'
+   objc = $(_meson_env_array "$(tc-getBUILD_PROG OBJC cc)")
+   objcpp = $(_meson_env_array "$(tc-getBUILD_PROG OBJCXX c++)")
+   pkgconfig = '$(tc-getBUILD_PKG_CONFIG)'
+   strip = $(_meson_env_array "$(tc-getBUILD_STRIP)")
+   windres = $(_meson_env_array "$(tc-getBUILD_PROG RC windres)")
+
+   [properties]
+   c_args = $(_meson_env_array "${BUILD_CFLAGS} ${BUILD_CPPFLAGS}")
+   c_link_args = $(_meson_env_array "${BUILD_CFLAGS} ${BUILD_LDFLAGS}")
+   cpp_args = $(_meson_env_array "${BUILD_CXXFLAGS} ${BUILD_CPPFLAGS}")
+   cpp_link_args = $(_meson_env_array "${BUILD_CXXFLAGS} ${BUILD_LDFLAGS}")
+   fortran_args = $(_meson_env_array "${BUILD_FCFLAGS}")
+   fortran_link_args = $(_meson_env_array "${BUILD_FCFLAGS} 
${BUILD_LDFLAGS}")
+   objc_args = $(_meson_env_array "${BUILD_OBJCFLAGS} ${BUILD_CPPFLAGS}")
+   objc_link_args = $(_meson_env_array "${BUILD_OBJCFLAGS} 

[gentoo-dev] [PSA] If you ssh interactively to git.gentoo.org (somehow) let me know.

2020-04-25 Thread Alec Warner
TL;DR: if all you do is use git to commit to git.gentoo.org, you are not
affected and can stop reading; I know folks use git+ssh://g...@git.gentoo.org
... to push commits, that will not change.

In the olden times Gentoo used cvs as its source control and people would
push their commits to the cvs server over ssh. The setup at the time was
that everyone who pushed had ssh access to cvs.gentoo.org.

However, Gentoo doesn't use cvs (and has not for many years[1]). The git
system uses 'gitolite' and people who push do so as 'g...@git.gentoo.org'
(not as themselves.) Gitolite handles the per-user multiplexing and
everything is happy.

However, we never took the ssh access to 'cvs.gentoo.org' away, most devs
can still ssh to "git.gentoo.org" as themselves. Now the access doesn't get
you much (ForceCommand in the authorized_keys file just runs a commit
wrapper, so you could try to commit to cvs or svn I guess ;p)

Thus I now plan to remove this access[0]. If you need access to ssh as
something not-git to git.gentoo.org, let me know in the next week.

[0] Infra users are not affected; they always had normal ssh access to this
host.
[1] Anonymous access to source trees (e.g. via anon* services) is
unaffected by this change.


Re: [gentoo-portage-dev] Need backup mentor for FUSE-based sandbox project

2020-04-25 Thread Alec Warner
On Thu, Apr 23, 2020 at 12:09 PM Michał Górny  wrote:

> Hi, everyone.
>
> It seems that we *urgently* (read: in 6 days) need to find backup
> mentors for this year's GSoC projects.  I'm mentoring the project to
> develop a FUSE-based sandbox alternative that's going to work reliably
> with more packages than the LD_PRELOAD hack [1].
>
> Would anyone volunteer to be the backup maintainer for this?
>
> [1]
> https://summerofcode.withgoogle.com/dashboard/organization/5749981018849280/proposal/5572241732927488/


I get a 403 for that.

https://wiki.gentoo.org/wiki/Google_Summer_of_Code/2020/Ideas#FUSE-powered_sandbox
is
your writeup; I assume the above is supposed to be a link to the student's
proposal?


>
>
> --
> Best regards,
> Michał Górny
>
>


[gentoo-dev] Last rites: app-text/djvusmooth, dev-python/python-djvulibre

2020-04-25 Thread Michał Górny
# Michał Górny  (2020-04-26)
# Unmaintained.  djvusmooth is stuck on py2, python-djvulibre on py3.6.
# Unresolved test failures.  No other revdeps.
# Removal in 30 days.  Bug #719488.
app-text/djvusmooth
dev-python/python-djvulibre

-- 
Best regards,
Michał Górny



signature.asc
Description: This is a digitally signed message part


[gentoo-dev] Last rites: dev-python/pillowfight

2020-04-25 Thread Michał Górny
# Michał Górny  (2020-04-25)
# Old transitional package.  No revdeps.
# Removal in 30 days.  Bug #719360.
dev-python/pillowfight

-- 
Best regards,
Michał Górny



signature.asc
Description: This is a digitally signed message part


[gentoo-dev] Last rites: dev-python/placefinder

2020-04-25 Thread Michał Górny
# Michał Górny  (2020-04-25)
# Last release in 2012.  Stuck on py3.6.  Missing tests.  No revdeps.
# Removal in 30 days.  Bug #719362.
dev-python/placefinder

-- 
Best regards,
Michał Górny



signature.asc
Description: This is a digitally signed message part


[gentoo-dev] Last rites: dev-python/nose-descriptionfixer

2020-04-25 Thread Michał Górny
# Michał Górny  (2020-04-25)
# Unused plugin for dead dev-python/nose.  No revdeps.
# Removal in 30 days.  Bug #719280.
dev-python/nose-descriptionfixer

-- 
Best regards,
Michał Górny



signature.asc
Description: This is a digitally signed message part


[gentoo-dev] [PATCH] rebar.eclass: Use := dependency

2020-04-25 Thread Hanno Böck
All erlang rebar based packages should be rebuilt after a subslot
update of dev-lang/erlang.

Right now this is done in some ebuilds, but inconsistent.
Given this affects all packages this should be reflected in the
rebar.eclass, see also [1].

[1] https://bugs.gentoo.org/714702

Closes: https://bugs.gentoo.org/714702
Signed-off-by: Hanno Böck 
---

diff --git a/eclass/rebar.eclass b/eclass/rebar.eclass
index f2a620fd8..92dd16b08 100644
--- a/eclass/rebar.eclass
+++ b/eclass/rebar.eclass
@@ -32,7 +32,7 @@ esac
 
 EXPORT_FUNCTIONS src_prepare src_compile src_test src_install
 
-RDEPEND="dev-lang/erlang"
+RDEPEND="dev-lang/erlang:="
 DEPEND="${RDEPEND}
dev-util/rebar
>=sys-apps/gawk-4.1"

-- 
Hanno Böck
https://hboeck.de/



Re: [gentoo-dev] [PATCH] rebar.eclass: Use := dependency

2020-04-25 Thread Sergei Trofimovich
On Sat, 25 Apr 2020 10:01:50 +0200
Hanno Böck  wrote:

> All erlang rebar based packages should be rebuilt after a subslot
> update of dev-lang/erlang.
> 
> Right now this is done in some ebuilds, but inconsistent.
> Given this affects all packages this should be reflected in the
> rebar.eclass, see also [1].
> 
> [1] https://bugs.gentoo.org/714702
> 
> Closes: https://bugs.gentoo.org/714702
> Signed-off-by: Hanno Böck 
> ---
> 
> diff --git a/eclass/rebar.eclass b/eclass/rebar.eclass
> index f2a620fd8..92dd16b08 100644
> --- a/eclass/rebar.eclass
> +++ b/eclass/rebar.eclass
> @@ -32,7 +32,7 @@ esac
>  
>  EXPORT_FUNCTIONS src_prepare src_compile src_test src_install
>  
> -RDEPEND="dev-lang/erlang"
> +RDEPEND="dev-lang/erlang:="
>  DEPEND="${RDEPEND}
>   dev-util/rebar
>   >=sys-apps/gawk-4.1"  
> 
> -- 
> Hanno Böck
> https://hboeck.de/
> 

Looks good.

-- 

  Sergei



[gentoo-dev] Last rites: dev-python/dap

2020-04-25 Thread Michał Górny
# Michał Górny  (2020-04-25)
# Stuck on Python 2.  Last release in 2008.  The only revdep is probably
# wrong and last rited anyway.
# Removal in 30 days.  Bug #719348.
dev-python/dap

-- 
Best regards,
Michał Górny



signature.asc
Description: This is a digitally signed message part


[gentoo-dev] Last rites: dev-python/pastescript

2020-04-25 Thread Michał Górny
# Michał Górny  (2020-04-25)
# Stuck on py3.6.  Broken tests.  The only revdep last rited.
# Removal in 30 days.  Bug #719350.
dev-python/pastescript

-- 
Best regards,
Michał Górny



signature.asc
Description: This is a digitally signed message part


[gentoo-dev] Last rites: dev-python/patch

2020-04-25 Thread Michał Górny
# Michał Górny  (2020-04-25)
# Stuck on py3.6.  Missing tests.  No revdeps.
# Removal in 30 days.  Bug #719352.
dev-python/patch

-- 
Best regards,
Michał Górny



signature.asc
Description: This is a digitally signed message part


[gentoo-dev] Last rites: dev-python/pgpdump

2020-04-25 Thread Michał Górny
# Michał Górny  (2020-04-25)
# Stuck on Python 3.6.  Missing tests.  No revdeps.
# Removal in 30 days.  Bug #719356.
dev-python/pgpdump

-- 
Best regards,
Michał Górny



signature.asc
Description: This is a digitally signed message part