Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 721962 - app-office/lyx-2.3.3 - insets/ExternalTransforms.cpp for_each undeclared.
Summary: app-office/lyx-2.3.3 - insets/ExternalTransforms.cpp for_each undeclared.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords:
: 730340 734342 (view as bug list)
Depends on: 695014
Blocks:
  Show dependency tree
 
Reported: 2020-05-10 03:07 UTC by Anton Kochkov
Modified: 2020-07-29 08:09 UTC (History)
10 users (show)

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


Attachments
full build log (lyx_2.3.3_build.log,230.55 KB, text/x-log)
2020-05-10 03:07 UTC, Anton Kochkov
Details
lyx-for_each-undeclared.patch (lyx-for_each-not-declared-in-this-scope.patch,440 bytes, patch)
2020-05-13 18:43 UTC, Attila Tóth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Kochkov 2020-05-10 03:07:13 UTC
Created attachment 637224 [details]
full build log

x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..  -I../src     -I/usr/include/hunspell  -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_CORE_LIB -I/usr/include/qt5/QtCore -I/usr/include/qt5  -fPIC -O2 -std=c++14  -std=c++14  -march=native -O2 -pipe -c -o insets/ExternalTransforms.o insets/ExternalTransforms.cpp
[01m[Kinsets/ExternalTemplate.cpp:[m[K In member function ‘[01m[Kvoid lyx::external::Template::dumpFormats(std::ostream&) const[m[K’:
[01m[Kinsets/ExternalTemplate.cpp:194:2:[m[K [01;31m[Kerror: [m[K‘[01m[Kfor_each[m[K’ was not declared in this scope
  194 |  [01;31m[Kfor_each[m[K(formats.begin(), formats.end(), DumpFormat(os));
      |  [01;31m[K^~~~~~~~[m[K
[01m[Kinsets/ExternalTemplate.cpp:[m[K In member function ‘[01m[Kvoid lyx::external::TemplateManager::dumpPreambleDefs(std::ostream&) const[m[K’:
[01m[Kinsets/ExternalTemplate.cpp:200:2:[m[K [01;31m[Kerror: [m[K‘[01m[Kfor_each[m[K’ was not declared in this scope
  200 |  [01;31m[Kfor_each[m[K(preambledefs.begin(), preambledefs.end(), DumpPreambleDef(os));
      |  [01;31m[K^~~~~~~~[m[K
[01m[Kinsets/ExternalTemplate.cpp:[m[K In member function ‘[01m[Kvoid lyx::external::TemplateManager::dumpTemplates(std::ostream&) const[m[K’:
[01m[Kinsets/ExternalTemplate.cpp:206:2:[m[K [01;31m[Kerror: [m[K‘[01m[Kfor_each[m[K’ was not declared in this scope
  206 |  [01;31m[Kfor_each[m[K(templates.begin(), templates.end(), DumpTemplate(os));
      |  [01;31m[K^~~~~~~~[m[K
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..  -I../src     -I/usr/include/hunspell  -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_CORE_LIB -I/usr/include/qt5/QtCore -I/usr/include/qt5  -fPIC -O2 -std=c++14  -std=c++14  -march=native -O2 -pipe -c -o insets/RenderButton.o insets/RenderButton.cpp
make[4]: *** [Makefile:2578: insets/ExternalTemplate.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/var/tmp/portage/app-office/lyx-2.3.3/work/lyx-2.3.3/src'
make[3]: *** [Makefile:2651: all-recursive] Error 1
make[3]: Leaving directory '/var/tmp/portage/app-office/lyx-2.3.3/work/lyx-2.3.3/src'
make[2]: *** [Makefile:1881: all] Error 2
make[2]: Leaving directory '/var/tmp/portage/app-office/lyx-2.3.3/work/lyx-2.3.3/src'
make[1]: *** [Makefile:575: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-office/lyx-2.3.3/work/lyx-2.3.3'
make: *** [Makefile:470: all] Error 2
 [31;01m*[0m ERROR: app-office/lyx-2.3.3::gentoo failed (compile phase):
 [31;01m*[0m   emake failed
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of `emerge --info '=app-office/lyx-2.3.3::gentoo'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=app-office/lyx-2.3.3::gentoo'`.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/app-office/lyx-2.3.3/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/app-office/lyx-2.3.3/temp/environment'.
 [31;01m*[0m Working directory: '/var/tmp/portage/app-office/lyx-2.3.3/work/lyx-2.3.3'
 [31;01m*[0m S: '/var/tmp/portage/app-office/lyx-2.3.3/work/lyx-2.3.3'

emerge --info output:

Portage 2.3.99 (python 3.7.7-final-0, default/linux/amd64/17.0/desktop, gcc-9.3.0, glibc-2.31-r2, 5.4.6-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-5.4.6-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i7-7700HQ_CPU_@_2.80GHz-with-gentoo-2.7
KiB Mem:    16188892 total,  10387144 free
KiB Swap:          0 total,         0 free
Head commit of repository gentoo: e0f8418663dff3c4e51899b8ccb172363478591a

Head commit of repository ml-overlay: c75c6094f62037b8dac5ea4241fee18d9d3e4e83

sh bash 5.0_p17
ld GNU ld (Gentoo 2.34 p1) 2.34.0
app-shells/bash:          5.0_p17::gentoo
dev-lang/perl:            5.30.2::gentoo
dev-lang/python:          2.7.18::gentoo, 3.7.7-r2::gentoo, 3.8.2-r2::gentoo
dev-util/cmake:           3.17.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.14.1-r2::gentoo, 1.16.2::gentoo
sys-devel/binutils:       2.34::gentoo
sys-devel/gcc:            9.3.0::gentoo, 10.1.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r2::gentoo
Repositories:

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

ml-overlay
    location: /usr/local/overlay/ml-overlay
    sync-type: git
    sync-uri: git://github.com/aballier/ml-overlay.git
    masters: gentoo

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
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/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
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 qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirrors.tencent.com/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en ru zh_CN ja ja_JP"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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 berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dell dri dts dvd dvdr elogind emboss encode exif flac fortran gdbm gif gpm gtk iconv icu ieee1394 ipv6 jpeg laptop lcdfilter lcms ldap libnotify libtirpc lm_sensors mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl nvidia nvme ogg opengl openmp pam pango pcre pdf png policykit ppds qt5 readline sdl seccomp spell split-usr ssl startup-notification svg tcpd threads thunderbolt tiff truetype udev udisks uefi unicode upower usb v4l vorbis wxwidgets x264 xattr xcb xinerama xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel usb-audio" 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="aes avx avx2 fma3 mmx mmxext 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 ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="en ru zh-CN ja" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="intel nouveau" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Attila Tóth 2020-05-13 18:43:49 UTC
Created attachment 638650 [details, diff]
lyx-for_each-undeclared.patch

Proposed patch
Comment 2 Andrés Becerra Sandoval 2020-05-15 16:00:36 UTC
(In reply to Attila Tóth from comment #1)
> Created attachment 638650 [details, diff] [details, diff]
> lyx-for_each-undeclared.patch
> 
> Proposed patch

I confirm the bug.
I also confirm Attila's patch solves the problem.
Comment 3 Andrés Becerra Sandoval 2020-05-15 16:01:43 UTC
Upstream ticket:

https://www.lyx.org/trac/ticket/11864

It is solved, and will ship in Lyx-2.3.5
Comment 4 Alexander Wessel 2020-06-19 20:25:30 UTC
(In reply to Andrés Becerra Sandoval from comment #3)
> It is solved, and will ship in Lyx-2.3.5

FYI, Lyx-2.3.5 was released.
Comment 5 Alexander Wessel 2020-06-19 20:45:21 UTC
(In reply to Alexander Wessel from comment #4)
> FYI, Lyx-2.3.5 was released.

Make that 2.3.5.1.
Comment 6 Ulrich Müller gentoo-dev 2020-07-13 19:52:05 UTC
*** Bug 730340 has been marked as a duplicate of this bug. ***
Comment 7 Alexander Wessel 2020-07-21 22:40:01 UTC
(In reply to Alexander Wessel from comment #4)
> FYI, Lyx-2.3.5 was released.
 
Make that 2.3.5.2.
Comment 8 Attila Tóth 2020-07-23 05:59:37 UTC
(In reply to Alexander Wessel from comment #7)
> (In reply to Alexander Wessel from comment #4)
> > FYI, Lyx-2.3.5 was released.
>  
> Make that 2.3.5.2.

2.5.3.2 works for me.
Comment 9 Ulrich Müller gentoo-dev 2020-07-29 07:58:07 UTC
*** Bug 734342 has been marked as a duplicate of this bug. ***
Comment 10 Larry the Git Cow gentoo-dev 2020-07-29 08:09:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a37759ff38b7eb98cd42eff6f99277464c32fa7e

commit a37759ff38b7eb98cd42eff6f99277464c32fa7e
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2020-07-29 08:05:25 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2020-07-29 08:08:44 +0000

    app-office/lyx: Version bump to 2.3.5.2, Python 3 support.
    
    Closes: https://bugs.gentoo.org/695014
    Closes: https://bugs.gentoo.org/721962
    Package-Manager: Portage-3.0.1, Repoman-2.3.23
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 app-office/lyx/Manifest           |   1 +
 app-office/lyx/lyx-2.3.5.2.ebuild | 174 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 175 insertions(+)