Summary: | app-backup/bareos - coverage should be disabled iin build | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Mark Wagner <mark> |
Component: | Current packages | Assignee: | Marc Schiffbauer <mschiff> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mark, treecleaner, web |
Priority: | Normal | Keywords: | PATCH, PMASKED |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Disable coverage
bareos-19.2.8.ebuild.diff |
Description
Mark Wagner
2020-10-14 18:15:55 UTC
Expected results didn't show up? Expected results: 0 Created attachment 665575 [details, diff]
Disable coverage
Comment on attachment 665575 [details, diff]
Disable coverage
Why do you want to disable this? How does bareos fail to run?
(In reply to Jeroen Roovers from comment #3) > Comment on attachment 665575 [details, diff] [details, diff] > Disable coverage > > Why do you want to disable this? How does bareos fail to run? It doesn't fail to run. It produces (IMO) useless ever-changing gcda files in /var/tmp/portage/app-backup/bareos-19.2.8/work/bareos-19.2.8_build/src/stored/CMakeFiles/stored_objects.dir. It is an annoyance. Coverage is only necessary for debugging or developers When enabling coverage requested add compiler flags: -g -O0 --coverage -fprofile-arcs -ftest-coverage The size of bareos binary is 219.0 MiB without coverage is 86.3 MiB (aprox.) and run bareos-sd -u bareos -g bareos -t -v show this: ------------ profiling:/var/tmp/portage/app-backup/bareos-19.2.8/work:Cannot create directory profiling:/var/tmp/portage/app-backup/bareos-19.2.8/work/bareos-19.2.8_build/src/stored/CMakeFiles/stored_objects.dir/authenticate.cc.gcda:Skip profiling:/var/tmp/portage/app-backup/bareos-19.2.8/work:Cannot create directory profiling:/var/tmp/portage/app-backup/bareos-19.2.8/work/bareos-19.2.8_build/src/stored/CMakeFiles/stored_objects.dir/append.cc.gcda:Skip profiling:/var/tmp/portage/app-backup/bareos-19.2.8/work:Cannot create directory profiling:/var/tmp/portage/app-backup/bareos-19.2.8/work/bareos-19.2.8_build/src/stored/CMakeFiles/stored_objects.dir/status.cc.gcda:Skip profiling:/var/tmp/portage/app-backup/bareos-19.2.8/work:Cannot create directory profiling:/var/tmp/portage/app-backup/bareos-19.2.8/work/bareos-19.2.8_build/src/stored/CMakeFiles/stored_objects.dir/sd_cmds.cc.gcda:Skip profiling:/var/tmp/portage/app-backup/bareos-19.2.8/work:Cannot create directory profiling:/var/tmp/portage/app-backup/bareos-19.2.8/work/bareos-19.2.8_build/src/stored/CMakeFiles/stored_objects.dir/read.cc.gcda:Skip profiling:/var/tmp/portage/app-backup/bareos-19.2.8/work:Cannot create directory . . . . Created attachment 667550 [details, diff]
bareos-19.2.8.ebuild.diff
* Disable coverage and debug
* Add support for acl flag
* Use python, SHARE_INSTALL_PREFIX and BUILD_SHARED_LIBS flags equal form oficial rpm spec -> ./core/platforms/packaging/bareos.spec
Same problem here, fresh install from a week ago. I have not enable coverage and I get 558 lines of warnings like this lines: [...] Jan 21 20:16:30 nuc bareos-dir[1201252]: profiling:/var/tmp/portage/app-backup/bareos-19.2.9/work/bareos-19.2.9_build/src/findlib/CMakeFiles/bareosfind.dir/find_one.cc.g cda:Cannot open Jan 21 20:16:30 nuc bareos-dir[1201252]: profiling:/var/tmp/portage/app-backup/bareos-19.2.9/work/bareos-19.2.9_build/src/findlib/CMakeFiles/bareosfind.dir/enable_priv.c c.gcda:Cannot open Jan 21 20:16:30 nuc bareos-dir[1201252]: profiling:/var/tmp/portage/app-backup/bareos-19.2.9/work/bareos-19.2.9_build/src/findlib/CMakeFiles/bareosfind.dir/drivetype.cc. gcda:Cannot open Jan 21 20:16:30 nuc bareos-dir[1201252]: profiling:/var/tmp/portage/app-backup/bareos-19.2.9/work/bareos-19.2.9_build/src/findlib/CMakeFiles/bareosfind.dir/create_file.c c.gcda:Cannot open [...] making /var/tmp/portage/app-backup writable for the bareos user it creates gcda files: [...] /var/tmp/portage/app-backup/ /var/tmp/portage/app-backup/bareos-19.2.9 /var/tmp/portage/app-backup/bareos-19.2.9/work /var/tmp/portage/app-backup/bareos-19.2.9/work/bareos-19.2.9_build /var/tmp/portage/app-backup/bareos-19.2.9/work/bareos-19.2.9_build/src /var/tmp/portage/app-backup/bareos-19.2.9/work/bareos-19.2.9_build/src/cats /var/tmp/portage/app-backup/bareos-19.2.9/work/bareos-19.2.9_build/src/cats/CMakeFiles /var/tmp/portage/app-backup/bareos-19.2.9/work/bareos-19.2.9_build/src/cats/CMakeFiles/bareoscats-sqlite3.dir /var/tmp/portage/app-backup/bareos-19.2.9/work/bareos-19.2.9_build/src/cats/CMakeFiles/bareoscats-sqlite3.dir/cats_backends.cc.gcda /var/tmp/portage/app-backup/bareos-19.2.9/work/bareos-19.2.9_build/src/cats/CMakeFiles/bareoscats-sqlite3.dir/sqlite.cc.gcda /var/tmp/portage/app-backup/bareos-19.2.9/work/bareos-19.2.9_build/src/cats/CMakeFiles/bareossql.dir /var/tmp/portage/app-backup/bareos-19.2.9/work/bareos-19.2.9_build/src/cats/CMakeFiles/bareossql.dir/sql_update.cc.gcda /var/tmp/portage/app-backup/bareos-19.2.9/work/bareos-19.2.9_build/src/cats/CMakeFiles/bareossql.dir/sql_query.cc.gcda /var/tmp/portage/app-backup/bareos-19.2.9/work/bareos-19.2.9_build/src/cats/CMakeFiles/bareossql.dir/sql_pooling.cc.gcda /var/tmp/portage/app-backup/bareos-19.2.9/work/bareos-19.2.9_build/src/cats/CMakeFiles/bareossql.dir/sql_list.cc.gcda /var/tmp/portage/app-backup/bareos-19.2.9/work/bareos-19.2.9_build/src/cats/CMakeFiles/bareossql.dir/sql_get.cc.gcda /var/tmp/portage/app-backup/bareos-19.2.9/work/bareos-19.2.9_build/src/cats/CMakeFiles/bareossql.dir/sql_find.cc.gcda /var/tmp/portage/app-backup/bareos-19.2.9/work/bareos-19.2.9_build/src/cats/CMakeFiles/bareossql.dir/sql_delete.cc.gcda [...] # emerge --info Portage 3.0.13 (python 3.8.6-final-0, default/linux/amd64/17.1/systemd, gcc-9.3.0, glibc-2.32-r5, 5.10.3-gentoo-x86_64 x86_64) ================================================================= System uname: Linux-5.10.3-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i7-8559U_CPU_@_2.70GHz-with-glibc2.2.5 KiB Mem: 32790716 total, 1717660 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Thu, 21 Jan 2021 18:45:01 +0000 Head commit of repository gentoo: b566d5a03d9d8827f29246c8d09b82af30e38f93 sh bash 5.0_p18 ld GNU ld (Gentoo 2.34 p6) 2.34.0 app-shells/bash: 5.0_p18::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.30.3::gentoo dev-lang/python: 2.7.18-r5::gentoo, 3.8.6-r1::gentoo, 3.9.0-r1::gentoo dev-util/cmake: 3.17.4-r1::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/sandbox: 2.20::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.16.2-r1::gentoo sys-devel/binutils: 2.34-r2::gentoo sys-devel/gcc: 9.3.0-r2::gentoo sys-devel/gcc-config: 2.3.2-r1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.32-r5::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync10.de.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-max-age: 24 sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminf o" CXXFLAGS="-O2 -pipe -march=native" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_H OME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe -march=native" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge- orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -march=native" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="C.UTF8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en es" MAKEOPTS="-j9" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --e xclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X acl alsa amd64 berkdb bluetooth bzip2 caps cli crypt dbus device-mapper dri drm dvd fortran gdbm iconv idn ipv6 jumbo-build libglvnd libnotify libtirpc lirc lvm m ultilib ncurses nfs nls nptl opengl openmp pam pcre pulseaudio readline realtime seccomp smp sox soxr split-usr ssl systemd tcpd udev udisks unicode upnp upower vaapi vd pau xattr xv xvmc zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm 801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_b asic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav _fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_ FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ub lox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en_US es_ES l10n_es" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TAR GETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python2_7 python3_8" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="intel i965 iris" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark i pmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAG E_RSYNC_EXTRA_OPTS The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f65fc8909308003cdfe8d933b06b5a054c7715e commit 0f65fc8909308003cdfe8d933b06b5a054c7715e Author: David Seifert <soap@gentoo.org> AuthorDate: 2021-08-05 08:21:27 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2021-08-05 08:21:27 +0000 profiles: last-rite app-backup/bareos Bug: https://bugs.gentoo.org/631598 Bug: https://bugs.gentoo.org/690024 Bug: https://bugs.gentoo.org/735960 Bug: https://bugs.gentoo.org/749038 Bug: https://bugs.gentoo.org/761415 Bug: https://bugs.gentoo.org/761667 Bug: https://bugs.gentoo.org/778557 Bug: https://bugs.gentoo.org/786789 Bug: https://bugs.gentoo.org/799179 Signed-off-by: David Seifert <soap@gentoo.org> profiles/package.mask | 8 ++++++++ 1 file changed, 8 insertions(+) (In reply to Mark Wagner from comment #2) > Created attachment 665575 [details, diff] [details, diff] > Disable coverage Thanks for reporting, I will disable this in the ebuilds. (In reply to INODE64 Sistemas from comment #6) > Created attachment 667550 [details, diff] [details, diff] > bareos-19.2.8.ebuild.diff > > * Disable coverage and debug agreed on coverage > * Add support for acl flag is already there, look at the loop before where you added it > * Use python, SHARE_INSTALL_PREFIX and BUILD_SHARED_LIBS flags equal form > oficial rpm spec -> ./core/platforms/packaging/bareos.spec what does this change in the final build? The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=366803f1650c17e6d04f9c99c0623bd43aa4c4bc commit 366803f1650c17e6d04f9c99c0623bd43aa4c4bc Author: Marc Schiffbauer <mschiff@gentoo.org> AuthorDate: 2021-08-20 13:07:18 +0000 Commit: Marc Schiffbauer <mschiff@gentoo.org> CommitDate: 2021-08-20 13:08:33 +0000 app-backup/bareos: disable coverage (fix #749038) Closes: https://bugs.gentoo.org/749038 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Marc Schiffbauer <mschiff@gentoo.org> app-backup/bareos/bareos-18.2.10.ebuild | 2 +- app-backup/bareos/bareos-19.2.9-r2.ebuild | 2 +- app-backup/bareos/bareos-20.0.2.ebuild | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) |