Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 868105 - dev-libs/libphonenumber (included from kde-apps/kitinerary): /usr/include/phonenumbers/phonenumber.pb.h:17:2: error: #error This file was generated by an older version of protoc which is incompatible with your Protocol Buffer headers.
Summary: dev-libs/libphonenumber (included from kde-apps/kitinerary): /usr/include/pho...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Arfrever Frehtes Taifersar Arahesis
URL:
Whiteboard:
Keywords:
: 868039 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-09-02 19:35 UTC by Andreas Sturmlechner
Modified: 2022-11-28 08:05 UTC (History)
5 users (show)

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


Attachments
kitinerary-22.08.0:20220902-192240.log (kde-apps:kitinerary-22.08.0:20220902-192240.log,272.45 KB, text/x-log)
2022-09-02 19:35 UTC, Andreas Sturmlechner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Sturmlechner gentoo-dev 2022-09-02 19:35:22 UTC
Created attachment 802795 [details]
kitinerary-22.08.0:20220902-192240.log

/usr/include/phonenumbers/phonenumber.pb.h has:

#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3019000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3019003 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif


Should there have been a subslot bump, or is this a libphonenumber peculiarity?


Also, commit 107e1921be56a3e9ca839e49f12572dee26ff07d left 9999 ebuild untouched (still at EAPI-7).
Comment 1 Andreas Sturmlechner gentoo-dev 2022-09-02 19:43:52 UTC
...and that said, after rebuilding libphonenumber against protobuf-3.20.1 it has this updated code snippet:

#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3020000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3020001 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
Comment 2 Andreas Sturmlechner gentoo-dev 2022-09-02 20:31:29 UTC
Also, there's this:

> !!! existing preserved libs:
> >>> package: dev-libs/protobuf-3.20.1
>  *  - /usr/lib64/libprotobuf-lite.so.30
>  *  - /usr/lib64/libprotobuf-lite.so.30.0.3
>  *      used by /usr/lib64/libqgis_core.so.3.22.9 (sci-geosciences/qgis-3.22.9)
Comment 3 Andreas Sturmlechner gentoo-dev 2022-09-02 20:33:20 UTC
...and this

> >>> package: dev-libs/protobuf-3.20.1
>  *  - /usr/lib64/libprotobuf.so.30
>  *  - /usr/lib64/libprotobuf.so.30.0.3
>  *      used by /usr/bin/protoc-gen-c (dev-libs/protobuf-c-1.4.1)
>  *      used by /usr/lib64/libopencv_dnn.so.4.6.0 (media-libs/opencv-4.6.0-r2)
>  *      used by /usr/lib64/marble/plugins/OsmPlugin.so (kde-apps/marble-22.08.0)
>  *  - /usr/lib64/libprotoc.so.30
>  *  - /usr/lib64/libprotoc.so.30.0.3
>  *      used by /usr/bin/protoc-gen-c (dev-libs/protobuf-c-1.4.1)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-02 20:33:47 UTC
Yes, there should've been.

commit bf2c616b680801cdabb202cf52e2cae5afca5dc2 (HEAD -> master, origin/master, origin/HEAD)
Author: Sam James <sam@gentoo.org>
Date:   Fri Sep 2 21:32:57 2022 +0100

    dev-libs/protobuf: crank subslot for 3.20.1

    Signed-off-by: Sam James <sam@gentoo.org>
Comment 5 Larry the Git Cow gentoo-dev 2022-09-02 20:34:50 UTC
The bug has been referenced in the following commit(s):

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

commit 61e8aec7a404a47df8da672719a5924fc45bcf4d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-09-02 20:34:41 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-09-02 20:34:41 +0000

    dev-libs/protobuf: sync live ebuild
    
    Bug: https://bugs.gentoo.org/868105
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/protobuf/protobuf-9999.ebuild | 31 ++++++++++++++++++++++++++++---
 1 file changed, 28 insertions(+), 3 deletions(-)
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-03 05:56:25 UTC
*** Bug 868039 has been marked as a duplicate of this bug. ***
Comment 7 Cyp 2022-11-28 08:05:54 UTC
Ran into what I think is the same issue, when emerging @world yesterday.