Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 384059 - dev-libs/expat has probably need DEPEND="sys-freebsd/freebsd-mk-defs"
Summary: dev-libs/expat has probably need DEPEND="sys-freebsd/freebsd-mk-defs"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: new-fbsd-stage
  Show dependency tree
 
Reported: 2011-09-22 10:44 UTC by Yuta SATOH
Modified: 2012-05-05 13:17 UTC (History)
0 users

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


Attachments
sample patch for expat-2.0.1-r5.ebuild (expat-2.0.1-r5.ebuild.patch,396 bytes, patch)
2011-09-22 10:49 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 2011-09-22 10:44:21 UTC
dev-libs/expat then fails to emerge in an environment that is not installed sys-freebsd/freebsd-mk-defs.


Reproducible: Always

Steps to Reproduce:
1. emerge -C sys-freebsd/freebsd-mk-defs
2. emerge dev-libs/expat
3.
Actual Results:  
<snip>
checking for ANSI C header files... (cached) yes
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for memmove... yes
checking for bcopy... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking for off_t... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for an ANSI C99-conforming __func__... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating expat_config.h
make: no system rules (sys.mk).

<snip>
Comment 1 Yuta SATOH 2011-09-22 10:49:12 UTC
Created attachment 287389 [details, diff]
sample patch for expat-2.0.1-r5.ebuild
Comment 2 Naohiro Aota gentoo-dev 2011-11-04 11:51:51 UTC
I don't think the patch is the right fix. 

Gentoo/FreeBSD usually use gmake and it goes without error here. BSD
surely need sys.mk but gmake not. Not the bug of this package.
Comment 3 Naohiro Aota gentoo-dev 2011-12-07 14:35:20 UTC
Closing. Please reopen if you think this is still a problem.
Comment 4 Yuta SATOH 2012-03-17 14:16:46 UTC
When you create a stage1 using catalyst, the same problem occurs.
If it is not fix this problem, can not make a stage1.


>>> Emerging (1 of 98) dev-libs/expat-2.1.0_beta3 for /tmp/stage1root/
>>> Failed to emerge dev-libs/expat-2.1.0_beta3 for /tmp/stage1root/, Log file:
>>>  '/var/tmp/portage/dev-libs/expat-2.1.0_beta3/temp/build.log'
 * Package:    dev-libs/expat-2.1.0_beta3
 * Repository: gentoo
 * Maintainer: freedesktop-bugs@gentoo.org
 * USE:        build elibc_FreeBSD java5 kernel_FreeBSD unicode userland_BSD x86-fbsd
 * FEATURES:   preserve-libs
 * Running elibtoolize in: expat-2.1.0_beta3/conftools/
 *   Applying portage/1.2.0 patch ...
 *   Applying sed/1.5.6 patch ...
 *   Applying as-needed/2.2.6 patch ...
 *   Applying fbsd-conf/1.5.20b patch ...
 * Removing useless C++ checks ...
 [ ok ]
checking build system type... i686-gentoo-freebsd8.2
checking host system type... i686-gentoo-freebsd8.2
checking how to print strings... printf
checking for i686-gentoo-freebsd8.2-gcc... i686-gentoo-freebsd8.2-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-gentoo-freebsd8.2-gcc accepts -g... yes
checking for i686-gentoo-freebsd8.2-gcc option to accept ISO C89... none needed
checking for a sed that does not truncate output... /usr/lib/portage/bin/ebuild-helpers/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by i686-gentoo-freebsd8.2-gcc... /usr/i686-gentoo-freebsd8.2/bin/ld
checking if the linker (/usr/i686-gentoo-freebsd8.2/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-gentoo-freebsd8.2 file names to i686-gentoo-freebsd8.2 format... func_convert_file_noop
checking how to convert i686-gentoo-freebsd8.2 file names to toolchain format... func_convert_file_noop
checking for /usr/i686-gentoo-freebsd8.2/bin/ld option to reload object files... -r
checking for i686-gentoo-freebsd8.2-objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for i686-gentoo-freebsd8.2-dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for i686-gentoo-freebsd8.2-ar... i686-gentoo-freebsd8.2-ar
checking for archiver @FILE support... @
checking for i686-gentoo-freebsd8.2-strip... i686-gentoo-freebsd8.2-strip
checking for i686-gentoo-freebsd8.2-ranlib... i686-gentoo-freebsd8.2-ranlib
checking for gawk... gawk
checking command to parse /usr/bin/nm -B output from i686-gentoo-freebsd8.2-gcc object... ok
checking for sysroot... no
checking for i686-gentoo-freebsd8.2-mt... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... i686-gentoo-freebsd8.2-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if i686-gentoo-freebsd8.2-gcc supports -fno-rtti -fno-exceptions... no
checking for i686-gentoo-freebsd8.2-gcc option to produce PIC... -fPIC -DPIC
checking if i686-gentoo-freebsd8.2-gcc PIC flag -fPIC -DPIC works... yes
checking if i686-gentoo-freebsd8.2-gcc static flag -static works... yes
checking if i686-gentoo-freebsd8.2-gcc supports -c -o file.o... yes
checking if i686-gentoo-freebsd8.2-gcc supports -c -o file.o... (cached) yes
checking whether the i686-gentoo-freebsd8.2-gcc linker (/usr/i686-gentoo-freebsd8.2/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd8.2 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for i686-gentoo-freebsd8.2-gcc... (cached) i686-gentoo-freebsd8.2-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether i686-gentoo-freebsd8.2-gcc accepts -g... (cached) yes
checking for i686-gentoo-freebsd8.2-gcc option to accept ISO C89... (cached) none needed
checking for i686-gentoo-freebsd8.2-g++... i686-gentoo-freebsd8.2-g++
checking whether we are using the GNU C++ compiler... yes
checking whether i686-gentoo-freebsd8.2-g++ accepts -g... yes
checking how to run the C++ preprocessor... i686-gentoo-freebsd8.2-g++ -E
checking for ld used by i686-gentoo-freebsd8.2-g++... /usr/i686-gentoo-freebsd8.2/bin/ld
checking if the linker (/usr/i686-gentoo-freebsd8.2/bin/ld) is GNU ld... yes
checking whether the i686-gentoo-freebsd8.2-g++ linker (/usr/i686-gentoo-freebsd8.2/bin/ld) supports shared libraries... yes
checking for i686-gentoo-freebsd8.2-g++ option to produce PIC... -fPIC -DPIC
checking if i686-gentoo-freebsd8.2-g++ PIC flag -fPIC -DPIC works... yes
checking if i686-gentoo-freebsd8.2-g++ static flag -static works... yes
checking if i686-gentoo-freebsd8.2-g++ supports -c -o file.o... yes
checking if i686-gentoo-freebsd8.2-g++ supports -c -o file.o... (cached) yes
checking whether the i686-gentoo-freebsd8.2-g++ linker (/usr/i686-gentoo-freebsd8.2/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd8.2 ld.so
checking how to hardcode library paths into programs... immediate
checking for a BSD-compatible install... /usr/bin/install -c
checking whether i686-gentoo-freebsd8.2-gcc accepts -fexceptions... yes
checking for ANSI C header files... (cached) yes
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for memmove... yes
checking for bcopy... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking for off_t... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for i686-gentoo-freebsd8.2-gcc option to accept ISO C99... -std=gnu99
checking for i686-gentoo-freebsd8.2-gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
checking for an ANSI C99-conforming __func__... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING:  '/var/tmp/portage/dev-libs/expat-2.1.0_beta3/work/expat-2.1.0_beta3/Makefile.in' seems to ignore the --datarootdir setting
config.status: creating expat.pc
config.status: creating expat_config.h
config.status: executing libtool commands
make: no system rules (sys.mk).

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-libs/expat-2.1.0_beta3/work/expat-2.1.0_beta3-build/config.log
 * ERROR: dev-libs/expat-2.1.0_beta3 failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *          ebuild.sh, line   85:  Called src_configure
 *        environment, line 2287:  Called econf '--disable-static'
 *   phase-helpers.sh, line  467:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *
 * If you need support, post the output of 'emerge --info =dev-libs/expat-2.1.0_beta3',
 * the complete build log and the output of 'emerge -pqv =dev-libs/expat-2.1.0_beta3'.
 * The complete build log is located at '/var/tmp/portage/dev-libs/expat-2.1.0_beta3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/expat-2.1.0_beta3/temp/environment'.
 * S: '/var/tmp/portage/dev-libs/expat-2.1.0_beta3/work/expat-2.1.0_beta3'

 * Messages for package dev-libs/expat-2.1.0_beta3 merged to /tmp/stage1root/:

 * ERROR: dev-libs/expat-2.1.0_beta3 failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *          ebuild.sh, line   85:  Called src_configure
 *        environment, line 2287:  Called econf '--disable-static'
 *   phase-helpers.sh, line  467:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *
 * If you need support, post the output of 'emerge --info =dev-libs/expat-2.1.0_beta3',
 * the complete build log and the output of 'emerge -pqv =dev-libs/expat-2.1.0_beta3'.
 * The complete build log is located at '/var/tmp/portage/dev-libs/expat-2.1.0_beta3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/expat-2.1.0_beta3/temp/environment'.
 * S: '/var/tmp/portage/dev-libs/expat-2.1.0_beta3/work/expat-2.1.0_beta3'

!!! catalyst: run script failed.
Comment 5 Naohiro Aota gentoo-dev 2012-03-17 14:52:34 UTC
Why does it use bsd make instead of gmake?
The real problem should be there, not dependency
Comment 6 Alexis Ballier gentoo-dev 2012-04-23 13:49:13 UTC
(In reply to comment #5)
> Why does it use bsd make instead of gmake?
> The real problem should be there, not dependency

maybe because sys-devel/make is built later and it picks bsd make as fallback

i'll be building new stages once openssh issues get resolved i suppose so i'll have a closer look at this
Comment 7 Alexis Ballier gentoo-dev 2012-05-05 13:17:14 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > Why does it use bsd make instead of gmake?
> > The real problem should be there, not dependency
> 
> maybe because sys-devel/make is built later and it picks bsd make as fallback
> 
> i'll be building new stages once openssh issues get resolved i suppose so
> i'll have a closer look at this

fixed by adding freebsd-mk-defs to packages and packages.build, nothing to do on the expat side