Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 829494 - net-libs/gnome-online-accounts-3.40.0: /usr/include/gcr-3/gcr/gcr.h:23:2: error: #error "This API has not yet reached stability."
Summary: net-libs/gnome-online-accounts-3.40.0: /usr/include/gcr-3/gcr/gcr.h:23:2: err...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://gitlab.gnome.org/GNOME/gnome-...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: nonbash
  Show dependency tree
 
Reported: 2021-12-17 18:39 UTC by Frederik Pfautsch
Modified: 2021-12-19 21:16 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge_info.txt,22.13 KB, text/plain)
2021-12-17 18:39 UTC, Frederik Pfautsch
Details
build.log (gnome-online-accounts-3.40.0_build.log,73.66 KB, text/plain)
2021-12-17 18:40 UTC, Frederik Pfautsch
Details
nonbash.patch (file_829494.txt,1.39 KB, patch)
2021-12-18 07:16 UTC, Sam James
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Frederik Pfautsch 2021-12-17 18:39:58 UTC
Created attachment 759492 [details]
emerge --info

Gnome-online-accounts fails to build after complete rebuild of the system with the following error message from (included from app-crypt/gcr-3.40.0):

In file included from goaidentityservice.c:29:
/usr/include/gcr-3/gcr/gcr.h:23:2: error: #error "This API has not yet reached stability."
   23 | #error "This API has not yet reached stability."
      |  ^~~~~
Comment 1 Frederik Pfautsch 2021-12-17 18:40:34 UTC
Created attachment 759493 [details]
build.log
Comment 2 Mike Gilbert gentoo-dev 2021-12-17 22:32:10 UTC
Please add the package category to the bug summary.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-18 07:11:49 UTC
checking for GCR... yes
./configure: 17053: test: yes: unexpected operator
./configure: 17060: test: yes: unexpected operator
checking for krb5-config... (cached) /usr/bin/krb5-config
checking for GCR... yes
./configure: 17451: test: yes: unexpected operator
./configure: 17458: test: yes: unexpected operator
checking for timerfd support... yes
checking for timerfd cancel-on-set support... yes

Looks related to nonbash /bin/sh.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-18 07:16:07 UTC
Created attachment 759525 [details, diff]
nonbash.patch

You will need to modify the ebuild and set GNOME2_EAUTORECONF=yes at the top of the ebuild about inherit and apply this patch.
Comment 5 Frederik Pfautsch 2021-12-18 07:27:23 UTC
Oh, that makes sense. I wondered why the problem appeared now and not at the initial upgrade and didn't think to check the configure log.

Thanks for the patch and the merge request! Both options (setting bash or using the patch) work for me.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-18 07:30:31 UTC
(In reply to Frederik Pfautsch from comment #5)
> Oh, that makes sense. I wondered why the problem appeared now and not at the
> initial upgrade and didn't think to check the configure log.
> 
> Thanks for the patch and the merge request! Both options (setting bash or
> using the patch) work for me.

Excellent! Thanks for the quick feedback :)
Comment 7 Mart Raudsepp gentoo-dev 2021-12-18 11:43:00 UTC
I think downstream we should just CONFIG_SHELL="${BASH}" meanwhile instead of incurring a eautoreconf
Comment 8 Larry the Git Cow gentoo-dev 2021-12-19 21:16:29 UTC
The bug has been closed via the following commit(s):

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

commit 23749c7cadeb2e9b189fd70f3edb69459d548738
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-19 21:15:20 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-19 21:16:18 +0000

    net-libs/gnome-online-accounts: use Bash for configure for now
    
    Fix compile using e.g. dash as /bin/sh (instead of bash as /bin/sh). Patch
    submitted upstream.
    
    Closes: https://bugs.gentoo.org/829494
    Signed-off-by: Sam James <sam@gentoo.org>

 net-libs/gnome-online-accounts/gnome-online-accounts-3.40.0.ebuild | 5 ++++-
 net-libs/gnome-online-accounts/gnome-online-accounts-3.40.1.ebuild | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)