In file included from /usr/include/sys/stat.h:446, from utils.c:33: /usr/include/bits/statx.h:25:8: error: redefinition of ‘struct statx_timestamp’ struct statx_timestamp ^~~~~~~~~~~~~~~ In file included from utils.c:32: ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0_libressl_20181021-070255 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-7.3.1 [2] x86_64-pc-linux-gnu-8.2.0 * Available Python interpreters, in order of preference: [1] python3.7 [2] python3.6 [3] python2.7 (fallback) Available Ruby profiles: [1] ruby23 (with Rubygems) [2] ruby25 (with Rubygems) * emerge -qpvO media-video/mjpg-streamer
Created attachment 552580 [details] emerge-info.txt
Created attachment 552582 [details] emerge-history.txt
Created attachment 552584 [details] environment
Created attachment 552586 [details] etc.portage.tbz2
Created attachment 552588 [details] media-video:mjpg-streamer-0_pre20120621-r1:20181023-164312.log
Created attachment 552590 [details] temp.tbz2
Created attachment 568094 [details, diff] patch out redundant include that breaks ebuild statx (and some related structs) are defined in two places. Only one should be #included. This patch fixes that; store it in /etc/portage/patches/media-video/mjpg-streamer-0_pre20120621-r1/.
Created attachment 568096 [details] user patch fix for EAPI <6 https://wiki.gentoo.org/wiki//etc/portage/patches#Enabling_.2Fetc.2Fportage.2Fpatches_for_all_ebuilds User patches are ordinarily only applied on EAPI 6, or on EAPI 5 under some conditions. This ebuild uses EAPI 4. Drop this into /etc/portage/ so that user patches are applied to all ebuilds.
(In reply to Scott Alfter from comment #8) > Created attachment 568096 [details] > user patch fix for EAPI <6 > > https://wiki.gentoo.org/wiki//etc/portage/patches#Enabling_.2Fetc.2Fportage. > 2Fpatches_for_all_ebuilds > > User patches are ordinarily only applied on EAPI 6, or on EAPI 5 under some > conditions. This ebuild uses EAPI 4. Drop this into /etc/portage/ so that > user patches are applied to all ebuilds. ?? It uses EAPI=7 ...as seen here: https://github.com/gentoo/gentoo/blob/master/media-video/mjpg-streamer/mjpg-streamer-0_pre20200524-r1.ebuild#L4
The comment was from 2019 ;)
(In reply to Scott Alfter from comment #7) > Created attachment 568094 [details, diff] [details, diff] > patch out redundant include that breaks ebuild > > statx (and some related structs) are defined in two places. Only one should > be #included. This patch fixes that; store it in > /etc/portage/patches/media-video/mjpg-streamer-0_pre20120621-r1/. Is this still valid for newer ebuild ( https://github.com/gentoo/gentoo/blob/master/media-video/mjpg-streamer/mjpg-streamer-0_pre20200524-r1.ebuild) ?