Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 669446 - media-video/mjpg-streamer-0_pre20120621-r1 : /.../statx.h:25:8: error: redefinition of struct statx_timestamp
Summary: media-video/mjpg-streamer-0_pre20120621-r1 : /.../statx.h:25:8: error: redefi...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: ChaosEngine
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2018-10-23 19:06 UTC by Toralf Förster
Modified: 2023-05-17 06:23 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.03 KB, text/plain)
2018-10-23 19:06 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,150.80 KB, text/plain)
2018-10-23 19:06 UTC, Toralf Förster
Details
environment (environment,75.60 KB, text/plain)
2018-10-23 19:06 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,13.34 KB, application/x-bzip)
2018-10-23 19:06 UTC, Toralf Förster
Details
media-video:mjpg-streamer-0_pre20120621-r1:20181023-164312.log (media-video:mjpg-streamer-0_pre20120621-r1:20181023-164312.log,2.96 KB, text/plain)
2018-10-23 19:06 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,18.95 KB, application/x-bzip)
2018-10-23 19:06 UTC, Toralf Förster
Details
patch out redundant include that breaks ebuild (dont-need-sys-stat-h.patch,251 bytes, patch)
2019-03-07 19:02 UTC, Scott Alfter
Details | Diff
user patch fix for EAPI <6 (bashrc,874 bytes, text/plain)
2019-03-07 19:05 UTC, Scott Alfter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-10-23 19:06:32 UTC
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
Comment 1 Toralf Förster gentoo-dev 2018-10-23 19:06:35 UTC
Created attachment 552580 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-10-23 19:06:37 UTC
Created attachment 552582 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-10-23 19:06:40 UTC
Created attachment 552584 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-10-23 19:06:43 UTC
Created attachment 552586 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-10-23 19:06:46 UTC
Created attachment 552588 [details]
media-video:mjpg-streamer-0_pre20120621-r1:20181023-164312.log
Comment 6 Toralf Förster gentoo-dev 2018-10-23 19:06:48 UTC
Created attachment 552590 [details]
temp.tbz2
Comment 7 Scott Alfter 2019-03-07 19:02:31 UTC
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/.
Comment 8 Scott Alfter 2019-03-07 19:05:04 UTC
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.
Comment 9 ChaosEngine 2023-05-16 13:57:55 UTC
(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
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-16 19:38:25 UTC
The comment was from 2019 ;)
Comment 11 ChaosEngine 2023-05-17 06:23:39 UTC
(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) ?