Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 362703 - Ideas: Function to automatically fixes Eratta and security issues for Gentoo/FreeBSD
Summary: Ideas: Function to automatically fixes Eratta and security issues for Gentoo/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal enhancement (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-09 12:15 UTC by Yuta SATOH
Modified: 2015-05-25 13:19 UTC (History)
1 user (show)

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


Attachments
patch for freebsd.eclass (freebsd.eclass.patch,775 bytes, patch)
2011-04-09 12:17 UTC, Yuta SATOH
Details | Diff
patch for sys-freebsd/freebsd*-8.0.ebuild (freebsd-8.0-p6.patch,6.86 KB, patch)
2011-04-09 12:19 UTC, Yuta SATOH
Details | Diff
freebsd-patches-8.0-p6.tar.bz2 (freebsd-patches-8.0-p6.tar.bz2,11.07 KB, application/octet-stream)
2011-04-09 12:20 UTC, Yuta SATOH
Details
make_patches.sh (make_patches.sh.txt,560 bytes, text/plain)
2011-04-09 12:22 UTC, Yuta SATOH
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2011-04-09 12:15:21 UTC
FreeBSD 8.0 has the security problem. but, Gentoo/FreeBSD doesn't solve it. 

I thought patches were put on ${FILESDIR} first. 
However, I thought that it was a failure. 
because two or more packages use the same source file.

Instead, I propose an automatic patch approach by the patchset and eclass. 

Thanks in advance.


Reproducible: Always
Comment 1 Yuta SATOH 2011-04-09 12:17:08 UTC
Created attachment 269129 [details, diff]
patch for freebsd.eclass

eclass/freebsd.eclass
added function to apply official patches by automatic operation
Comment 2 Yuta SATOH 2011-04-09 12:19:41 UTC
Created attachment 269131 [details, diff]
patch for sys-freebsd/freebsd*-8.0.ebuild
Comment 3 Yuta SATOH 2011-04-09 12:20:36 UTC
Created attachment 269133 [details]
freebsd-patches-8.0-p6.tar.bz2

FreeBSD 8.0 p6 patchset
Comment 4 Yuta SATOH 2011-04-09 12:22:59 UTC
Created attachment 269135 [details]
make_patches.sh

Sample script to make patchset.
Comment 5 Alexis Ballier gentoo-dev 2011-07-08 21:42:51 UTC
good idea but imho:
- the SRC_URI stuff shouldnt be duplicated in ebuilds but put into the eclass
- dont you have a better way to generate the patches than diff'ing the whole tree ? (eg fetching the actual patches...)
- epatch can accept a "directory" and iterate over it; patches are generally named ala "010_all_name.patch" so you probably dont need to iterate manually
Comment 6 Yuta SATOH 2015-05-25 13:19:27 UTC
Add new function, freebsd_upstream_patches to freebsd.eclass.

https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/121