Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 853769 - sys-apps/plocate-1.1.16 - ../.../io_uring_engine.cpp: error: STATX_MODE was not declared in this scope
Summary: sys-apps/plocate-1.1.16 - ../.../io_uring_engine.cpp: error: STATX_MODE was n...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks:
 
Reported: 2022-06-22 18:05 UTC by Toralf Förster
Modified: 2022-07-15 01:26 UTC (History)
5 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.49 KB, text/plain)
2022-06-22 18:05 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,115.85 KB, text/plain)
2022-06-22 18:05 UTC, Toralf Förster
Details
environment (environment,121.90 KB, text/plain)
2022-06-22 18:05 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,23.57 KB, application/x-bzip)
2022-06-22 18:05 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,2.77 KB, application/x-bzip)
2022-06-22 18:05 UTC, Toralf Förster
Details
sys-apps:plocate-1.1.16:20220622-162927.log (sys-apps:plocate-1.1.16:20220622-162927.log,9.79 KB, text/plain)
2022-06-22 18:05 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,29.32 KB, application/x-bzip)
2022-06-22 18:05 UTC, Toralf Förster
Details
missing include (include-statx.patch,209 bytes, patch)
2022-06-22 19:58 UTC, Jory A. Pratt
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 2022-06-22 18:05:03 UTC
In file included from ../plocate-1.1.16/io_uring_engine.cpp:8:
/usr/include/liburing.h:520:8: note: forward declaration of 'struct statx'
  520 | struct statx;
      |        ^~~~~
../plocate-1.1.16/io_uring_engine.cpp:126:114: error: 'STATX_MODE' was not declared in this scope
  126 |         io_uring_prep_statx(sqe, /*fd=*/-1, pending->stat.pathname, AT_STATX_SYNC_AS_STAT | AT_SYMLINK_NOFOLLOW, STATX_MODE, pending->stat.buf);
      |                                                                                                                  ^~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-j4-20220621-170011

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-12.1.1 *
clang/llvm (if any):
clang version 14.0.5
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/14/bin
/usr/lib/llvm/14
14.0.5
Python 3.9.13
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-1.61.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.3_p7 [openjdk-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-bin-17  system-vm

php cli:

  HEAD of ::gentoo
commit 0fcb974f7cdc02106576e2e396a0922b9e17b600
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Jun 22 15:47:44 2022 +0000

    2022-06-22 15:47:44 UTC

emerge -qpvO sys-apps/plocate
[ebuild  N    ] sys-apps/plocate-1.1.16  USE="io-uring"
Comment 1 Toralf Förster gentoo-dev 2022-06-22 18:05:04 UTC
Created attachment 786803 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-06-22 18:05:05 UTC
Created attachment 786806 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-06-22 18:05:07 UTC
Created attachment 786809 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-06-22 18:05:08 UTC
Created attachment 786812 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-06-22 18:05:09 UTC
Created attachment 786815 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-06-22 18:05:10 UTC
Created attachment 786818 [details]
sys-apps:plocate-1.1.16:20220622-162927.log
Comment 7 Toralf Förster gentoo-dev 2022-06-22 18:05:11 UTC
Created attachment 786821 [details]
temp.tar.bz2
Comment 8 Jory A. Pratt gentoo-dev 2022-06-22 19:58:49 UTC
Created attachment 786845 [details, diff]
missing include
Comment 9 Arsen Arsenović gentoo-dev 2022-06-22 20:03:02 UTC
Upstream is pretty responsive with patches, so it'd be nice to get a fix upstreamed.
If you could, please send a properly formatted patch to:
Steinar H. Gunderson <steinar+plocate@gunderson.no>.

I can also handle this tomorrow afternoon if you'd prefer.

Thanks for looking into this BTW, I ran out of time for today.
Comment 10 Arsen Arsenović gentoo-dev 2022-06-25 10:27:13 UTC
https://git.sesse.net/?p=plocate;a=commitdiff;h=0125004cd28c5f9124632b594e51dde73af1691c
well, someone beat us to it
Comment 11 Larry the Git Cow gentoo-dev 2022-07-15 01:26:20 UTC
The bug has been closed via the following commit(s):

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

commit 8ae581f317277614e761ff7659de8ba16abb2bab
Author:     Alfred Persson Forsberg <cat@catcream.org>
AuthorDate: 2022-07-07 17:36:44 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-15 01:17:05 +0000

    sys-apps/plocate: Fix build for musl
    
    Read each patch for explaination, both are now upstreamed!
    Should be in 1.1.17 (or whatever next release will be called).
    
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=829580
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=853769
    Signed-off-by: Alfred Persson Forsberg <cat@catcream.org>
    Closes: https://github.com/gentoo/gentoo/pull/26268
    Signed-off-by: Sam James <sam@gentoo.org>

 ...plocate-1.1.16-error-to-fprintf-exit-musl.patch | 337 +++++++++++++++++++++
 .../plocate-1.1.16-include-linux-stat_h-musl.patch |  30 ++
 sys-apps/plocate/plocate-1.1.16.ebuild             |   2 +
 3 files changed, 369 insertions(+)