Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 829580 - sys-apps/plocate-1.1.15 - ../.../conf.cpp: fatal error: error.h: No such file or directory
Summary: sys-apps/plocate-1.1.15 - ../.../conf.cpp: fatal error: error.h: No such file...
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: PullRequest
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2021-12-18 20:33 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,15.29 KB, text/plain)
2021-12-18 20:33 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,169.17 KB, text/plain)
2021-12-18 20:33 UTC, Toralf Förster
Details
environment (environment,117.95 KB, text/plain)
2021-12-18 20:33 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,15.74 KB, application/x-bzip)
2021-12-18 20:33 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,2.65 KB, application/x-bzip)
2021-12-18 20:33 UTC, Toralf Förster
Details
sys-apps:plocate-1.1.13:20211218-191504.log (sys-apps:plocate-1.1.13:20211218-191504.log,10.35 KB, text/plain)
2021-12-18 20:33 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,28.00 KB, application/x-bzip)
2021-12-18 20:34 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-12-18 20:33:52 UTC
too long lines were shrinked:

ninja: Entering directory `/var/tmp/portage/sys-apps/plocate-1.1.13/work/plocate-1.1.13-build'
[1/19] x86_64-gentoo-linux-musl-g++ -Iupdatedb.p -I. -I../plocate-1.1.13 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 '-DGROUPNAME="locate"' '-DUPDATEDB_CONF="/etc/updatedb.conf"' '-DDBFILE="/var/lib/plocate/plocate.db"' '-DPACKAGE_NAME="plocate
FAILED: updatedb.p/conf.cpp.o 
x86_64-gentoo-linux-musl-g++ -Iupdatedb.p -I. -I../plocate-1.1.13 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 '-DGROUPNAME="locate"' '-DUPDATEDB_CONF="/etc/updatedb.conf"' '-DDBFILE="/var/lib/plocate/plocate.db"' '-DPACKAGE_NAME="plocate"' '-DP
../plocate-1.1.13/conf.cpp:25:10: fatal error: error.h: No such file or directory
   25 | #include "error.h"
      |          ^~~~~~~~~

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

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

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-11.2.1 *
clang version 13.0.0
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.57.0 *
php cli:
  [1]   php7.3
  [2]   php7.4
  [3]   php8.1 *

  HEAD of ::gentoo
commit 7388e70f861d74d0b2d4146545d9df9f3a5adf09
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Dec 18 18:36:51 2021 +0000

    2021-12-18 18:36:47 UTC

emerge -qpvO sys-apps/plocate
[ebuild  N    ] sys-apps/plocate-1.1.13  USE="io-uring"
Comment 1 Toralf Förster gentoo-dev 2021-12-18 20:33:53 UTC
Created attachment 759617 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-12-18 20:33:54 UTC
Created attachment 759618 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-12-18 20:33:56 UTC
Created attachment 759619 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-12-18 20:33:57 UTC
Created attachment 759620 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-12-18 20:33:58 UTC
Created attachment 759621 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-12-18 20:33:59 UTC
Created attachment 759622 [details]
sys-apps:plocate-1.1.13:20211218-191504.log
Comment 7 Toralf Förster gentoo-dev 2021-12-18 20:34:00 UTC
Created attachment 759623 [details]
temp.tar.bz2
Comment 8 Agostino Sarubbo gentoo-dev 2022-02-08 07:28:01 UTC
tinderbox_musl has reproduced this issue with version 1.1.15 - Updating summary.
Comment 9 Arsen Arsenović gentoo-dev 2022-06-24 07:06:54 UTC
plocate uses error_at_line and error functions from glibc (see their respective manuals). Musl does not implement these. Fixing this up would be rather involved and probably worse than fixing up musl, what's the right course of action?
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-24 07:21:27 UTC
(In reply to Arsen Arsenovic from comment #9)
> plocate uses error_at_line and error functions from glibc (see their
> respective manuals). Musl does not implement these. Fixing this up would be
> rather involved and probably worse than fixing up musl, what's the right
> course of action?

Stub them out. They're not really that useful as errors anyway. Could they make it optional?
Comment 11 Jory A. Pratt gentoo-dev 2022-06-24 12:15:40 UTC
(In reply to Sam James from comment #10)
> (In reply to Arsen Arsenovic from comment #9)
> > plocate uses error_at_line and error functions from glibc (see their
> > respective manuals). Musl does not implement these. Fixing this up would be
> > rather involved and probably worse than fixing up musl, what's the right
> > course of action?
> 
> Stub them out. They're not really that useful as errors anyway. Could they
> make it optional?

1.1.16 I believe has already addressed this.
Comment 12 Arsen Arsenović gentoo-dev 2022-06-24 13:28:35 UTC
(In reply to Jory A. Pratt from comment #11)
> 1.1.16 I believe has already addressed this.

I've seen no such changes in 1.1.16.
Comment 13 Larry the Git Cow gentoo-dev 2022-07-15 01:26:21 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(+)