Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 488214 - Next version Gentoo/FreeBSD 10.0
Summary: Next version Gentoo/FreeBSD 10.0
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL: http://www.freebsd.org/releases/10.0R...
Whiteboard:
Keywords:
Depends on: 483044 483156 489984 490034 492758 493126 493306 493310 494740 494744 498908 511024
Blocks:
  Show dependency tree
 
Reported: 2013-10-16 11:42 UTC by Yuta SATOH
Modified: 2015-03-09 11:35 UTC (History)
0 users

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


Attachments
patch for boot0-10.0_beta1 (488214-boot0-10.0.patch,352 bytes, patch)
2013-10-16 12:17 UTC, Yuta SATOH
Details | Diff
patch for freebsd-bin-10.0_beta1 (488214-freebsd-bin-10.0.patch,418 bytes, patch)
2013-10-16 12:19 UTC, Yuta SATOH
Details | Diff
patch for freebsd-lib-10.0_beta1 (488214-freebsd-lib-10.0.patch,3.50 KB, patch)
2013-10-16 12:40 UTC, Yuta SATOH
Details | Diff
patch for freebsd-libexec-10.0_beta1 (488214-freebsd-libexec-10.0.patch,450 bytes, patch)
2013-10-16 12:42 UTC, Yuta SATOH
Details | Diff
patch for freebsd-mk-defs-10.0_beta1 (488214-freebsd-mk-defs-10.0.patch,454 bytes, patch)
2013-10-16 12:43 UTC, Yuta SATOH
Details | Diff
patch for freebsd-pam-modules-10.0_beta1 (488214-freebsd-pam-modules-10.0.patch,581 bytes, patch)
2013-10-16 12:45 UTC, Yuta SATOH
Details | Diff
patch for freebsd-pf-10.0_beta1 (488214-freebsd-pf-10.0.patch,720 bytes, patch)
2013-10-16 12:50 UTC, Yuta SATOH
Details | Diff
patch for freebsd-rescue-10.0_beta1 (488214-freebsd-rescue-10.0.patch,404 bytes, patch)
2013-10-16 12:51 UTC, Yuta SATOH
Details | Diff
patch for freebsd-sbin-10.0_beta1 (488214-freebsd-sbin-10.0.patch,650 bytes, patch)
2013-10-16 13:22 UTC, Yuta SATOH
Details | Diff
patch for freebsd-share-10.0_beta1 (488214-freebsd-share-10.0.patch,1.06 KB, patch)
2013-10-16 13:24 UTC, Yuta SATOH
Details | Diff
patch for freebsd-sources-10.0_beta1 (488214-freebsd-sources-10.0.patch,2.97 KB, patch)
2013-10-16 13:29 UTC, Yuta SATOH
Details | Diff
log that failed to build aesni using gcc (freebsd-sources-10.0_beta1-gcc481-mod.log,10.34 KB, text/plain)
2013-10-16 13:32 UTC, Yuta SATOH
Details
patch for freebsd-ubin-10.0_beta1 (488214-freebsd-ubin-10.0.patch,2.09 KB, patch)
2013-10-16 13:43 UTC, Yuta SATOH
Details | Diff
patch for freebsd-usbin-10.0_beta1 (488214-freebsd-usbin-10.0.patch,2.04 KB, patch)
2013-10-16 13:55 UTC, Yuta SATOH
Details | Diff
sample patch for virtual/libiconv-0-r1.ebuild (488214-virtual-libiconv.patch,477 bytes, patch)
2013-10-18 12:58 UTC, Yuta SATOH
Details | Diff
How to test G/FBSD 10.0-BETA1 (How_to_test_10_0.txt,1.23 KB, text/plain)
2013-10-24 12:02 UTC, Yuta SATOH
Details
sample patch for freebsd.eclass (488214-freebsd.eclass,756 bytes, patch)
2013-10-30 13:35 UTC, Yuta SATOH
Details | Diff
sample patch for freebsd.eclass (488214-freebsd.eclass.new.patch,1.03 KB, patch)
2013-10-31 17:11 UTC, Yuta SATOH
Details | Diff
packages for profile (packages,50 bytes, text/plain)
2013-12-05 11:06 UTC, Yuta SATOH
Details
packages.build for profile (packages.build,19 bytes, text/plain)
2013-12-05 11:07 UTC, Yuta SATOH
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2013-10-16 11:42:08 UTC
I'll list some changes for FreeBSD 10.0
Comment 1 Yuta SATOH 2013-10-16 12:10:07 UTC
No change
freebsd-cddl-10.0_beta1.ebuild

Removed
freebsd-contrib

libodialog: removed.
sort and patch: These are provided by freebsd-ubin-10.0_beta1.
Comment 2 Yuta SATOH 2013-10-16 12:17:01 UTC
Created attachment 361004 [details, diff]
patch for boot0-10.0_beta1

Fixed a problem that can not build userboot/libstand.

<snip>
--- _inffast.o ---
x86_64-gentoo-freebsd10.0-gcc  -O2 -pipe -mtune=generic -fno-strict-aliasing -I/var/tmp/portage/sys-freebsd/boot0-10.0_beta1/work/lib/libstand  -ffreestanding -Wformat -fPIC -I/var/tmp/portage/sys-freebsd/boot0-10.0_beta1/work/sys/boot/userboot/libstand/../../../../lib/libstand -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -DBZ_NO_STDIO -DBZ_NO_COMPRESS -DHAVE_MEMCPY -I/var/tmp/portage/sys-freebsd/boot0-10.0_beta1/work/sys/boot/userboot/libstand/../../../../lib/libz -std=gnu99 -Wno-pointer-sign -c _inffast.c -o /var/tmp/portage/sys-freebsd/boot0-10.0_beta1/work/sys/boot/userboot/libstand/../../../../lib/libstand/_inffast.o
--- libstand.a ---
building static stand library
nm: '__main.o': No such file
nm: 'assert.o': No such file
<snip>
nm: 'ext2fs.o': No such file
nm: 'splitfs.o': No such file
ar: splitfs.o: No such file or directory
*** [libstand.a] Error code 1

make[2]: stopped in /var/tmp/portage/sys-freebsd/boot0-10.0_beta1/work/sys/boot/userboot/libstand
1 error
Comment 3 Yuta SATOH 2013-10-16 12:19:14 UTC
Created attachment 361006 [details, diff]
patch for freebsd-bin-10.0_beta1

remove new command, freebsd-version
Comment 4 Yuta SATOH 2013-10-16 12:40:13 UTC
Created attachment 361008 [details, diff]
patch for freebsd-lib-10.0_beta1

remove WITHOUT_BIND.*=
  BIND has been removed from FreeBSD 10.0.
added WITHOUT_LDNS= WITHOUT_UNBOUND= WITHOUT_ICONV= 
  remove unbound and iconv related files.
  please use net-dns/unbound and dev-libs/libiconv instead.
added (R)DEPEND="!dev-libs/libexecinfo"
  libexecinfo was merged into lib-10.0.
added CXXFLAGS="${CXXFLAGS} -isystem ...
  it's requires to build atf.

note,
freebsd-lib-10.0-libproc-libcxx.patch is a patch for clang + libcxx environment.
http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-bsd.git;a=blob_plain;f=sys-freebsd/freebsd-lib/files/freebsd-lib-10.0-libproc-libcxx.patch;hb=HEAD
Comment 5 Yuta SATOH 2013-10-16 12:42:52 UTC
Created attachment 361010 [details, diff]
patch for freebsd-libexec-10.0_beta1

added patch for atf.
Comment 6 Yuta SATOH 2013-10-16 12:43:58 UTC
Created attachment 361012 [details, diff]
patch for freebsd-mk-defs-10.0_beta1

patch update.
Comment 7 Yuta SATOH 2013-10-16 12:45:24 UTC
Created attachment 361014 [details, diff]
patch for freebsd-pam-modules-10.0_beta1

change from NO_ to WITHOUT_
Comment 8 Yuta SATOH 2013-10-16 12:50:59 UTC
Created attachment 361016 [details, diff]
patch for freebsd-pf-10.0_beta1

patch update.
when SVN live ebuild, I have changed not to create a symbolic link /usr/sys.
Comment 9 Yuta SATOH 2013-10-16 12:51:53 UTC
Created attachment 361018 [details, diff]
patch for freebsd-rescue-10.0_beta1

patch update.
Comment 10 Alexis Ballier gentoo-dev 2013-10-16 12:53:31 UTC
(In reply to Yuta SATOH from comment #4)
> added WITHOUT_LDNS= WITHOUT_UNBOUND= WITHOUT_ICONV= 
>   remove unbound and iconv related files.
>   please use net-dns/unbound and dev-libs/libiconv instead.

is the included iconv really gnu iconv or the bsd kiconv has been merged ?

in the former case you're absolutely right; in the latter I'd rather keep the bsd kiconv and block libiconv
Comment 11 Yuta SATOH 2013-10-16 13:20:22 UTC
(In reply to Alexis Ballier from comment #10)
> (In reply to Yuta SATOH from comment #4)
> > added WITHOUT_LDNS= WITHOUT_UNBOUND= WITHOUT_ICONV= 
> >   remove unbound and iconv related files.
> >   please use net-dns/unbound and dev-libs/libiconv instead.
> 
> is the included iconv really gnu iconv or the bsd kiconv has been merged ?

BSD's kiconv merged 10.0.

FYI,
http://svnweb.freebsd.org/base/stable/10/lib/libiconv/
http://svnweb.freebsd.org/ports/head/UPDATING?view=patch&r1=325786&r2=326307&pathrev=326309

# ls -1 /usr/lib/*iconv* (Run on vanilla FreeBSD 10.0-ALPHA1)
/usr/lib/libkiconv.a
/usr/lib/libkiconv.so
/usr/lib/libkiconv_p.a

> in the former case you're absolutely right; in the latter I'd rather keep
> the bsd kiconv and block libiconv

I agree that keep bsd's kiconv.
However, I think need for a test if it works properly on G/FBSD...
Give me some time please.
Comment 12 Yuta SATOH 2013-10-16 13:22:29 UTC
Created attachment 361022 [details, diff]
patch for freebsd-sbin-10.0_beta1

patch update.
when SVN live ebuild, I have changed not to create a symbolic link /usr/sys.
Comment 13 Yuta SATOH 2013-10-16 13:24:19 UTC
Created attachment 361024 [details, diff]
patch for freebsd-share-10.0_beta1

added WITHOUT_ICONV= 
when SVN live ebuild, I have changed not to create a symbolic link /usr/sys.
update GROFF_TMAC_PATH=
Comment 14 Yuta SATOH 2013-10-16 13:29:43 UTC
Created attachment 361030 [details, diff]
patch for freebsd-sources-10.0_beta1

patch update.
added IUSE="+clang"
  aesni module can not be compiled with gcc.
  if set USE=clang, force set CC=clang.
added RDEPEND="!sys-fs/fuse4bsd"
  10.0 have fuse module.
update __FreeBSD_cc_version.
fix bug #487982
Comment 15 Yuta SATOH 2013-10-16 13:32:19 UTC
Created attachment 361032 [details]
log that failed to build aesni using gcc
Comment 16 Yuta SATOH 2013-10-16 13:43:39 UTC
Created attachment 361034 [details, diff]
patch for freebsd-ubin-10.0_beta1

patch update.

added
WITHOUT_LZMA_SUPPORT=
  instead freebsd-ubin-9.1-grep.patch
WITHOUT_ICONV=
  i'll test later.
WITHOUT_SVN= WITHOUT_SVNLITE=
  svnlite disable.
WITHOUT_OPENSSH=
  fix file collisions

fixed the problem of fails to build the mandoc and xlint.
fixed fails to compile dtc when using gcc-4.6.4 (see ${PN}-10.0-dtc-gcc46.patch).

remove bind stuff from REMOVE_SUBDIRS.
Comment 17 Yuta SATOH 2013-10-16 13:55:31 UTC
Created attachment 361036 [details, diff]
patch for freebsd-usbin-10.0_beta1

patch update.

RDEPEND
-=sys-freebsd/freebsd-contrib-${RV}*
  contrib removed.
-acpi? ( sys-power/iasl )
  fix bug 477376.

remove WITHOUT_BIND.*=
added WITHOUT_UNBOUND= 

remove bind stuff amd sysinstall from REMOVE_SUBDIRS.
added pc-sysinstall to REMOVE_SUBDIRS (This command also exist in 9.x).

added iscsid initd script.
fix bug #486652 (added nfsuserd.{initd,confd})

when SVN live ebuild, I have changed not to create a symbolic link /usr/sys.
Comment 18 Yuta SATOH 2013-10-16 14:05:10 UTC
ebuild and patches are available from gentoo-bsd overlay.
http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-bsd.git

Feedback, better patches, ideas are all welcome.
Comment 19 Yuta SATOH 2013-10-16 15:12:42 UTC
(In reply to Yuta SATOH from comment #11)
> (In reply to Alexis Ballier from comment #10)
> > (In reply to Yuta SATOH from comment #4)
> > > added WITHOUT_LDNS= WITHOUT_UNBOUND= WITHOUT_ICONV= 
> > >   remove unbound and iconv related files.
> > >   please use net-dns/unbound and dev-libs/libiconv instead.
> > 
> > is the included iconv really gnu iconv or the bsd kiconv has been merged ?
> 
> BSD's kiconv merged 10.0.
my mistake.
BSD-licensed libiconv in base system is correct.
BSD-licensed libiconv is the default on vanilla FreeBSD 10.0.

sorry to confuse you.

https://wiki.freebsd.org/G%C3%A1borSoC2009

> > in the former case you're absolutely right; in the latter I'd rather keep
> > the bsd kiconv and block libiconv
> 
> I agree that keep bsd's kiconv.
> However, I think need for a test if it works properly on G/FBSD...
> Give me some time please.

anyway, I'll test BSD-licensed libiconv...
Comment 20 Yuta SATOH 2013-10-18 12:58:17 UTC
Created attachment 361226 [details, diff]
sample patch for virtual/libiconv-0-r1.ebuild

(In reply to Alexis Ballier from comment #10)
> is the included iconv really gnu iconv or the bsd kiconv has been merged ?
> 
> in the former case you're absolutely right; in the latter I'd rather keep
> the bsd kiconv and block libiconv

I've enabled BSD-licensed libiconv just now.
In addition, I've added WITH_LIBICONV_COMPAT=yes option to create libiconv.so.

-liconv is hard-coded in dev-vcs/git.
In order to successfully compile git, run configure or libiconv.so is required.

There may be packages that is hard-coded in the other. However, I don't have the time to test.
Instead of test, I choose to create libiconv.so.

http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-bsd.git;a=patch;h=d39c2e956873e483638e20160c677bad01a871ea
Comment 21 Yuta SATOH 2013-10-23 11:55:05 UTC
profile.bashrc and packages must have a profile of 10.0.

profile.bashrc: please see bug #483156.
packages: echo "-*sys-freebsd/freebsd-contrib" >> 10.0/packages
Comment 22 Yuta SATOH 2013-10-24 12:02:03 UTC
Created attachment 361784 [details]
How to test G/FBSD 10.0-BETA1

I've confirmed that it can be upgraded from 9.2 on amd64-fbsd.
Comment 23 Yuta SATOH 2013-10-30 13:35:41 UTC
Created attachment 362296 [details, diff]
sample patch for freebsd.eclass

freebsd.eclass: Changed to use to force /usr/share/mk on FreeBSD 10.0.
Comment 24 Yuta SATOH 2013-10-31 17:11:56 UTC
Created attachment 362370 [details, diff]
sample patch for freebsd.eclass

I found new issue. update patch.

freebsd.eclass: Changed to use to force /usr/share/mk on FreeBSD 10.0.
+ Fixed a problem of numerical comparison in 10.0.

sample code)

if [[ 10.0 > 9.1 ]] ; then
    echo "true"
else
    echo "false"
fi

results)
false
Comment 25 Yuta SATOH 2013-12-04 12:30:17 UTC
(In reply to Yuta SATOH from comment #20)
> I've enabled BSD-licensed libiconv just now.
> In addition, I've added WITH_LIBICONV_COMPAT=yes option to create
> libiconv.so.

WITH_LIBICONV_COMPAT has been removed.
libiconv.so is no longer exists on FreeBSD 10.0...

http://svnweb.freebsd.org/base?view=revision&revision=258230
Comment 26 Yuta SATOH 2013-12-05 11:06:04 UTC
Created attachment 364654 [details]
packages for profile
Comment 27 Yuta SATOH 2013-12-05 11:07:33 UTC
Created attachment 364656 [details]
packages.build for profile

FYI,
Fix of 10.0_beta1 or later available from gentoo-bsd overlay.
Please check the differences by using diff.

diff -I '\$Header:' -u 9.2.ebuild 10.0.ebuild
Comment 28 Yuta SATOH 2013-12-20 12:35:23 UTC
I pushed 10.0 profiles to gentoo-bsd overlay.
I tested these profiles by to create stages. 

You can see the changes from 9.2.

$ git diff ed203e32bb103679c1372b6992ef7b1b59c613e6 profiles
Comment 29 Yuta SATOH 2014-02-26 13:35:49 UTC
When using the tar.xz, file size of the source archive is small.
I think we should use tar.xz is better.

I bumped to EAPI=3 or newer.
In addition, I have changed from tar.bz2 to tar.xz in SRC_URI.

If you want to continue to use tar.bz2, please use ebuild in the past.
http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-bsd.git;a=tree;h=ffc6bd917843dcb48d733c5a08fae780f6e3745c;hb=716cf834f56b3999d78e0540d5f620e712f1ef10


Note, EAPI=3 or later is required to use .tar.xz.
http://devmanual.gentoo.org/ebuild-writing/eapi/#eapi=3


FYI, The size of the source archive of 10.0.

# du -h tar.xz
105M    tar.xz

# du -h tar.bz2
127M    tar.bz2
Comment 30 Yuta SATOH 2015-03-09 11:35:41 UTC
10.1 merged into the main tree.