Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 729362 - sys-apps/duc links against libncursesw and libtinfo, triggering a segmentation fault in termattrs_sp
Summary: sys-apps/duc links against libncursesw and libtinfo, triggering a segmentatio...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH, PullRequest
: 751817 (view as bug list)
Depends on:
Blocks: tinfo
  Show dependency tree
 
Reported: 2020-06-23 23:22 UTC by mehw
Modified: 2023-11-19 10:19 UTC (History)
5 users (show)

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


Attachments
sys-apps/duc-* (duc-1.4.1-tinfo.patch) (duc-1.4.1-tinfo.patch,799 bytes, patch)
2020-06-23 23:22 UTC, mehw
Details | Diff
diff of original duc-1.4.1-tinfo.patch (duc-1.4.1-tinfo.patch.patch,1.14 KB, patch)
2020-06-23 23:25 UTC, mehw
Details | Diff
sys-apps/duc-1.4.1-r1.ebuild (duc-1.4.1-r1.ebuild,1.79 KB, text/plain)
2020-06-23 23:27 UTC, mehw
Details
diff of original sys-apps/duc-1.4.1-r1.ebuild (duc-1.4.1-r1.ebuild.patch,649 bytes, patch)
2020-06-23 23:29 UTC, mehw
Details | Diff
sys-apps/duc-1.4.4.ebuild (duc-1.4.4.ebuild,1.76 KB, text/plain)
2020-06-23 23:31 UTC, mehw
Details
diff of original sys-apps/duc-1.4.4.ebuild (duc-1.4.4.ebuild.patch,384 bytes, patch)
2020-06-23 23:32 UTC, mehw
Details | Diff
sys-apps/duc-9999.ebuild (duc-9999.ebuild,1.76 KB, text/plain)
2020-06-23 23:33 UTC, mehw
Details
diff of original sys-apps/duc-9999.ebuild (duc-9999.ebuild.patch,380 bytes, patch)
2020-06-23 23:34 UTC, mehw
Details | Diff
sys-apps/duc-* Manifest (Manifest,2.65 KB, text/plain)
2020-06-23 23:35 UTC, mehw
Details
diff of original sys-apps/duc-* Manifest (Manifest.patch,3.73 KB, patch)
2020-06-23 23:36 UTC, mehw
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mehw 2020-06-23 23:22:50 UTC
Created attachment 645948 [details, diff]
sys-apps/duc-* (duc-1.4.1-tinfo.patch)

As reference, see also bug #651914 for the same kind of bug affecting another package (already fixed).

Fixes:
- sys-apps/duc-1.4.1-r1.ebuild (see bug #636958)
- sys-apps/duc-1.4.3-r1.ebuild
- sys-apps/duc-1.4.4.ebuild (version bump, see bug #706804)
- sys-apps/duc-9999.ebuild (commit fc889cc903ea2d718555f5b028fcf6443e3e86ad, update copyright and bump eapi)

duc-1.4.1-tinfo.patch is modified to link against the right -ltinfo(w) to prevent a segmentation fault in termattrs_sp.

sys-apps/duc-1.4.1-r1.ebuild requires the duc-1.4.1-tinfo.patch too to configure without errors (aka ncurses library not found).

NOTE: you may apply the attached patches with `patch -p5 <file.patch>`.
Comment 1 mehw 2020-06-23 23:25:55 UTC
Created attachment 645950 [details, diff]
diff of original duc-1.4.1-tinfo.patch

duc-1.4.1-tinfo.patch diff.
Comment 2 mehw 2020-06-23 23:27:40 UTC
Created attachment 645952 [details]
sys-apps/duc-1.4.1-r1.ebuild

duc-1.4.1-r1.ebuild fix.
Comment 3 mehw 2020-06-23 23:29:01 UTC
Created attachment 645954 [details, diff]
diff of original sys-apps/duc-1.4.1-r1.ebuild

duc-1.4.1-r1.ebuild diff.
Comment 4 mehw 2020-06-23 23:31:00 UTC
Created attachment 645956 [details]
sys-apps/duc-1.4.4.ebuild

duc-1.4.4.ebuild bump.
Comment 5 mehw 2020-06-23 23:32:06 UTC
Created attachment 645958 [details, diff]
diff of original sys-apps/duc-1.4.4.ebuild

duc-1.4.4.ebuild diff.
Comment 6 mehw 2020-06-23 23:33:28 UTC
Created attachment 645960 [details]
sys-apps/duc-9999.ebuild

duc-9999.ebuild update copyright and bump eapi.
Comment 7 mehw 2020-06-23 23:34:16 UTC
Created attachment 645962 [details, diff]
diff of original sys-apps/duc-9999.ebuild

duc-9999.ebuild diff.
Comment 8 mehw 2020-06-23 23:35:10 UTC
Created attachment 645964 [details]
sys-apps/duc-* Manifest

Manifest update.
Comment 9 mehw 2020-06-23 23:36:05 UTC
Created attachment 645966 [details, diff]
diff of original sys-apps/duc-* Manifest

Manifest diff.
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2020-06-26 08:34:54 UTC
My 2018 patch was wrong.
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2020-06-26 08:35:43 UTC
Comment on attachment 645950 [details, diff]
diff of original duc-1.4.1-tinfo.patch

Looks good.
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-30 00:04:20 UTC
*** Bug 751817 has been marked as a duplicate of this bug. ***
Comment 13 bugzilla-e680a21cd5fe3f9d 2020-10-30 06:05:48 UTC
I'd like to verify that the updated patch file posted here (https://729362.bugs.gentoo.org/attachment.cgi?id=645948) fixed the issue for me as well.

I missed this ticket in my search yesterday, ended up reaching the same conclusion independently, and posted duplicate #751817. My solution was more of a hack though, since I don't know the autoconf syntax well enough to mess around with that too much.

I've got a gdb backtrace and my own analysis on the duplicate ticket - I'd repost it here, but it appears you've already got the problem solved.
Comment 14 Larry the Git Cow gentoo-dev 2023-11-19 10:19:26 UTC
The bug has been closed via the following commit(s):

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

commit 4e5291a8cd8be7d123645eb24c5b70ccf0eec60e
Author:     Michael Mair-Keimberger <mmk@levelnine.at>
AuthorDate: 2023-09-16 16:08:16 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2023-11-19 10:10:42 +0000

    sys-apps/duc: version bump (v1.4.5)
    
    Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at>
    
    Closes: https://bugs.gentoo.org/706804
    Closes: https://bugs.gentoo.org/729362
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 sys-apps/duc/Manifest         |  1 +
 sys-apps/duc/duc-1.4.5.ebuild | 88 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 89 insertions(+)