Re: [gentoo-dev] Packages up for grabs post disbanding Ada: dev-lang/gnat-gcc and metastuff

2017-02-22 Thread Christopher Head
On February 22, 2017 2:07:47 AM PST, "Michał Górny"  wrote:
>Hi,
>
>The Ada project has been disbanded as having no members. Although there
>were a few people interested in helping out with Ada, nobody made it
>past the initial reply.

Shortly after sending my reply noting that I used ghdl, my situation changed 
and I no longer need it. It also sounded like there was at least one other 
person who was actually interested in and knowledgeable about Ada as a language 
rather than just one consuming package. So I think I shouldn’t be involved.

-- 
Christopher Head

signature.asc
Description: PGP signature


[gentoo-dev] [PATCH v2] java-ant-2.eclass: Replace unnecessary evals with arrays

2017-02-22 Thread Michał Górny
Replace the horrifying use of evals along with quoting to pass multiple
filenames whitespace-safe with much simpler bash arrays. While at it,
also simplify the find-read loop.

// v2: fixed find-read loop as pointed out by Arfrever
---
 eclass/java-ant-2.eclass | 40 ++--
 1 file changed, 18 insertions(+), 22 deletions(-)

diff --git a/eclass/java-ant-2.eclass b/eclass/java-ant-2.eclass
index 4cbce40b1aac..855a86de6119 100644
--- a/eclass/java-ant-2.eclass
+++ b/eclass/java-ant-2.eclass
@@ -161,16 +161,12 @@ java-ant_bsfix() {
 
find_args="${find_args} -type f ( -name ${JAVA_PKG_BSFIX_NAME// / -o 
-name } )"
 
-   # This voodoo is done for paths with spaces
-   local bsfix_these
-   while read line; do
-   [[ -z ${line} ]] && continue
-   bsfix_these="${bsfix_these} '${line}'"
-   done <<-EOF
-   $(find . ${find_args})
-   EOF
+   local bsfix_these=() line
+   while IFS= read -r -d $'\0' line; do
+   bsfix_these+=( "${line}" )
+   done < <(find . ${find_args} -print0)
 
-   [[ "${bsfix_these// /}" ]] && eval java-ant_bsfix_files ${bsfix_these}
+   [[ "${bsfix_these[@]}" ]] && java-ant_bsfix_files "${bsfix_these[@]}"
 
popd > /dev/null || die
 }
@@ -228,7 +224,7 @@ java-ant_bsfix_files() {
eerror "Please file a bug about this on bugs.gentoo.org"
die "Could not find valid -source/-target values"
else
-   local files
+   local files=()
 
for file in "${@}"; do
debug-print "${FUNCNAME}: ${file}"
@@ -241,7 +237,7 @@ java-ant_bsfix_files() {
chmod u+w "${file}" || die "chmod u+w ${file} 
failed"
fi
 
-   files="${files} -f '${file}'"
+   files+=( -f "${file}" )
done
 
# for javadoc target and all in one pass, we need the new 
rewriter.
@@ -255,7 +251,7 @@ java-ant_bsfix_files() {
if [[ -x ${rewriter4} && ${JAVA_ANT_ENCODING} ]]; then
[[ ${JAVA_ANT_REWRITE_CLASSPATH} ]] && local gcp="-g"
[[ ${JAVA_ANT_ENCODING} ]] && local enc="-e 
${JAVA_ANT_ENCODING}"
-   eval echo "cElementTree rewriter"
+   echo "cElementTree rewriter"
debug-print "${rewriter4} extra args: ${gcp} ${enc}"
${rewriter4} ${gcp} ${enc} \
-c "${JAVA_PKG_BSFIX_SOURCE_TAGS}" source 
${want_source} \
@@ -263,31 +259,31 @@ java-ant_bsfix_files() {
"${@}" || die "build-xml-rewrite failed"
elif [[ ! -f ${rewriter3} ]]; then
debug-print "Using second generation rewriter"
-   eval echo "Rewriting source attributes"
-   eval xml-rewrite-2.py ${files} \
+   echo "Rewriting source attributes"
+   xml-rewrite-2.py "${files[@]}" \
-c -e ${JAVA_PKG_BSFIX_SOURCE_TAGS// / -e } \
-a source -v ${want_source} || _bsfix_die 
"xml-rewrite2 failed: ${file}"
 
-   eval echo "Rewriting target attributes"
-   eval xml-rewrite-2.py ${files} \
+   echo "Rewriting target attributes"
+   xml-rewrite-2.py "${files[@]}" \
-c -e ${JAVA_PKG_BSFIX_TARGET_TAGS// / -e } \
-a target -v ${want_target} || _bsfix_die 
"xml-rewrite2 failed: ${file}"
 
-   eval echo "Rewriting nowarn attributes"
-   eval xml-rewrite-2.py ${files} \
+   echo "Rewriting nowarn attributes"
+   xml-rewrite-2.py "${files[@]}" \
-c -e ${JAVA_PKG_BSFIX_TARGET_TAGS// / -e } \
-a nowarn -v yes || _bsfix_die "xml-rewrite2 
failed: ${file}"
 
if [[ ${JAVA_ANT_REWRITE_CLASSPATH} ]]; then
-   eval echo "Adding gentoo.classpath to javac 
tasks"
-   eval xml-rewrite-2.py ${files} \
+   echo "Adding gentoo.classpath to javac tasks"
+   xml-rewrite-2.py "${files[@]}" \
 -c -e javac -e xjavac -a classpath -v \
 '\${gentoo.classpath}' \
 || _bsfix_die "xml-rewrite2 failed"
fi
else
debug-print "Using third generation rewriter"
-   eval echo "Rewriting attributes"
+   echo "Rewriting attributes"

Re: [gentoo-dev] Printer drivers and net-print

2017-02-22 Thread Andrew Savchenko
On Wed, 22 Feb 2017 07:10:25 +0100 Ulrich Mueller wrote:
> > On Tue, 21 Feb 2017, Gordon Pettey wrote:
> 
> > There is no requirement for category names to be x-y.
> 
> https://projects.gentoo.org/pms/6/pms.html#x1-180003.1.1 "Category Names"

I don't see a requirement here, only note on most common pattern:

``Note: A hyphen is not required because of the virtual category.
Usually, however, category names will contain a hyphen.''

So "printing" sounds good. Prefix will not give users any useful
information anyway in this case.

Best regards,
Andrew Savchenko


pgp5H2PN6hR5a.pgp
Description: PGP signature


Re: [gentoo-dev] Packages up for grabs post disbanding Ada: dev-lang/gnat-gcc and metastuff

2017-02-22 Thread Alfredo Tupone
On Wed, 22 Feb 2017 11:07:47 +0100
Michał Górny  wrote:

> Hi,
> 
> The Ada project has been disbanded as having no members. Although
> there were a few people interested in helping out with Ada, nobody
> made it past the initial reply. If anyone is still interested, the
> packages are up for grabs.
> 
> This involves the following packages:
> 
> app-eselect/eselect-gnat
> dev-ada/asis-gcc [lastrited]
> dev-ada/charles [lastrited]
> dev-lang/gnat-gcc
> virtual/ada
> virtual/gnat
> 

I asked to, but I needed a change in the toolchain eclass that is not
under my umbrella.

However the packages you cited are not needed by my implementation



[gentoo-dev] [PATCH] java-ant-2.eclass: Replace unnecessary evals with arrays

2017-02-22 Thread Michał Górny
Replace the horrifying use of evals along with quoting to pass multiple
filenames whitespace-safe with much simpler bash arrays. While at it,
also simplify the find-read loop.
---
 eclass/java-ant-2.eclass | 40 ++--
 1 file changed, 18 insertions(+), 22 deletions(-)

diff --git a/eclass/java-ant-2.eclass b/eclass/java-ant-2.eclass
index 4cbce40b1aac..4582b8f59426 100644
--- a/eclass/java-ant-2.eclass
+++ b/eclass/java-ant-2.eclass
@@ -161,16 +161,12 @@ java-ant_bsfix() {
 
find_args="${find_args} -type f ( -name ${JAVA_PKG_BSFIX_NAME// / -o 
-name } )"
 
-   # This voodoo is done for paths with spaces
-   local bsfix_these
-   while read line; do
-   [[ -z ${line} ]] && continue
-   bsfix_these="${bsfix_these} '${line}'"
-   done <<-EOF
-   $(find . ${find_args})
-   EOF
+   local bsfix_these=() line
+   while read -r -d $'\0' line; do
+   bsfix_these+=( "${line}" )
+   done < <(find . ${find_args})
 
-   [[ "${bsfix_these// /}" ]] && eval java-ant_bsfix_files ${bsfix_these}
+   [[ "${bsfix_these[@]}" ]] && java-ant_bsfix_files "${bsfix_these[@]}"
 
popd > /dev/null || die
 }
@@ -228,7 +224,7 @@ java-ant_bsfix_files() {
eerror "Please file a bug about this on bugs.gentoo.org"
die "Could not find valid -source/-target values"
else
-   local files
+   local files=()
 
for file in "${@}"; do
debug-print "${FUNCNAME}: ${file}"
@@ -241,7 +237,7 @@ java-ant_bsfix_files() {
chmod u+w "${file}" || die "chmod u+w ${file} 
failed"
fi
 
-   files="${files} -f '${file}'"
+   files+=( -f "${file}" )
done
 
# for javadoc target and all in one pass, we need the new 
rewriter.
@@ -255,7 +251,7 @@ java-ant_bsfix_files() {
if [[ -x ${rewriter4} && ${JAVA_ANT_ENCODING} ]]; then
[[ ${JAVA_ANT_REWRITE_CLASSPATH} ]] && local gcp="-g"
[[ ${JAVA_ANT_ENCODING} ]] && local enc="-e 
${JAVA_ANT_ENCODING}"
-   eval echo "cElementTree rewriter"
+   echo "cElementTree rewriter"
debug-print "${rewriter4} extra args: ${gcp} ${enc}"
${rewriter4} ${gcp} ${enc} \
-c "${JAVA_PKG_BSFIX_SOURCE_TAGS}" source 
${want_source} \
@@ -263,31 +259,31 @@ java-ant_bsfix_files() {
"${@}" || die "build-xml-rewrite failed"
elif [[ ! -f ${rewriter3} ]]; then
debug-print "Using second generation rewriter"
-   eval echo "Rewriting source attributes"
-   eval xml-rewrite-2.py ${files} \
+   echo "Rewriting source attributes"
+   xml-rewrite-2.py "${files[@]}" \
-c -e ${JAVA_PKG_BSFIX_SOURCE_TAGS// / -e } \
-a source -v ${want_source} || _bsfix_die 
"xml-rewrite2 failed: ${file}"
 
-   eval echo "Rewriting target attributes"
-   eval xml-rewrite-2.py ${files} \
+   echo "Rewriting target attributes"
+   xml-rewrite-2.py "${files[@]}" \
-c -e ${JAVA_PKG_BSFIX_TARGET_TAGS// / -e } \
-a target -v ${want_target} || _bsfix_die 
"xml-rewrite2 failed: ${file}"
 
-   eval echo "Rewriting nowarn attributes"
-   eval xml-rewrite-2.py ${files} \
+   echo "Rewriting nowarn attributes"
+   xml-rewrite-2.py "${files[@]}" \
-c -e ${JAVA_PKG_BSFIX_TARGET_TAGS// / -e } \
-a nowarn -v yes || _bsfix_die "xml-rewrite2 
failed: ${file}"
 
if [[ ${JAVA_ANT_REWRITE_CLASSPATH} ]]; then
-   eval echo "Adding gentoo.classpath to javac 
tasks"
-   eval xml-rewrite-2.py ${files} \
+   echo "Adding gentoo.classpath to javac tasks"
+   xml-rewrite-2.py "${files[@]}" \
 -c -e javac -e xjavac -a classpath -v \
 '\${gentoo.classpath}' \
 || _bsfix_die "xml-rewrite2 failed"
fi
else
debug-print "Using third generation rewriter"
-   eval echo "Rewriting attributes"
+   echo "Rewriting attributes"
local bsfix_extra_args=""
# WARNING KEEP THE 

[gentoo-dev] [PATCH] flag-o-matic.eclass: Replace unnecessary evals

2017-02-22 Thread Michał Górny
Replace the evals used to export variables with plain export calls. Bash
expands variable references for exported variable name anyway, rendering
the eval completely unnecessary.

Replace the single eval used for indirect variable reference with the
${!...} substitution which serves that exact purpose in bash.
---
 eclass/flag-o-matic.eclass | 11 +--
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index 5b8a054079d2..10e637d51d52 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -117,7 +117,7 @@ _filter-var() {
done
new+=( "${f}" )
done
-   eval export ${var}=\""${new[*]}"\"
+   export ${var}="${new[*]}"
 }
 
 # @FUNCTION: filter-flags
@@ -271,7 +271,7 @@ replace-flags() {
[[ ${f} == ${1} ]] && f=${2}
new+=( "${f}" )
done
-   eval export ${var}=\""${new[*]}"\"
+   export ${var}="${new[*]}"
done
 
return 0
@@ -296,9 +296,8 @@ replace-cpu-flags() {
 }
 
 _is_flagq() {
-   local x var
-   eval var=\""\${$1[*]}"\"
-   for x in ${var} ; do
+   local x var="$1[*]"
+   for x in ${!var} ; do
[[ ${x} == $2 ]] && return 0
done
return 1
@@ -412,7 +411,7 @@ strip-flags() {
if [[ ${!var} != "${new[*]}" ]] ; then
einfo "strip-flags: ${var}: changed '${!var}' to 
'${new[*]}'"
fi
-   eval export ${var}=\""${new[*]}"\"
+   export ${var}="${new[*]}"
done
 
set +f  # re-enable pathname expansion
-- 
2.11.1




[gentoo-dev] [PATCH] cvs.eclass: Replace unnecessary eval with bash arrays

2017-02-22 Thread Michał Górny
Replace the eval used to pass quoted password in with simpler and safer
bash arrays. Using eval is strongly discouraged as it is error-prone
and confusing.
---
 eclass/cvs.eclass | 28 ++--
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/eclass/cvs.eclass b/eclass/cvs.eclass
index 58efcf1aa2b6..c6e5c66cd866 100644
--- a/eclass/cvs.eclass
+++ b/eclass/cvs.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -353,22 +353,22 @@ cvs_fetch() {
fi
 
# Commands to run
-   cmdlogin="${run} ${ECVS_CVS_COMMAND} -d \"${cvsroot_pass}\" login"
-   cmdupdate="${run} ${ECVS_CVS_COMMAND} -d \"${cvsroot_nopass}\" update 
${ECVS_UP_OPTS} ${ECVS_LOCALNAME}"
-   cmdcheckout="${run} ${ECVS_CVS_COMMAND} -d \"${cvsroot_nopass}\" 
checkout ${ECVS_CO_OPTS} ${ECVS_MODULE}"
+   cmdlogin=( ${run} ${ECVS_CVS_COMMAND} -d "${cvsroot_pass}" login )
+   cmdupdate=( ${run} ${ECVS_CVS_COMMAND} -d "${cvsroot_nopass}" update 
${ECVS_UP_OPTS} ${ECVS_LOCALNAME} )
+   cmdcheckout=( ${run} ${ECVS_CVS_COMMAND} -d "${cvsroot_nopass}" 
checkout ${ECVS_CO_OPTS} ${ECVS_MODULE} )
 
# Execute commands
 
cd "${ECVS_TOP_DIR}"
if [[ ${ECVS_AUTH} == "pserver" ]] ; then
-   einfo "Running ${cmdlogin}"
-   eval ${cmdlogin} || die "cvs login command failed"
+   einfo "Running ${cmdlogin[*]}"
+   "${cmdlogin[@]}" || die "cvs login command failed"
if [[ ${mode} == "update" ]] ; then
-   einfo "Running ${cmdupdate}"
-   eval ${cmdupdate} || die "cvs update command failed"
+   einfo "Running ${cmdupdate[*]}"
+   "${cmdupdate[@]}" || die "cvs update command failed"
elif [[ ${mode} == "checkout" ]] ; then
-   einfo "Running ${cmdcheckout}"
-   eval ${cmdcheckout} || die "cvs checkout command failed"
+   einfo "Running ${cmdcheckout[*]}"
+   "${cmdcheckout[@]}" || die "cvs checkout command failed"
fi
elif [[ ${ECVS_AUTH} == "ext" || ${ECVS_AUTH} == "no" ]] ; then
# Hack to support SSH password authentication
@@ -462,11 +462,11 @@ EOF
fi
 
if [[ ${mode} == "update" ]] ; then
-   einfo "Running ${cmdupdate}"
-   eval ${cmdupdate} || die "cvs update command failed"
+   einfo "Running ${cmdupdate[*]}"
+   "${cmdupdate[@]}" || die "cvs update command failed"
elif [[ ${mode} == "checkout" ]] ; then
-   einfo "Running ${cmdcheckout}"
-   eval ${cmdcheckout} || die "cvs checkout command failed"
+   einfo "Running ${cmdcheckout[*]}"
+   "${cmdcheckout[@]}" || die "cvs checkout command failed"
fi
 
# Restore environment variable values
-- 
2.11.1




[gentoo-dev] Last rites: chromium.eclass

2017-02-22 Thread Mike Gilbert
chromium.eclass has been replaced with chromium-2.eclass. It will be
removed in 30 days.



[gentoo-dev] fedorahosted.org is shutting down on February 28th, 2017

2017-02-22 Thread Gokturk Yuksek
Hi,

Arfrever pointed out that fedorahosted.org is scheduled for retirement
on February 28th, 2017. The original blog post can be found here [0].
Dilfridge was kind enough to provide plots of ebuilds using
fedorahosted.org [1].

At the end of this email, I've appended a list of packages per
maintainer that have fedorahosted.org in their SRC_URI. Some packages
may appear more than once due to multiple maintainers. Some ebuilds have
fedorahosted.org links in comments etc. and are not included in this list.

Please migrate your packages or last-rite them accordingly.

Thanks,

[0] https://communityblog.fedoraproject.org/fedorahosted-sunset-2017-02-28/
[1] http://www.akhuettel.de/~huettel/plots/fedorahosted.php

---

base-sys...@gentoo.org
net-nds/gss-proxy
sys-apps/mlocate
sys-apps/microcode-ctl
sys-process/numad
birc...@gentoo.org
dev-util/dropwatch
car...@gentoo.org
sys-process/numad
c...@gentoo.org
app-i18n/im-chooser
clabbe.montj...@gmail.com
app-forensics/openscap
clus...@gentoo.org
sys-cluster/libccs
sys-cluster/sanlock
sys-cluster/cman
sys-cluster/libfence
sys-cluster/liblogthread
sys-fs/gfs2-utils
sys-cluster/libqb
sys-cluster/rgmanager
sys-cluster/rgmanager-agents
sys-cluster/libdlm
sys-cluster/fence-agents
sys-cluster/libcman
sys-cluster/libccs-perl
cron-b...@gentoo.org
sys-process/cronie
cry...@gentoo.org
app-crypt/hmaccalc
d...@gentoo.org
sys-apps/tuned
e...@gentoo.org
dev-libs/libverto
fo...@gentoo.org
media-fonts/lohit-bengali
media-fonts/liberation-fonts
media-fonts/lohit-fonts
media-fonts/lohit-tamil-classical
media-fonts/lohit-marathi
media-fonts/lohit-telugu
media-fonts/lohit-odia
media-fonts/lohit-nepali
media-fonts/lohit-gujarati
media-fonts/lohit-assamese
media-fonts/lohit-gurmukhi
media-fonts/lohit-malayalam
media-fonts/lohit-tamil
media-fonts/lohit-kannada
media-fonts/lohit-devanagari
freedesktop-b...@gentoo.org
sys-auth/polkit-pkla-compat
gn...@gentoo.org
dev-python/python-slip
sys-libs/libosinfo
dev-libs/btparser
dev-util/dogtail
app-admin/abrt
dev-libs/libpwquality
dev-libs/libreport
gokt...@gentoo.org
dev-libs/libaio
hwoar...@gentoo.org
sys-auth/sssd
maksbo...@gentoo.org
dev-libs/ding-libs
msch...@gentoo.org
sys-cluster/sanlock
na...@gentoo.org
dev-libs/newt
dev-util/cmake-fedora
net-m...@gentoo.org
net-mail/imapsync
net...@gentoo.org
net-analyzer/iptraf-ng
nim...@gentoo.org
app-admin/logrotate
polynomia...@gentoo.org
sys-process/cronie
prometheanf...@gentoo.org
dev-python/python-augeas
proxy-ma...@gentoo.org
app-forensics/openscap
pyt...@gentoo.org
dev-python/python-ethtool
sp...@gentoo.org
app-misc/enum
toolch...@gentoo.org
dev-libs/elfutils
virtualizat...@gentoo.org
net-firewall/firewalld



signature.asc
Description: OpenPGP digital signature


[gentoo-dev] Last rites: gnat.eclass

2017-02-22 Thread Michał Górny
# @DEAD
# Removal on 2017-03-24.

With last dev-ada/* packages last rited, gnat.eclass is also on its way
to being removed. Its removal will take place in 30 days, i.e. along
with the relevant packages.

-- 
Best regards,
Michał Górny


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


Re: [gentoo-dev] Printer drivers and net-print

2017-02-22 Thread Kent Fredric
On Wed, 22 Feb 2017 03:08:38 +
"M. J. Everitt"  wrote:

> find me another category without X-Y pattern?

cat /usr/portage/profiles/categories | grep -v '[-]'
virtual



pgpyWRFPdbHbr.pgp
Description: OpenPGP digital signature


[gentoo-dev] Last rites: x11-misc/xrmap

2017-02-22 Thread Michael Palimaka
# Michael Palimaka  (22 Feb 2017)
# Fails to build. Dead upstream.
# Masked for removal in 30 days. Bug #520890.
x11-misc/xrmap



[gentoo-dev] Packages up for grabs post disbanding Ada: dev-lang/gnat-gcc and metastuff

2017-02-22 Thread Michał Górny
Hi,

The Ada project has been disbanded as having no members. Although there
were a few people interested in helping out with Ada, nobody made it
past the initial reply. If anyone is still interested, the packages are
up for grabs.

This involves the following packages:

app-eselect/eselect-gnat
dev-ada/asis-gcc [lastrited]
dev-ada/charles [lastrited]
dev-lang/gnat-gcc
virtual/ada
virtual/gnat

-- 
Best regards,
Michał Górny


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


[gentoo-dev] Last rites: dev-ada/*

2017-02-22 Thread Michał Górny
# Michał Górny  (22 Feb 2017)
# The Ada subsystem in Gentoo is not maintained for a long time.
# Therefore, it is being reduced to the minimal set of packages needed.
# Removal in 30 days. Bug #593398.
dev-ada/asis-gcc
dev-ada/charles

-- 
Best regards,
Michał Górny


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


[gentoo-dev] Last rites: x11-misc/bbappconf

2017-02-22 Thread Michael Palimaka
# Michael Palimaka  (19 Feb 2017)
# Doesn't work. Dead upstream. Unmaintained.
# Masked for removal on 30 days. Bug #609754.
x11-misc/bbappconf