[gentoo-dev] [PATCH] cmake.eclass: do not append -DNDEBUG to CPPFLAGS

2020-03-29 Thread Mike Gilbert
The NDEBUG macro turns the assert() function into a noop. This gives a
small performance boost, but may allow subtle programming errors to go
unnoticed.

This code was added back in 2008, when we started passing
-DCMAKE_BUILD_TYPE=None instead of Release or Debug. It probably tries
to mimic a default behavior of Release type builds.

Other common build systems do not do this by default. For example,
autoconf's AC_HEADER_ASSERT macro only sets NDEBUG if --disable-assert
is passed to configure (it defaults to enabled).

It is better to let users add this to CPPFLAGS themselves if they really
want to save those few CPU cycles.

Signed-off-by: Mike Gilbert 
---
 eclass/cmake.eclass | 9 -
 1 file changed, 9 deletions(-)

diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass
index 160f40b1cf8e..3da3b9aeb555 100644
--- a/eclass/cmake.eclass
+++ b/eclass/cmake.eclass
@@ -371,15 +371,6 @@ cmake_src_configure() {
# Fix xdg collision with sandbox
xdg_environment_reset
 
-   # @SEE CMAKE_BUILD_TYPE
-   if [[ ${CMAKE_BUILD_TYPE} = Gentoo ]]; then
-   # Handle release builds
-   if ! in_iuse debug || ! use debug; then
-   local CPPFLAGS=${CPPFLAGS}
-   append-cppflags -DNDEBUG
-   fi
-   fi
-
# Prepare Gentoo override rules (set valid compiler, append CPPFLAGS 
etc.)
local build_rules=${BUILD_DIR}/gentoo_rules.cmake
 
-- 
2.26.0.rc2




[gentoo-dev] Automated Package Removal and Addition Tracker, for the week ending 2020-03-29 23:59 UTC

2020-03-29 Thread Robin H. Johnson
The attached list notes all of the packages that were added or removed
from the tree, for the week ending 2020-03-29 23:59 UTC.

Removals:
app-admin/equo 20200327-07:48 zlogene488a2d98add
app-admin/matter   20200327-07:48 zlogene488a2d98add
app-cdr/gtkcdlabel 20200326-23:32 asturm 6d5e362a428
app-misc/fslint20200326-23:31 asturm bf5de04bb38
app-misc/sleepyhead20200323-18:04 rich0  7a3342ca47b
app-text/keepnote  20200326-23:30 asturm 781fb0545f5
dev-libs/beignet   20200325-13:31 marecki710a434a1aa
dev-python/cliff-tablib20200327-15:07 prometheanfire dee3deb77fd
dev-python/pysnmp-apps 20200325-07:20 jer324867faf2b
games-misc/fortune-mod-humorixfortunes 20200325-10:09 ulmbcd6fbc8d7f
games-strategy/boswars 20200329-07:54 zlogene809f866cbd2
sci-electronics/gresistor  20200326-23:27 asturm 0eebbcdbdd7
sci-misc/pythoncad 20200326-23:28 asturm 2fa705d977c
sys-apps/entropy   20200327-07:48 zlogene488a2d98add
sys-apps/entropy-server20200327-07:48 zlogene488a2d98add
sys-boot/shlilo-lantank20200326-16:04 zlogenea7cb1201de9
x11-misc/revelation20200326-23:29 asturm 86c212c3a1e
x11-misc/tintwizard20200328-12:16 asturm ddfbf0a0638

Additions:
acct-user/usbmux   20200322-21:38 chewi  5477449854d
app-backup/borgmatic   20200325-16:26 marecki5c190b0b3b7
dev-libs/ncnn  20200329-21:04 slashbeast be41de14dbc
dev-libs/rinutils  20200326-12:13 asturm edf07223a39
games-arcade/jazz2 20200324-21:56 chewi  891296590fc
games-arcade/jazz2-data20200326-22:42 chewi  2ae2a55eb4e
media-gfx/cropgui  20200323-06:39 hanno  b3360574b33
media-gfx/waifu2x-ncnn-vulkan  20200329-21:06 slashbeast 7d4385d4046
net-analyzer/ospd-openvas  20200321-15:15 juippis34e2e746d9d
net-analyzer/snmpclitools  20200325-07:00 jerb83fdaf1d8f
net-im/zoom20200324-09:57 ulm19317653fb3
net-mail/b420200325-02:04 zx2c4  8374a4402f4
net-wireless/gr-ntsc   20200326-20:07 zerochaos  260904dab33
net-wireless/gr-ntsc-rc20200326-19:58 zerochaos  0b92b9fdf82
net-wireless/gr-ppm-wiegand20200326-20:19 zerochaos  89a32dda93d
sci-libs/cartopy   20200329-17:39 tomjbe 91081c55a11
x11-plugins/lurch  20200327-23:17 sping  468bcbdbc7c

--
Robin Hugh Johnson
Gentoo Linux Developer
E-Mail : robb...@gentoo.org
GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85
Removed Packages:
games-strategy/boswars,removed,zlogene,20200329-07:54,809f866cbd2
x11-misc/tintwizard,removed,asturm,20200328-12:16,ddfbf0a0638
dev-python/cliff-tablib,removed,prometheanfire,20200327-15:07,dee3deb77fd
app-admin/equo,removed,zlogene,20200327-07:48,488a2d98add
app-admin/matter,removed,zlogene,20200327-07:48,488a2d98add
sys-apps/entropy-server,removed,zlogene,20200327-07:48,488a2d98add
sys-apps/entropy,removed,zlogene,20200327-07:48,488a2d98add
app-cdr/gtkcdlabel,removed,asturm,20200326-23:32,6d5e362a428
app-misc/fslint,removed,asturm,20200326-23:31,bf5de04bb38
app-text/keepnote,removed,asturm,20200326-23:30,781fb0545f5
x11-misc/revelation,removed,asturm,20200326-23:29,86c212c3a1e
sci-misc/pythoncad,removed,asturm,20200326-23:28,2fa705d977c
sci-electronics/gresistor,removed,asturm,20200326-23:27,0eebbcdbdd7
sys-boot/shlilo-lantank,removed,zlogene,20200326-16:04,a7cb1201de9
dev-libs/beignet,removed,marecki,20200325-13:31,710a434a1aa
games-misc/fortune-mod-humorixfortunes,removed,ulm,20200325-10:09,bcd6fbc8d7f
dev-python/pysnmp-apps,removed,jer,20200325-07:20,324867faf2b
app-misc/sleepyhead,removed,rich0,20200323-18:04,7a3342ca47b
Added Packages:
media-gfx/waifu2x-ncnn-vulkan,added,slashbeast,20200329-21:06,7d4385d4046
dev-libs/ncnn,added,slashbeast,20200329-21:04,be41de14dbc
sci-libs/cartopy,added,tomjbe,20200329-17:39,91081c55a11
x11-plugins/lurch,added,sping,20200327-23:17,468bcbdbc7c
games-arcade/jazz2-data,added,chewi,20200326-22:42,2ae2a55eb4e
games-arcade/jazz2,added,chewi,20200324-21:56,891296590fc
net-wireless/gr-ppm-wiegand,added,zerochaos,20200326-20:19,89a32dda93d
net-wireless/gr-ntsc,added,zerochaos,20200326-20:07,260904dab33
net-wireless/gr-ntsc-rc,added,zerochaos,20200326-19:58,0b92b9fdf82
dev-libs/rinutils,added,asturm,20200326-12:13,edf07223a39
app-backup/borgmatic,added,marecki,20200325-16:26,5c190b0b3b7

[gentoo-dev] Last rites: media-fonts/symbola

2020-03-29 Thread Chí-Thanh Christopher Nguyễn

# Chí-Thanh Christopher Nguyễn  (2020-03-29)
# Old releases gone from upstream, new releases use overly restrictive
# license. For ancient scripts and symbols, use media-fonts/quivira instead.
# For emojis and pictographs, use media-fonts/noto-emoji instead.
# Masked for removal in 30 days, bug #715226
media-fonts/symbola



[gentoo-portage-dev] [PATCH] NeededEntry: infer implicit soname from file basename (bug 715162)

2020-03-29 Thread Zac Medico
For dynamic libraries, infer an implicit DT_SONAME setting from the
file basename, which is consistent with dynamic linking behavior in
practice. This makes it possible to resolve soname dependencies for
musl's libc.so which lacks a DT_SONAME setting.

Bug: https://bugs.gentoo.org/715162
Signed-off-by: Zac Medico 
---
 lib/portage/package/ebuild/doebuild.py  | 3 +++
 lib/portage/util/_dyn_libs/LinkageMapELF.py | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/lib/portage/package/ebuild/doebuild.py 
b/lib/portage/package/ebuild/doebuild.py
index 2bff94cb1..dd4a34a74 100644
--- a/lib/portage/package/ebuild/doebuild.py
+++ b/lib/portage/package/ebuild/doebuild.py
@@ -35,6 +35,7 @@ portage.proxy.lazyimport.lazyimport(globals(),
'portage.package.ebuild._ipc.QueryCommand:QueryCommand',
'portage.dep._slot_operator:evaluate_slot_operator_equal_deps',
'portage.package.ebuild._spawn_nofetch:spawn_nofetch',
+   'portage.util.elf.constants:ET_DYN',
'portage.util.elf.header:ELFHeader',
'portage.dep.soname.multilib_category:compute_multilib_category',
'portage.util._desktop_entry:validate_desktop_entry',
@@ -2399,6 +2400,8 @@ def _post_src_install_soname_symlinks(mysettings, out):
 
# Compute the multilib category and write it back to the file.
entry.multilib_category = compute_multilib_category(elf_header)
+   if not entry.soname and elf_header.e_type == ET_DYN:
+   entry.soname = os.path.basename(entry.filename)
needed_file.write(_unicode(entry))
 
if entry.multilib_category is None:
diff --git a/lib/portage/util/_dyn_libs/LinkageMapELF.py 
b/lib/portage/util/_dyn_libs/LinkageMapELF.py
index 70bec116a..fa17d8f4d 100644
--- a/lib/portage/util/_dyn_libs/LinkageMapELF.py
+++ b/lib/portage/util/_dyn_libs/LinkageMapELF.py
@@ -25,6 +25,7 @@ from portage.util import normalize_path
 from portage.util import varexpand
 from portage.util import writemsg_level
 from portage.util._dyn_libs.NeededEntry import NeededEntry
+from portage.util.elf.constants import ET_DYN
 from portage.util.elf.header import ELFHeader
 
 if sys.hexversion >= 0x300:
@@ -313,6 +314,8 @@ class LinkageMapELF(object):
continue
entry.multilib_category = 
compute_multilib_category(elf_header)
entry.filename = 
entry.filename[root_len:]
+   if not entry.soname and 
elf_header.e_type == ET_DYN:
+   entry.soname = 
os.path.basename(entry.filename)
owner = plibs.pop(entry.filename, None)
lines.append((owner, "scanelf", 
_unicode(entry)))
proc.wait()
-- 
2.24.1




[gentoo-dev] Last rites: dev-ruby/rails:4.2 and related packages, including net-analyzer/metasploit

2020-03-29 Thread Hans de Graaff
# Hans de Graaff  (2020-03-29)
# Old ruby24-only rails version that is no longer supported upstream
# and has known security issues, including dependencies and slots
# specific to Rails 4.2.
# Migrate to Rails 5.2.
# Masked for removal in 30 days.
dev-ruby/rails:4.2
dev-ruby/railties:4.2
dev-ruby/activerecord:4.2
dev-ruby/actionmailer:4.2
dev-ruby/actionpack:4.2
dev-ruby/actionview:4.2
dev-ruby/activejob:4.2
dev-ruby/activemodel:4.2
dev-ruby/activesupport:4.2
dev-ruby/arel:6.0
dev-ruby/actionpack-xml_parser:0
dev-ruby/jquery-rails:3
dev-ruby/postgres_ext
dev-ruby/protected_attributes
dev-ruby/rails-dom-testing:1
dev-ruby/web-console:0
# Metasploit is a reverse dependency on Rails 4.2 Upstream shows no
# sign of moving to a supported Rails version. Metasploit will most
# likely be moved to an overlay.
dev-ruby/metasploit-concern
dev-ruby/metasploit-credential
dev-ruby/metasploit-model
dev-ruby/metasploit_data_models
net-analyzer/metasploit
dev-ruby/rex-arch
dev-ruby/rex-bin_tools
dev-ruby/rex-core
dev-ruby/rex-encoder
dev-ruby/rex-exploitation
dev-ruby/rex-java
dev-ruby/rex-mime
dev-ruby/rex-nop
dev-ruby/rex-ole
dev-ruby/rex-powershell
dev-ruby/rex-random_identifier
dev-ruby/rex-registry
dev-ruby/rex-rop_builder
dev-ruby/rex-socket
dev-ruby/rex-sslscan
dev-ruby/rex-struct2
dev-ruby/rex-text
dev-ruby/rex-zip


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


Re: [gentoo-dev] rfc: backward-incompatible changes in eclasses

2020-03-29 Thread Kent Fredric
On Mon, 23 Mar 2020 20:27:51 +0200
Joonas Niilola  wrote:

> AFAIK all major changes have been posted here and pushed with some delay.

In my experience, "Some delay" is usually short, as developers making
the change are eager to push it through.

But the people maintaining the overlays are much more likely to have a
bigger expectation of what that "delay" should be, because many of them
don't have the time to read -dev every day, and they have other things
to do than rework their overlay with regards to patches on ::gentoo.

So what's more likely to happen is the breakage isn't noticed till
users are affected and complaining, and that's not ideal.

( Though at the end of the day, this problem ends up being a "not
enough devs to man the pumps", I have stuff I've let rot because I've
got too many things to do, and nobody really is taking up the slack )


pgpesSaDiTHDG.pgp
Description: OpenPGP digital signature


Re: [gentoo-dev] reduce load of tinderox' bug reprots to bugs.gentoo.org

2020-03-29 Thread Kent Fredric
On Sun, 22 Mar 2020 15:11:23 +0100
"Haelwenn (lanodan) Monnier"  wrote:

> I think it might be better to fix bugzilla to be able to send multiple 
> attachments at once. AWS S3 might be okay for the long term but I've often 
> seen paste services being used and most of them expire in a week/month, so 
> you can easily loose the content before it can be read or fixed and 
> absolutely no hope to have it be readable if it's an old bug that might have 
> appeared again.

Part of my objections to using Bugzilla for this is due to the
attachments frequently being unuseful.

Not that *all* of them are useless, but due to the pattern of
automation, no sentience evaluates if a given log is useful or not, so
there are usually many more to wade through that don't help.

Add to this the whole "bugzilla limits attachment sizes", and the
workaround being "upload compressed versions which are harder to read",
this creates a lot of attachments that can't even be read directly in
your browser (even though they're just text, the size demands
decompression first).

And due to the sizes involved, I worry about the burden it places on
the database to perform this at scale.

IMO, Databases are just not the tool to use for binary data storage. (
Though I suspect perhaps bugzilla has an out-of-database binary file
storage thing? idk ).

It feels like that mistake people make when they commit large binary
assets into git, where they really want something out-of-band more
optimized for it.

And like git, once its submitted, there's no "delete" as far as I know,
... which, given the ratio of useful data vs the size, seems silly.

So the net result is a lot of downsides due to silly limitations in the
choice of platform.

I don't want to discourage automated testing, but I do want to champion
a better platform to store this data (and more importantly, aggregate
this data).

Just so its clear, my dream is a system like CPAN Testers, where
anybody can submit results regardless of who they are, with no quality
requirements on the data submissions, ... without necessitating that
each and every failure be communicated to a bug report.

That way, the 3rd party platform collects information that indicates
where a bug *could* be, and once an actual bug is found in this
information set, the bug is opened, citing the relevant details.



pgpIDnhVOyqAA.pgp
Description: OpenPGP digital signature


[gentoo-dev] Last rites: app-metrics/buildbot-prometheus, dev-util/buildbot*

2020-03-29 Thread Michał Górny
# Michał Górny  (2020-03-29)
# Unmaintained, seriously outdated, vulnerable.  Multiple bugs reported.
# Stuck on Python 3.6.
# Removal in 30 days.  Bug #711702.
app-metrics/buildbot-prometheus
dev-util/buildbot
dev-util/buildbot-console-view
dev-util/buildbot-grid-view
dev-util/buildbot-pkg
dev-util/buildbot-waterfall-view
dev-util/buildbot-worker
dev-util/buildbot-wsgi-dashboards
dev-util/buildbot-www

-- 
Best regards,
Michał Górny



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