Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 693412 - media-sound/audacity-2.3.2: tracks/labeltrack/ui/LabelTextHandle.cpp:22:10: fatal error: /usr/include/wx-3.0/../../../images/Cursors.h: Permission denied
Summary: media-sound/audacity-2.3.2: tracks/labeltrack/ui/LabelTextHandle.cpp:22:10: f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Professional Audio Applications Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-03 16:14 UTC by Garri
Modified: 2020-09-20 04:57 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,724.32 KB, text/plain)
2019-09-03 16:14 UTC, Garri
Details
fix-cursors-include-path.patch (fix-cursors-include-path.patch,613 bytes, patch)
2019-09-12 02:44 UTC, Matt Whitlock
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Garri 2019-09-03 16:14:36 UTC
Created attachment 588898 [details]
build.log

During a compilation phase, g++ tries to include images/Cursors.h from a wrong location. In particular, the proper path (relative to tracks/labeltrack/ui/LabelTextHandle.cpp) '../../../images/Cursors.h' turns into wrong one '/usr/include/wx-3.0/../../../images/Cursors.h'.


$ emerge --info '=media-sound/audacity-2.3.2::gentoo'
Portage 2.3.74 (python 3.6.9-final-0, default/linux/amd64/17.0/desktop/gnome/systemd, gcc-9.2.0, glibc-2.29-r4, 5.2.11-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.2.11-gentoo-x86_64-Intel-R-_Core-TM-_i5_CPU_M_460_@_2.53GHz-with-gentoo-2.6
KiB Mem:     7836264 total,   1673704 free
KiB Swap:    5242876 total,   5237492 free
Timestamp of repository gentoo: Sat, 31 Aug 2019 14:08:24 +0000
Head commit of repository gentoo: 7428d55c7b0a38a32b2a48c9708cf25101761be1

Head commit of repository flatpak-overlay: 4b1f8e2f46cdb9217c8f77384ca9d23930ecfd8e

sh bash 5.0_p9
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          5.0_p9::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.0::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.9::gentoo
dev-util/cmake:           3.15.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.2.0::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.2::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000

localrepo
    location: /usr/local/portage
    masters: gentoo

flatpak-overlay
    location: /usr/local/flatpak-overlay
    sync-type: git
    sync-uri: https://github.com/fosero/flatpak-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=generic -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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/terminfo"
CXXFLAGS="-march=core2 -mtune=generic -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --backtrack=200 --complete-graph=y --keep-going=y"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
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 sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en ru"
MAKEOPTS="-j5"
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 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 apng berkdb bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups cxx dbus dhcpcd djvu dri dts dvd dvdr emboss encode evo exif fam fat ffmpeg flac fortran gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gsm gstreamer gtk iconv icu ilbc introspection ipv6 jpeg lcms libnotify libsecret libtirpc lzma mad mms mng mp3 mp4 mpeg multilib musepack nautilus ncurses networkmanager nls nptl nsplugin ntfs ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio readline rtmp samba sdl seccomp spell split-usr ssl startup-notification svg systemd tcpd tiff tracker truetype udev udisks unicode upower usb vorbis wifi wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic 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="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="i386 x86_64" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="radeon intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Garri 2019-09-03 16:18:48 UTC
Comment on attachment 588898 [details]
build.log

# emerge -pqv '=media-sound/audacity-2.3.2::gentoo'
[ebuild  N    ] media-sound/audacity-2.3.2  USE="alsa ffmpeg flac id3tag ladspa lame lv2 mad nls portmixer soundtouch vorbis vst -doc -jack -libav -midi -sbsms -twolame -vamp" CPU_FLAGS_X86="sse"
Comment 2 Matt Whitlock 2019-09-12 02:44:07 UTC
Created attachment 589718 [details, diff]
fix-cursors-include-path.patch

(In reply to Garri from comment #0)
> During a compilation phase, g++ tries to include images/Cursors.h from a
> wrong location. In particular, the proper path (relative to
> tracks/labeltrack/ui/LabelTextHandle.cpp) '../../../images/Cursors.h' turns
> into wrong one '/usr/include/wx-3.0/../../../images/Cursors.h'.

I don't know why you're seeing "/usr/include/wx-3.0" as the base directory of LabelTextHandle.cpp or why you're getting a "Permission denied" error.

I get this:

tracks/labeltrack/ui/LabelTextHandle.cpp:22:10: fatal error: ../../../images/Cursors.h: No such file or directory
   22 | #include "../../../images/Cursors.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~

And indeed, "../../../images/Cursors.h" does not exist relative to "src/tracks/labeltrack/ui/LabelTextHandle.cpp". (There needs to be one more "../".) How upstream manages to build this as shipped boggles the mind.

The attached patch fixes this.
Comment 3 CaptainBlood 2019-09-15 21:27:48 UTC
happens here if applying patch https://bugs.gentoo.org/show_bug.cgi?id=694122
Comment 4 Garri 2019-09-16 02:56:58 UTC
(In reply to Matt Whitlock from comment #2)
> Created attachment 589718 [details, diff] [details, diff]
> fix-cursors-include-path.patch

It fixed the problem for me. Thanks.


> (In reply to Garri from comment #0)
> I don't know why you're seeing "/usr/include/wx-3.0" as the base directory
> of LabelTextHandle.cpp or why you're getting a "Permission denied" error.

I was also baffled by that behavour.
Comment 5 Miroslav Šulc gentoo-dev 2020-09-19 11:38:11 UTC
please test with 2.4.2-r1 and report back
Comment 6 Matt Whitlock 2020-09-19 19:39:27 UTC
[ebuild   R   ] media-sound/audacity-2.4.2-r1  USE="alsa ffmpeg flac id3tag mad ogg vorbis -doc -jack -ladspa -lv2 -oss -portmidi -portmixer -portsmf -sbsms -twolame -vamp -vst" 

>>> Source compiled.
Comment 7 Miroslav Šulc gentoo-dev 2020-09-20 04:57:31 UTC
thanks! closing...