Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147352 - app-admin/logrotate patch for FreeBSD compatibility
Summary: app-admin/logrotate patch for FreeBSD compatibility
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: High normal (vote)
Assignee: Daniel Gryniewicz (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-12 11:35 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2006-09-15 19:44 UTC (History)
1 user (show)

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


Attachments
Ebuild patch (logrotate-ebuild.patch,1.53 KB, patch)
2006-09-12 11:37 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff
logrotate-3.7.1-fbsd.patch (logrotate-3.7.1-fbsd.patch,589 bytes, patch)
2006-09-12 11:39 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2006-09-12 11:35:50 UTC
As per summary, here comes a patch to allow logrotate to be built on FreeBSD.

The basic difference is that on FreeBSD alloca() is in stdlib.h so you don't need the alloca.h inclusion (no alloca.h on FreeBSD).

The RPM_OPT_CFLAGS change is just so that the CFLAGS can be changed in src_compile rather than sedded in before, and -g is not always used so that no extra debug symbols are built when they won't be used.

Thanks,
Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-09-12 11:37:24 UTC
Created attachment 96815 [details, diff]
Ebuild patch
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-09-12 11:39:04 UTC
Created attachment 96816 [details, diff]
logrotate-3.7.1-fbsd.patch
Comment 3 Daniel Gryniewicz (RETIRED) gentoo-dev 2006-09-15 19:44:29 UTC
Fixed in 3.7.2.