Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934410 - sys-process/runit-2.1.2-r3 fails to compile: sig_pause.c:14:3: error: implicit declaration of function sigpause [-Wimplicit-function-declaration]
Summary: sys-process/runit-2.1.2-r3 fails to compile: sig_pause.c:14:3: error: implici...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard: fixws in 2.1.2-r5
Keywords: PullRequest
: 934420 (view as bug list)
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2024-06-16 12:25 UTC by Agostino Sarubbo
Modified: 2024-11-01 16:14 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,74.19 KB, text/plain)
2024-06-16 12:25 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-06-16 12:25:41 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-process/runit-2.1.2-r2 fails to compile.
Discovered on: amd64 (internal ref: ci)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0002
Comment 1 Agostino Sarubbo gentoo-dev 2024-06-16 12:25:42 UTC
Created attachment 895905 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-06-27 06:53:12 UTC
*** Bug 934420 has been marked as a duplicate of this bug. ***
Comment 3 Agostino Sarubbo gentoo-dev 2024-07-21 07:04:05 UTC
ci has reproduced this issue with version 2.1.2-r3 - Updating summary.
Comment 4 Zhixu Liu 2024-08-22 09:40:02 UTC
diff --git a/trysgprm.c b/trysgprm.c
--- a/trysgprm.c
+++ b/trysgprm.c
@@ -2,7 +2,7 @@

 #include <signal.h>

-main()
+int main()
 {
   sigset_t ss;
Comment 5 Larry the Git Cow gentoo-dev 2024-09-05 14:42:51 UTC
The bug has been closed via the following commit(s):

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

commit f0506961c5d9a3edacdf0bfe041fc84753665e4f
Author:     Z. Liu <zhixu.liu@gmail.com>
AuthorDate: 2024-08-23 16:35:50 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2024-09-05 14:40:12 +0000

    sys-process/runit: fix errors & warnings with clang 18/gcc 15
    
    20 patches from https://github.com/clan/runit/tree/ftbfs.v4 , which are divided
    into the following categories:
    
    1. patch: 0001
       purpose: helpful for development & debug: make full command line & result
                available in build.log, otherwise extra directives are required
                when debug
    2. patch: 0002, 0003, 0004, 0005, 0006
       purpose: required, build will failed if not apply
                0005 & 0006 are warnings only for gcc < 14, errors if gcc >= 14
    3. patch: 0007
       purpose: patch from author w/ new feature provided, but don't change any
                "user-observable functionality"
    4. patch: 0008
       purpose: documentation change: w/ tiny (unlikely to cause problem)
                modification of source code
    5. patch: 0009 - 0019
       purpose: fix compilation warnings reported by gcc/clang, with -Wall,
                -Wextra
    6. patch: 0020
       purpose: usleep is obsoleted in POSIX.1-2001, handled this in compile
                time by feature test macro, replace w/ nanosleep if available
    
    Closes: https://bugs.gentoo.org/934410
    Closes: https://bugs.gentoo.org/938262
    Closes: https://bugs.gentoo.org/938282
    Closes: https://github.com/clan/runit/issues/2
    Signed-off-by: Z. Liu <zhixu.liu@gmail.com>
    Tested-by: Alex Efros <powerman-asdf@yandex.ru>
    Closes: https://github.com/gentoo/gentoo/pull/38425
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-process/runit/Manifest                               |  1 +
 sys-process/runit/metadata.xml                           | 12 +++++++++++-
 .../{runit-2.1.2-r4.ebuild => runit-2.1.2-r5.ebuild}     | 16 +++++++++++++++-
 3 files changed, 27 insertions(+), 2 deletions(-)