Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 921215 - media-gfx/iscan-3.65.0-r1 - /.../binary.hpp: error: bits was not declared in this scope
Summary: media-gfx/iscan-3.65.0-r1 - /.../binary.hpp: error: bits was not declared in ...
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: Marcin Deranek
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-01-02 17:38 UTC by Toralf Förster
Modified: 2024-01-20 13:33 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,18.41 KB, text/plain)
2024-01-02 17:38 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,208.65 KB, text/plain)
2024-01-02 17:38 UTC, Toralf Förster
Details
environment (environment,110.18 KB, text/plain)
2024-01-02 17:38 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.13 KB, application/x-xz)
2024-01-02 17:38 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,15.05 KB, application/x-xz)
2024-01-02 17:38 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,14.46 KB, application/x-xz)
2024-01-02 17:38 UTC, Toralf Förster
Details
media-gfx:iscan-3.65.0-r1:20240102-143037.log (media-gfx:iscan-3.65.0-r1:20240102-143037.log,176.77 KB, text/plain)
2024-01-02 17:38 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,56.86 KB, application/x-xz)
2024-01-02 17:38 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,39.09 KB, application/x-xz)
2024-01-02 17:38 UTC, Toralf Förster
Details
boost-1,84.0-r1-scoped-enum.patch (boost-1,84.0-r1-scoped-enum.patch,583 bytes, patch)
2024-01-08 01:15 UTC, Ross Hayward
Details | Diff
boost 1.84 patch (boost-1.84.patch,14.02 KB, patch)
2024-01-08 21:41 UTC, Marcin Deranek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-01-02 17:38:44 UTC
  220 |     template <typename T, BOOST_SCOPED_ENUM(boost::endian::order) endian, int bits>
      |                           ^~~~~~~~~~~~~~~~~
/usr/include/boost/spirit/home/karma/binary/binary.hpp:220:67: error: expected '>' before 'endian'
  220 | mplate <typename T, BOOST_SCOPED_ENUM(boost::endian::order) endian, int bits>
      |                                                             ^~~~~~

/usr/include/boost/spirit/home/karma/binary/binary.hpp:222:61: error: 'bits' was not declared in this scope
  222 |       : primitive_generator<any_binary_generator<T, endian, bits> >
      |                                                             ^~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-20231231-055504

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.7
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.74.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.21.5 linux/amd64

  HEAD of ::gentoo
commit 4a366c975c07a13c1ad77737709c8f88caeda0fb
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Jan 2 14:01:59 2024 +0000

    2024-01-02 14:01:58 UTC

emerge -qpvO media-gfx/iscan
[ebuild  N    ] media-gfx/iscan-3.65.0-r1  USE="gui -graphicsmagick -test"
Comment 1 Toralf Förster gentoo-dev 2024-01-02 17:38:45 UTC
Created attachment 881289 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-01-02 17:38:46 UTC
Created attachment 881290 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-01-02 17:38:48 UTC
Created attachment 881291 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-01-02 17:38:49 UTC
Created attachment 881292 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-01-02 17:38:49 UTC
Created attachment 881293 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-01-02 17:38:50 UTC
Created attachment 881294 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-01-02 17:38:52 UTC
Created attachment 881295 [details]
media-gfx:iscan-3.65.0-r1:20240102-143037.log
Comment 8 Toralf Förster gentoo-dev 2024-01-02 17:38:53 UTC
Created attachment 881296 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-01-02 17:38:54 UTC
Created attachment 881297 [details]
temp.tar.xz
Comment 10 Ross Hayward 2024-01-08 01:15:07 UTC
Created attachment 881660 [details, diff]
boost-1,84.0-r1-scoped-enum.patch

iscan compiled with the attached patch to boost, but I'm not to sure if this is the problem or whether iscan is failing to use the boost library correctly.
Comment 11 Marcin Deranek 2024-01-08 20:59:47 UTC
Most examples I saw use

#include <boost/spirit/include/karma.hpp>

which likely loads all boost karma header files. iscan selectively picks up header files which seems to be causing issues.
Comment 12 Marcin Deranek 2024-01-08 21:41:08 UTC
Created attachment 881687 [details, diff]
boost 1.84 patch

Patch forces iscan to use non-deprecated header files.
Comment 13 Marcin Deranek 2024-01-08 21:42:07 UTC
Will try to make MR in the coming days to update included header files in iscan.
Comment 14 Marcin Deranek 2024-01-09 22:49:41 UTC
FYI: Tests might fail due to BUG921682
Comment 15 Larry the Git Cow gentoo-dev 2024-01-20 13:33:45 UTC
The bug has been closed via the following commit(s):

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

commit 18d79e21e9d9019976c8ece9eefe45013c3cf2ae
Author:     Marcin Deranek <marcin.deranek@slonko.net>
AuthorDate: 2024-01-12 14:46:20 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-01-20 13:32:32 +0000

    media-gfx/iscan: Update boost header files included
    
    Signed-off-by: Marcin Deranek <marcin.deranek@slonko.net>
    Closes: https://bugs.gentoo.org/921215
    Closes: https://github.com/gentoo/gentoo/pull/34724
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/iscan-3.65.0-boost-1.84-headers.patch    | 353 +++++++++++++++++++++
 ...can-3.65.0-r1.ebuild => iscan-3.65.0-r2.ebuild} |   3 +-
 2 files changed, 355 insertions(+), 1 deletion(-)