Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 169332 - libprojectm fails to emerge on Gentoo/FreeBSD.
Summary: libprojectm fails to emerge on Gentoo/FreeBSD.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 168461
  Show dependency tree
 
Reported: 2007-03-04 17:55 UTC by Javier Villavicencio (RETIRED)
Modified: 2007-03-11 23:41 UTC (History)
1 user (show)

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


Attachments
libprojectm-0.99-fbsd.patch (libprojectm-fbsd.patch,3.61 KB, patch)
2007-03-04 17:56 UTC, Javier Villavicencio (RETIRED)
Details | Diff
libprojectm_ebuild.patch (libprojectm-fbsd.patch,3.61 KB, patch)
2007-03-04 17:58 UTC, Javier Villavicencio (RETIRED)
Details | Diff
libprojectm_ebuild.patch (libprojectm_ebuild.diff,923 bytes, patch)
2007-03-04 17:59 UTC, Javier Villavicencio (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Javier Villavicencio (RETIRED) gentoo-dev 2007-03-04 17:55:28 UTC
The main reason is the difference between the scandir(3) third argument, which is defined as "const struct dirent *" for Linux and "struct dirent *" for BSD. This only issues a warning for C code, but gcc fails on C++ code.
The next one is the missing fmemopen, but that's already handled by the code, only a new condition is needed to avoid using it on __FreeBSD__, or completely depend it on linux/glibc (perhaps something more generic may be better, not just fbsd specific).
Comment 1 Javier Villavicencio (RETIRED) gentoo-dev 2007-03-04 17:56:22 UTC
Created attachment 112089 [details, diff]
libprojectm-0.99-fbsd.patch

Patch with the required fixes.
Comment 2 Javier Villavicencio (RETIRED) gentoo-dev 2007-03-04 17:58:08 UTC
Created attachment 112091 [details, diff]
libprojectm_ebuild.patch

Patch for the ebuild.
Comment 3 Javier Villavicencio (RETIRED) gentoo-dev 2007-03-04 17:59:14 UTC
Created attachment 112092 [details, diff]
libprojectm_ebuild.patch

Sorry, uploaded the same patch twice, this is the patch for the ebuild.
Comment 4 Peter Weller (RETIRED) gentoo-dev 2007-03-11 23:41:24 UTC
Patch committed in CVS, keyworded ~x86-fbsd, closing bug.