Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 483156

Summary: [10.0] profile.bashrc?: detect the CHOST="x86_64-gentoo-freebsd10.0" correctly in configure scripts etc.
Product: Gentoo/Alt Reporter: Yuta SATOH <nigoro.dev>
Component: FreeBSDAssignee: Gentoo/BSD Team <bsd+disabled>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Lowest    
Version: unspecified   
Hardware: All   
OS: FreeBSD   
URL: http://readlist.com/lists/freebsd.org/freebsd-current/16/84397.html
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 488214    
Attachments: sample /etc/portage/bashrc

Description Yuta SATOH 2013-08-31 13:51:28 UTC
freebsd1*) code is included in configure have some packages.
This code is targeted for FreeBSD 1.x.
However, this regular expression to hit 10.0 as well.

Please see URL for more information.


can be reproduced easily.

e.g. dev-libs/expat)

/var/tmp/portage/dev-libs/expat-2.1.0-r3/work/expat-2.1.0/configure
    freebsd1*)
      ld_shlibs=no
      ;;


# CHOST="x86_64-gentoo-freebsd9.2" ebuild expat-2.1.0-r3.ebuild clean compile
# ls -1 /var/tmp/portage/dev-libs/expat-2.1.0-r3/work/expat-2.1.0-amd64_fbsd/.libs
libexpat.a
libexpat.la
libexpat.lai
libexpat.so
libexpat.so.1
libexpat.so.1.6.0


# CHOST="x86_64-gentoo-freebsd10.0" ebuild expat-2.1.0-r3.ebuild clean compile
# ls -1 /var/tmp/portage/dev-libs/expat-2.1.0-r3/work/expat-2.1.0-amd64_fbsd/.libs
libexpat.a
libexpat.la
libexpat.lai


so files are not created.
Comment 1 Yuta SATOH 2013-08-31 14:09:39 UTC
Created attachment 357514 [details, diff]
sample /etc/portage/bashrc

Taken from http://svnweb.freebsd.org/ports/head/Mk/bsd.port.mk

# CHOST="x86_64-gentoo-freebsd10.0" ebuild expat-2.1.0-r3.ebuild clean prepare
<snip>
>>> Source prepared.
 * ===>   FreeBSD 10 autotools fix applied to /var/tmp/portage/dev-libs/expat-2.1.0-r3/work/expat-2.1.0/m4/libtool.m4
 * ===>   FreeBSD 10 autotools fix applied to /var/tmp/portage/dev-libs/expat-2.1.0-r3/work/expat-2.1.0/aclocal.m4
 * ===>   FreeBSD 10 autotools fix applied to /var/tmp/portage/dev-libs/expat-2.1.0-r3/work/expat-2.1.0/configure

# nano -w /var/tmp/portage/dev-libs/expat-2.1.0-r3/work/expat-2.1.0/configure
    freebsd1.*)
      ld_shlibs=no
      ;;

# ls -1 /var/tmp/portage/dev-libs/expat-2.1.0-r3/work/expat-2.1.0-amd64_fbsd/.libs
libexpat.a
libexpat.la
libexpat.lai
libexpat.so
libexpat.so.1
libexpat.so.1.6.0
Comment 2 Yuta SATOH 2015-03-09 11:36:25 UTC
10.1 merged into the main tree.