Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923124 - app-misc/recoll-1.36.2 - internfile/mh_xslt.cpp: error: invalid conversion from const xmlError {aka const _xmlError } to xmlError {aka _xmlError } [-f
Summary: app-misc/recoll-1.36.2 - internfile/mh_xslt.cpp: error: invalid conversion fr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: P Purkayastha
URL: https://github.com/gentoo/gentoo/pull...
Whiteboard:
Keywords: PATCH, PullRequest
Depends on: 930369
Blocks: libxml2-2.12
  Show dependency tree
 
Reported: 2024-01-28 14:59 UTC by Toralf Förster
Modified: 2024-04-21 12:39 UTC (History)
7 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,21.83 KB, text/plain)
2024-01-28 14:59 UTC, Toralf Förster
Details
app-misc:recoll-1.36.2:20240128-145714.log (app-misc:recoll-1.36.2:20240128-145714.log,62.26 KB, text/plain)
2024-01-28 14:59 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,72.67 KB, application/x-xz)
2024-01-28 14:59 UTC, Toralf Förster
Details
environment (environment,129.90 KB, text/plain)
2024-01-28 14:59 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,968 bytes, application/x-xz)
2024-01-28 14:59 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,34.52 KB, application/x-xz)
2024-01-28 14:59 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,10.52 KB, application/x-xz)
2024-01-28 14:59 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,77.54 KB, application/x-xz)
2024-01-28 14:59 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,33.67 KB, application/x-xz)
2024-01-28 14:59 UTC, Toralf Förster
Details
Patch based on suggestion in comment #10 (0001-xslt-use-xmlCtxtUseOptions-instead-of-setting-deprec.patch,2.17 KB, patch)
2024-02-24 16:44 UTC, pass word
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-28 14:59:18 UTC
too long lines were shrinked:

/bin/sh ./libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common  -Wall -Wno-unused -std=c++14 -I. -I./aspell -I./bincimapmime -I./common -I./index -I./internfile -I./rcldb -I./unac -I./utils -I./xaposix -DBUILDING_RECOLL   -I/usr/include/libxml2  -DRECOLL_DATADIR
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -Wall -Wno-unused -std=c++14 -I. -I./aspell -I./bincimapmime -I./common -I./index -I./internfile -I./rcldb -I./unac -I./utils -I./xaposix -DBUILDING_RECOLL -I/usr/include/libxml2 -DRECOLL_DATADIR=\"/usr/share/recoll\" -DREADFI
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -Wall -Wno-unused -std=c++14 -I. -I./aspell -I./bincimapmime -I./common -I./index -I./internfile -I./rcldb -I./unac -I./utils -I./xaposix -DBUILDING_RECOLL -I/usr/include/libxml2 -DRECOLL_DATADIR=\"/usr/share/recoll\" -DREADFI
/bin/sh ./libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common  -Wall -Wno-unused -std=c++14 -I. -I./aspell -I./bincimapmime -I./common -I./index -I./internfile -I./rcldb -I./unac -I./utils -I./xaposix -DBUILDING_RECOLL   -I/usr/include/libxml2  -DRECOLL_DATADIR
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./common -Wall -Wno-unused -std=c++14 -I. -I./aspell -I./bincimapmime -I./common -I./index -I./internfile -I./rcldb -I./unac -I./utils -I./xaposix -DBUILDING_RECOLL -I/usr/include/libxml2 -DRECOLL_DATADIR=\"/usr/share/recoll\" -DREADFI
internfile/mh_xslt.cpp: In member function xmlDoc* FileScanXML::getDoc():
internfile/mh_xslt.cpp:69:46: error: invalid conversion from const xmlError* {aka const _xmlError*} to xmlError* {aka _xmlError*} [-fpermissive]
   69 |             xmlError *error = xmlGetLastError();
      |                               ~~~~~~~~~~~~~~~^~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib-20240124-092003

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

gcc-config -l:
 [1] 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)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (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]
2)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
*)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21 

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

  HEAD of ::gentoo
commit bb71e1f1ea34786e22dc84391e8648a69fe04c3c
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Jan 28 12:48:09 2024 +0000

    2024-01-28 12:48:08 UTC

emerge -qpvO app-misc/recoll
[ebuild  N    ] app-misc/recoll-1.36.2  USE="inotify qt5 session spell -camelcase -chm -systemd -webengine" PYTHON_SINGLE_TARGET="python3_11 -python3_10"
Comment 1 Toralf Förster gentoo-dev 2024-01-28 14:59:19 UTC
Created attachment 883441 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-01-28 14:59:20 UTC
Created attachment 883442 [details]
app-misc:recoll-1.36.2:20240128-145714.log
Comment 3 Toralf Förster gentoo-dev 2024-01-28 14:59:22 UTC
Created attachment 883443 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2024-01-28 14:59:23 UTC
Created attachment 883444 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-01-28 14:59:24 UTC
Created attachment 883445 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-01-28 14:59:25 UTC
Created attachment 883446 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-01-28 14:59:26 UTC
Created attachment 883447 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-01-28 14:59:27 UTC
Created attachment 883448 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-01-28 14:59:29 UTC
Created attachment 883449 [details]
temp.tar.xz
Comment 10 Andreas Sturmlechner gentoo-dev 2024-01-31 08:56:02 UTC
This could fix it? https://framagit.org/medoc92/recoll/-/commit/cf3cd5c830dfcb6e09073b56f827a2f9e094ea2e
Comment 11 P Purkayastha 2024-02-07 20:20:59 UTC
Might as well version bump to the latest version. It was released a few days ago. I will have a go.
Comment 12 pass word 2024-02-24 16:44:40 UTC
Created attachment 885882 [details, diff]
Patch based on suggestion in comment #10

Created git format-patch -1 cf3cd5c830dfcb6e09073b56f827a2f9e094ea2e based on discussion comment #10 for bug 923124 related to recoll-1.36.2 based on comment 10 by Andreas Sturmlechner.  Placed this in /etc/portage/patches/app-misc/recoll-1.36.2 directory I created.  After doing this the recoll package emerged successfully.
Comment 13 pass word 2024-02-24 16:45:47 UTC
(In reply to Andreas Sturmlechner from comment #10)
> This could fix it?
> https://framagit.org/medoc92/recoll/-/commit/
> cf3cd5c830dfcb6e09073b56f827a2f9e094ea2e

Based on your comment, I created patch that solved this issue for me.
Comment 14 Larry the Git Cow gentoo-dev 2024-03-02 23:01:15 UTC
The bug has been referenced in the following commit(s):

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

commit b54dbe3060a78024b9e408945ad14a8d0dbce829
Author:     Punarbasu Purkayastha <ppurka@gmail.com>
AuthorDate: 2024-02-07 20:45:31 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-02 22:55:31 +0000

    app-misc/recoll: Version bump to 1.37.4
    
    Enabled webpreview option if qt5 is enabled and webengine is disabled.
    
    Bug: https://bugs.gentoo.org/923124
    Closes: https://github.com/gentoo/gentoo/pull/35219
    Signed-off-by: Punarbasu Purkayastha <ppurka@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 app-misc/recoll/Manifest             |   1 +
 app-misc/recoll/recoll-1.37.4.ebuild | 129 +++++++++++++++++++++++++++++++++++
 2 files changed, 130 insertions(+)