Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 426838 - next version Gentoo/FreeBSD 9.1
Summary: next version Gentoo/FreeBSD 9.1
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: http://github.com/nigoro/amd64-fbsd
Whiteboard:
Keywords:
Depends on: 409815 419477
Blocks:
  Show dependency tree
 
Reported: 2012-07-16 12:22 UTC by Yuta SATOH
Modified: 2012-09-11 20:08 UTC (History)
0 users

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


Attachments
patch for freebsd-lib.ebuild (freebsd-lib.ebuild.patch,626 bytes, patch)
2012-07-16 12:29 UTC, Yuta SATOH
Details | Diff
patch for freebsd-mk-defs.ebuild (freebsd-mk-defs.patch,450 bytes, patch)
2012-07-16 12:33 UTC, Yuta SATOH
Details | Diff
freebsd-mk-defs-9.1-gentoo.patch (freebsd-mk-defs-9.1-gentoo.patch,11.49 KB, patch)
2012-07-16 12:35 UTC, Yuta SATOH
Details | Diff
freebsd-mk-defs-9.1-gnu.patch (freebsd-mk-defs-9.1-gnu.patch,2.22 KB, patch)
2012-07-16 12:36 UTC, Yuta SATOH
Details | Diff
patch for freebsd-sources.ebuild (freebsd-sources.patch,822 bytes, patch)
2012-07-16 12:43 UTC, Yuta SATOH
Details | Diff
freebsd-sources-9.1-gentoo.patch (freebsd-sources-9.1-gentoo.patch,1.15 KB, patch)
2012-07-16 12:48 UTC, Yuta SATOH
Details | Diff
patch for freebsd-ubin.ebuild (freebsd-ubin.patch,691 bytes, patch)
2012-07-16 13:07 UTC, Yuta SATOH
Details | Diff
freebsd-ubin-9.1-kdump-ioctl.patch (freebsd-ubin-9.1-kdump-ioctl.patch,1001 bytes, patch)
2012-07-16 13:08 UTC, Yuta SATOH
Details | Diff
freebsd-ubin-9.1-bsdar.patch (freebsd-ubin-9.1-bsdar.patch,656 bytes, patch)
2012-07-16 13:24 UTC, Yuta SATOH
Details | Diff
freebsd-ubin-9.1-minigzip.patch (freebsd-ubin-9.1-minigzip.patch,336 bytes, patch)
2012-07-16 13:35 UTC, Yuta SATOH
Details | Diff
freebsd-ubin-9.1-grep.patch (freebsd-ubin-9.1-grep.patch,549 bytes, patch)
2012-07-16 13:35 UTC, Yuta SATOH
Details | Diff
patch for freebsd-usbin.ebuild (freebsd-usbin.patch,312 bytes, patch)
2012-07-16 13:40 UTC, Yuta SATOH
Details | Diff
freebsd-usbin-9.1-bsdxml2expat.patch (freebsd-usbin-9.1-bsdxml2expat.patch,431 bytes, patch)
2012-07-16 13:41 UTC, Yuta SATOH
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2012-07-16 12:22:43 UTC
FreeBSD 9.1 beta1 is available.
I'll report the results on Gentoo/FreeBSD.


The following packages were able to compile by simply changing the file name.
(ex. cp boot0-9.0.ebuild boot0-9.1_beta1.ebuild; ebuild boot0-9.1_beta1.ebuild digest)

boot0
freebsd-bin
freebsd-cddl
freebsd-contrib
freebsd-libexec
freebsd-pam-modules
freebsd-pf
freebsd-sbin
freebsd-share


The following packages are probably need a patch.

freebsd-lib
freebsd-mk-defs
freebsd-sources
freebsd-ubin
freebsd-usbin


I have not tested this package.

freebsd-rescue


9.1_beta1 ebuild and patches is available from my overlay (please see URL).
Comment 1 Yuta SATOH 2012-07-16 12:29:16 UTC
Created attachment 318288 [details, diff]
patch for freebsd-lib.ebuild

- 9.0-trylock-adaptive.patch
fixed in 9.1.

+ 6.0-pmc.patch
fixed this problem.
<snip>
/var/tmp/portage/sys-freebsd/freebsd-lib-9.1_beta1/work/lib/libpmc/pmclog.c: In function 'pmclog_get_event':
/var/tmp/portage/sys-freebsd/freebsd-lib-9.1_beta1/work/lib/libpmc/pmclog.c:373:3: error: 'union <anonymous>' has no member named 'pl_ad'
</snip>
Comment 2 Yuta SATOH 2012-07-16 12:33:35 UTC
Created attachment 318290 [details, diff]
patch for freebsd-mk-defs.ebuild

Source code has been modified, new patches are needed.
Comment 3 Yuta SATOH 2012-07-16 12:35:55 UTC
Created attachment 318292 [details, diff]
freebsd-mk-defs-9.1-gentoo.patch

freebsd-mk-defs/files/freebsd-mk-defs-9.1-gentoo.patch
Comment 4 Yuta SATOH 2012-07-16 12:36:47 UTC
Created attachment 318294 [details, diff]
freebsd-mk-defs-9.1-gnu.patch

freebsd-mk-defs/files/freebsd-mk-defs-9.1-gnu.patch
Comment 5 Yuta SATOH 2012-07-16 12:43:01 UTC
Created attachment 318296 [details, diff]
patch for freebsd-sources.ebuild

-	epatch "${FILESDIR}/${PN}-9.0-gentoo.patch"
+	epatch "${FILESDIR}/${PN}-9.1-gentoo.patch"
Source code has been modified, new patch is required.

-	epatch "${FILESDIR}/${PN}-cve-2012-0217.patch"
-	epatch "${FILESDIR}/${PN}-9.0-ipv6refcount.patch"
fixed in 9.1. (SA / EN)
Comment 6 Yuta SATOH 2012-07-16 12:48:14 UTC
Created attachment 318298 [details, diff]
freebsd-sources-9.1-gentoo.patch

freebsd-sources/files/freebsd-sources-9.1-gentoo.patch
Comment 7 Yuta SATOH 2012-07-16 13:07:38 UTC
Created attachment 318300 [details, diff]
patch for freebsd-ubin.ebuild

-	"${FILESDIR}/${PN}-6.0-kdump-ioctl.patch"
+	"${FILESDIR}/${PN}-9.1-kdump-ioctl.patch"
-	"${FILESDIR}/${PN}-8.0-bsdar.patch" )
+	"${FILESDIR}/${PN}-9.1-bsdar.patch"
Source code has been modified, new patches are needed.

+	"${FILESDIR}/${PN}-9.1-minigzip.patch"
fixes this problem.
===> minigzip (all)
Warning: Object directory not changed from original /var/tmp/portage/sys-freebsd/freebsd-ubin-9.1_beta1/work/usr.bin/minigzip
gcc -O2 -pipe  -DUSE_MMAP -std=gnu99 -fstack-protector -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wno-pointer-sign -c /var/tmp/portage/sys-freebsd/freebsd-ubin-9.1_beta1/work/usr.bin/minigzip/../../lib/libz/test/minigzip.c
/var/tmp/portage/sys-freebsd/freebsd-ubin-9.1_beta1/work/usr.bin/minigzip/../../lib/libz/test/minigzip.c:334:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
/var/tmp/portage/sys-freebsd/freebsd-ubin-9.1_beta1/work/usr.bin/minigzip/../../lib/libz/test/minigzip.c:335:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
/var/tmp/portage/sys-freebsd/freebsd-ubin-9.1_beta1/work/usr.bin/minigzip/../../lib/libz/test/minigzip.c:337:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
/var/tmp/portage/sys-freebsd/freebsd-ubin-9.1_beta1/work/usr.bin/minigzip/../../lib/libz/test/minigzip.c:339:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
/var/tmp/portage/sys-freebsd/freebsd-ubin-9.1_beta1/work/usr.bin/minigzip/../../lib/libz/test/minigzip.c:340:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
/var/tmp/portage/sys-freebsd/freebsd-ubin-9.1_beta1/work/usr.bin/minigzip/../../lib/libz/test/minigzip.c:341:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
/var/tmp/portage/sys-freebsd/freebsd-ubin-9.1_beta1/work/usr.bin/minigzip/../../lib/libz/test/minigzip.c:342:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
/var/tmp/portage/sys-freebsd/freebsd-ubin-9.1_beta1/work/usr.bin/minigzip/../../lib/libz/test/minigzip.c:347:6: warning: function declaration isn't a prototype
/var/tmp/portage/sys-freebsd/freebsd-ubin-9.1_beta1/work/usr.bin/minigzip/../../lib/libz/test/minigzip.c:358:6: warning: function declaration isn't a prototype
/var/tmp/portage/sys-freebsd/freebsd-ubin-9.1_beta1/work/usr.bin/minigzip/../../lib/libz/test/minigzip.c: In function 'gz_compress':
/var/tmp/portage/sys-freebsd/freebsd-ubin-9.1_beta1/work/usr.bin/minigzip/../../lib/libz/test/minigzip.c:370:5: warning: implicit declaration of function 'gz_compress_mmap'
/var/tmp/portage/sys-freebsd/freebsd-ubin-9.1_beta1/work/usr.bin/minigzip/../../lib/libz/test/minigzip.c: At top level:
/var/tmp/portage/sys-freebsd/freebsd-ubin-9.1_beta1/work/usr.bin/minigzip/../../lib/libz/test/minigzip.c:391:5: warning: function declaration isn't a prototype
/var/tmp/portage/sys-freebsd/freebsd-ubin-9.1_beta1/work/usr.bin/minigzip/../../lib/libz/test/minigzip.c:426:6: warning: function declaration isn't a prototype
/var/tmp/portage/sys-freebsd/freebsd-ubin-9.1_beta1/work/usr.bin/minigzip/../../lib/libz/test/minigzip.c:453:6: warning: function declaration isn't a prototype
/var/tmp/portage/sys-freebsd/freebsd-ubin-9.1_beta1/work/usr.bin/minigzip/../../lib/libz/test/minigzip.c:488:6: warning: function declaration isn't a prototype
/var/tmp/portage/sys-freebsd/freebsd-ubin-9.1_beta1/work/usr.bin/minigzip/../../lib/libz/test/minigzip.c:540:5: warning: function declaration isn't a prototype
*** Error code 1
1 error
*** Error code 2
1 error

+	"${FILESDIR}/${PN}-9.1-grep.patch"
fixes file collision
 *      /usr/bin/xzgrep
 *      /usr/bin/xzegrep
 *      /usr/bin/xzfgrep
 *      /usr/bin/lzgrep
 *      /usr/bin/lzegrep
 *      /usr/bin/lzfgrep
Comment 8 Yuta SATOH 2012-07-16 13:08:43 UTC
Created attachment 318302 [details, diff]
freebsd-ubin-9.1-kdump-ioctl.patch

freebsd-ubin/files/freebsd-ubin-9.1-kdump-ioctl.patch
Comment 9 Yuta SATOH 2012-07-16 13:24:00 UTC
Created attachment 318306 [details, diff]
freebsd-ubin-9.1-bsdar.patch

freebsd-ubin/files/freebsd-ubin-9.1-bsdar.patch
Comment 10 Yuta SATOH 2012-07-16 13:35:02 UTC
Created attachment 318308 [details, diff]
freebsd-ubin-9.1-minigzip.patch

freebsd-ubin/files/freebsd-ubin-9.1-minigzip.patch
Comment 11 Yuta SATOH 2012-07-16 13:35:43 UTC
Created attachment 318310 [details, diff]
freebsd-ubin-9.1-grep.patch

freebsd-ubin/files/freebsd-ubin-9.1-grep.patch
Comment 12 Yuta SATOH 2012-07-16 13:40:18 UTC
Created attachment 318312 [details, diff]
patch for freebsd-usbin.ebuild

+	"${FILESDIR}/${PN}-9.1-bsdxml2expat.patch"
added patch, change #include <bsdxml.h> --> #include <expat.h>
Comment 13 Yuta SATOH 2012-07-16 13:41:01 UTC
Created attachment 318314 [details, diff]
freebsd-usbin-9.1-bsdxml2expat.patch

freebsd-usbin/files/freebsd-usbin-9.1-bsdxml2expat.patch
Comment 14 Yuta SATOH 2012-07-21 05:11:03 UTC
Add the bug should be fixed first.

boot0 is required gcc-4.5.x.
We will need to using clang or MASK a later version gcc-4.6.

freebsd-lib, it is necessary to modify in order to be able to ensure the upgrade.
Comment 15 Yuta SATOH 2012-07-30 11:19:03 UTC
I succeeded to compile freebsd-rescue-9.1_beta1, added it to the bsd-overlay.
Comment 16 Yuta SATOH 2012-08-03 14:53:24 UTC
FYI,
I was added a sample script to create a new stages to the bsd-overlay.
9.1_beta1 ebuilds, I have tested with it.

how to use)
wget -O ~/stages_builder.sh "http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-bsd.git;a=blob_plain;f=scripts/mkstages/stages_builder.sh;hb=HEAD"
bash ~/stages_builder.sh
Comment 17 Yuta SATOH 2012-08-25 01:32:23 UTC
I confirm that stage files of 9.1_rc1 can be created on amd64-fbsd/x86-fbsd.
I've updated to 9.1_rc1 in the overlay.

Sample scripts have been updated as well.
Now you can create stage file of x86-fbsd on amd64-fbsd.

bash ~/stages_builder.sh x86
Comment 18 Alexis Ballier gentoo-dev 2012-09-11 20:08:59 UTC
moved everything to the tree, thanks!
if you have fixes or improvements, please push them to the overlay and ask me to review them and merge them to the portage tree.