Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 703126 - sys-process/cronie fails to build on uclibc-ng systems due to obstack
Summary: sys-process/cronie fails to build on uclibc-ng systems due to obstack
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2019-12-16 16:27 UTC by Steffen Christgau
Modified: 2019-12-23 17:56 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,13.48 KB, application/octet-stream)
2019-12-16 16:27 UTC, Steffen Christgau
Details
cronie-1.5.4-r1-uclibc.patch (cronie-1.5.4-r1-uclibc.patch,558 bytes, patch)
2019-12-16 16:30 UTC, Steffen Christgau
Details | Diff
build-v1.5.5.log (build-1.5.5.log,12.62 KB, application/octet-stream)
2019-12-23 16:39 UTC, Steffen Christgau
Details
cronie-1.5.5-uclibc.patch (cronie-1.5.5-uclibc.patch,552 bytes, patch)
2019-12-23 16:43 UTC, Steffen Christgau
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Christgau 2019-12-16 16:27:47 UTC
Created attachment 599844 [details]
build.log

This is somehow related bug #658846 but applies to systems using ucblic-ng which does hot has builtin support for obstack (https://wiki.gentoo.org/wiki/Project:Hardened_uClibc#Upgrade_to_.3Dsys-libs.2Fuclibc-ng-1.0.22). Compilation of cronie with anacron USE flag enabled fails during linking due to undefined references to obstack functions.

A patch to resolve this issue appears to be trivial and is similar to the musl-related steps in the ebuild. I've attached a proposal for the ebuild of version 1.5.4-r1. In principle, it should work with 1.5.5 as well.
Comment 1 Steffen Christgau 2019-12-16 16:30:32 UTC
Created attachment 599846 [details, diff]
cronie-1.5.4-r1-uclibc.patch
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2019-12-23 13:44:59 UTC
What about cronie-1.5.5? Same patch required with that version?
Comment 3 Steffen Christgau 2019-12-23 16:39:44 UTC
Created attachment 600548 [details]
build-v1.5.5.log

build.log from cronie 1.5.5 without patched ebuild
Comment 4 Steffen Christgau 2019-12-23 16:43:06 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #2)
> What about cronie-1.5.5? Same patch required with that version?

Yes, the patch is required for that version as well. Essentially, the same changes are required to successfully build cronie-1.5.5 with uclibc-ng
Comment 5 Steffen Christgau 2019-12-23 16:43:49 UTC
Created attachment 600550 [details, diff]
cronie-1.5.5-uclibc.patch
Comment 6 Larry the Git Cow gentoo-dev 2019-12-23 17:56:25 UTC
The bug has been closed via the following commit(s):

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

commit 92731111617b2c6ba7c0d301fec2aab1a71ed0d9
Author:     Steffen Christgau <mail@s14u.de>
AuthorDate: 2019-12-23 17:53:39 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2019-12-23 17:56:19 +0000

    sys-process/cronie: Fixed build on uclibc-ng systems
    
    Closes: https://bugs.gentoo.org/703126
    Package-Manager: Portage-2.3.82, Repoman-2.3.20
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 sys-process/cronie/cronie-1.5.4-r1.ebuild | 2 ++
 sys-process/cronie/cronie-1.5.5.ebuild    | 2 ++
 2 files changed, 4 insertions(+)