Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 592732 - media-gfx/sam2p-0.49.1 on El Captain (prefix): cannot compute depends
Summary: media-gfx/sam2p-0.49.1 on El Captain (prefix): cannot compute depends
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-02 14:24 UTC by Han
Modified: 2021-01-06 13:09 UTC (History)
4 users (show)

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


Attachments
Extend sam2p dependency detection script to cope with various new and changed error and warning messages of gcc and clang (sam2p-0.49.2-ccdep.patch,1.74 KB, patch)
2016-09-02 16:16 UTC, Michael Weiser
Details | Diff
Adjust to changed clang warning message format. (sam2p-0.49.4-warning-formt.patch,763 bytes, patch)
2018-02-11 07:51 UTC, Michael Weiser
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Han 2016-09-02 14:24:17 UTC
The emerge of media-gfx/sam2p-0.49.1::gentoo_prefix on El Captain with clang-3.7.1 shows the following error message:

config.status: creating config.h
running gmake Makedep... error
configure: error: cannot compute depends

This error can be fixed with the patch in the following link:

https://archives.gentoo.org/gentoo-alt/message/61c6fa878548462533816b6bd586710c
Comment 1 Michael Weiser 2016-09-02 16:16:12 UTC
Created attachment 444808 [details, diff]
Extend sam2p dependency detection script to cope with various new and changed error and warning messages of gcc and clang

Here's the actual patch with what I remember of what it does: Extend sam2p dependency detection script to cope with various new error and warning messages of gcc and clang.
Comment 2 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2018-02-11 04:02:18 UTC
This issue doesn't look prefix specific. Replicated failure in chroot:

checking size of bool... 1
configure: creating ./config.status
config.status: creating Makehelp
config.status: creating config.h
running gmake Makedep... error
configure: error: cannot compute depends
Comment 3 Michael Weiser 2018-02-11 07:51:38 UTC
Created attachment 518964 [details, diff]
Adjust to changed clang warning message format.

Yes, it's the general problem that ccdep.pl parses compiler messages. Whenever any compiler message changes, it breaks. Prefix on Mac triggers this more readily because clang is the default compiler there.

Upstream is aware of the general issue and has done some work to make ccdep.pl more robust: https://github.com/pts/sam2p/commit/909cbb833ceda9dbbf16c207a51390c7766ed54d.

With 0.49.4 I needed only the attached patch to adjust it to clang-5's changed warning message format.

I haven't reported this upstream yet due to lack of time to put the report together. Could one of you do this?
Comment 4 Fabian Groffen gentoo-dev 2021-01-06 13:09:28 UTC
GCC is used by default nowadays, so this probably is now a different topic