Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 469816 - media-video/ffmpeg2theora : does not respect CC
Summary: media-video/ffmpeg2theora : does not respect CC
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal QA (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks: tc-directly
  Show dependency tree
 
Reported: 2013-05-14 09:26 UTC by Agostino Sarubbo
Modified: 2023-03-18 16:44 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2013-05-14 09:26:54 UTC
You receive this bug because this package does not respect my system's CC (x86_64-pc-linux-gnu-gcc) and calls directly /usr/bin/gcc(or similar)
The possible solutions to fix this issue are:
1)Fix the buildsystem, if you can;
2)inherit toolchain-funcs and use tc-export CC
3)inherit toolchain-funcs and use emake CC="$(tc-getCC)"


From the build log:

gcc -o src/index.o -c -DPACKAGE_VERSION=\"0.29\" -DPACKAGE_STRING=\"ffmpeg2theora-0.29\" -DPACKAGE=\"ffmpeg2theora\" -D_FILE_OFFSET_BITS=64 -march=native -O2 -g0 -pipe 
-DHAVE_ICONV -I. src/index.c
Comment 1 Alexis Ballier gentoo-dev 2013-08-12 17:08:06 UTC
sounds like a scons limitation, cc'ing maintainers
Comment 2 parafin 2013-12-22 13:31:30 UTC
I think this bug also makes building fail in case of ccache enabled in FEATURES and PORTAGE_TMPDIR moved to non-standard location, see log below:

scons -j3 APPEND_CCFLAGS=-O2 -march=core2 -fomit-frame-pointer -ftracer -pipe APPEND_LINKFLAGS=-Wl,-O1 -Wl,--as-needed debug=0 prefix=/usr mandir=PREFIX/share/man libkate=0
scons: Reading SConscript files ...
Checking for pkg-config... (cached) yes
Checking for ogg >= 1.1... (cached) yes
Checking for vorbis... (cached) yes
Checking for vorbisenc... (cached) yes
Checking for theoraenc >= 1.1.0... (cached) yes
Checking for ogg >= 1.1 vorbis vorbisenc theoraenc >= 1.1.0... (cached) yes
Checking for libavdevice libavformat libavfilter libavcodec >= 52.30.0 libpostproc libswscale libavutil... (cached) yes
Checking for C header file libavformat/framehook.h... no
Checking for C header file iconv.h... no
scons: done reading SConscript files.
scons: Building targets ...
gcc -o src/theorautils.o -c -DPACKAGE_VERSION=\"0.29\" -DPACKAGE_STRING=\"ffmpeg2theora-0.29\" -DPACKAGE=\"ffmpeg2theora\" -D_FILE_OFFSET_BITS=64 -O2 -march=core2 -fomit-frame-pointer -ftracer -pipe -I. src/theorautils.c
ccache: failed to create /var/tmp/portage/.ccache (No such file or directory)
gcc -o src/avinfo.o -c -DPACKAGE_VERSION=\"0.29\" -DPACKAGE_STRING=\"ffmpeg2theora-0.29\" -DPACKAGE=\"ffmpeg2theora\" -D_FILE_OFFSET_BITS=64 -O2 -march=core2 -fomit-frame-pointer -ftracer -pipe -I. src/avinfo.c
gcc -o src/iso639.o -c -DPACKAGE_VERSION=\"0.29\" -DPACKAGE_STRING=\"ffmpeg2theora-0.29\" -DPACKAGE=\"ffmpeg2theora\" -D_FILE_OFFSET_BITS=64 -O2 -march=core2 -fomit-frame-pointer -ftracer -pipe -I. src/iso639.c
scons: *** [src/theorautils.o] Error 1
ccache: failed to create /var/tmp/portage/.ccache (No such file or directory)
scons: *** [src/avinfo.o] Error 1
ccache: failed to create /var/tmp/portage/.ccache (No such file or directory)
scons: *** [src/iso639.o] Error 1
scons: building terminated because of errors.

With FEATURES=-ccache building succeeds.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-01-21 10:16:03 UTC
Package masked for removal.
Comment 4 Larry the Git Cow gentoo-dev 2023-03-18 16:44:52 UTC
The bug has been closed via the following commit(s):

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

commit dee26cc3c59dbb56429fa768272395516957c815
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2023-03-18 16:43:01 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2023-03-18 16:43:01 +0000

    media-video/ffmpeg2theora: treeclean
    
    Closes: https://bugs.gentoo.org/469816
    Closes: https://bugs.gentoo.org/654486
    Closes: https://bugs.gentoo.org/834403
    Signed-off-by: David Seifert <soap@gentoo.org>

 media-video/ffmpeg2theora/Manifest                 |  1 -
 .../ffmpeg2theora/ffmpeg2theora-0.30-r1.ebuild     | 55 ----------------------
 .../files/ffmpeg2theora-0.29-swr.patch             | 24 ----------
 .../files/ffmpeg2theora-0.29-underlinking.patch    | 21 ---------
 media-video/ffmpeg2theora/metadata.xml             | 10 ----
 profiles/package.mask                              |  1 -
 6 files changed, 112 deletions(-)