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

Bug 516364

Summary: =dev-libs/nspr-4.10.6-r1 on arm - The following REQUIRED_USE flag constraints are unsatisfied: any-of ( abi_x86_32 abi_x86_64 abi_x86_x32 abi_mips_n32 abi_mips_n64 abi_mips_o32 abi_ppc_32 abi_ppc_64 abi_s390_32 abi_s390_64 )
Product: Gentoo Linux Reporter: Joerg Neikes <j.m.neikes>
Component: [OLD] LibraryAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: ARM   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Joerg Neikes 2014-07-04 13:06:06 UTC
Portage 2.2.10 (default/linux/arm/13.0/armv6j, gcc-4.8.3, glibc-2.19-r1, 3.4.91-4-ARCH armv7l)
=================================================================
System uname: Linux-3.4.91-4-ARCH-armv7l-ARMv7_Processor_rev_3_-v7l-with-gentoo-2.2
KiB Mem:     1785860 total,   1037188 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Fri, 04 Jul 2014 12:00:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.1 armv6j-hardfloat-linux-gnueabi [disabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p47
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.7, 3.3.5, 3.4.1
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.7.3-r1, 4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.15 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo
ACCEPT_KEYWORDS="arm ~arm"
ACCEPT_LICENSE="*"
CBUILD="armv6j-hardfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard"
CHOST="armv6j-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -march=armv6j"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe -march=armv6j"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="X a52 aac acl alsa apng arm authlib berkdb bindist bzip2 cdda cddb cli cracklib crypt cups cxx dri dvd dvdnav embed embedded faac ffmpeg flac fortran gd gdbm gme gmp gtk httpd iconv introspection ipv6 jbig jpeg jpeg2k ldap libass libcaca libkms live lua lzma mad matroska modules mp3 mp3rtp mp4 mpeg mplayer mysql mysqli ncurses network nls nptl ogg openmp oss pam pcre png pulseaudio python readline rtsp sdl session skins snmp speex sqlite ssl svg tcpd theora tiff truetype twolame udev unicode usb v4l vcdx vlm vorbis wma-fixed xml xorg xosd xv xvid zlib" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file auhz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3 php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON


Reproducible: Always

Steps to Reproduce:
1.emerge =dev-libs/nspr-4.10.6-r1
Actual Results:  
!!! Problem resolving dependencies for dev-libs/nspr                          ... done!

!!! The ebuild selected to satisfy "dev-libs/nspr" has unmet requirements.
- dev-libs/nspr-4.10.6-r1::gentoo USE="-debug"

  The following REQUIRED_USE flag constraints are unsatisfied:
    any-of ( abi_x86_32 abi_x86_64 abi_x86_x32 abi_mips_n32 abi_mips_n64 abi_mips_o32 abi_ppc_32 abi_ppc_64 abi_s390_32 abi_s390_64 )


--- /usr/portage/dev-libs/nspr/nspr-4.10.6-r1.ebuild    2014-07-04 12:22:10.272852207 +0000
+++ /usr/portage/dev-libs/nspr/nspr-4.10.6.ebuild       2014-06-19 18:31:11.000000000 +0000
@@ -1,11 +1,11 @@
 # Copyright 1999-2014 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.10.6-r1.ebuild,v 1.4 2014/06/19 03:15:41 tetromino Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.10.6.ebuild,v 1.5 2014/06/19 18:04:04 maekke Exp $
 
 EAPI=5
 WANT_AUTOCONF="2.5"
 
-inherit autotools eutils multilib toolchain-funcs versionator multilib-minimal
+inherit autotools eutils multilib toolchain-funcs versionator
 
 MIN_PV="$(get_version_component_range 2)"
 
@@ -15,20 +15,17 @@
 
 LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-so
laris"
+KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solari
s"
 IUSE="debug"
 
-RDEPEND=""
-
-MULTILIB_CHOST_TOOLS=(
-       /usr/bin/nspr-config
-)
-
 src_prepare() {
-       cd "${S}"/nspr || die
+       mkdir build inst
+
+       cd "${S}"/nspr
        epatch "${FILESDIR}"/${PN}-4.7.0-prtime.patch
        epatch "${FILESDIR}"/${PN}-4.7.1-solaris.patch
        epatch "${FILESDIR}"/${PN}-4.10.6-solaris.patch
+       # epatch "${FILESDIR}"/${PN}-4.8.3-aix-gcc.patch
        epatch "${FILESDIR}"/${PN}-4.8.4-darwin-install_name.patch
        epatch "${FILESDIR}"/${PN}-4.8.9-link-flags.patch
        # We do not need to pass -L$libdir via nspr-config --libs
@@ -45,7 +42,9 @@
                "${S}"/nspr/config/rules.mk || die
 }
 
-multilib_src_configure() {
+src_configure() {
+       cd "${S}"/build
+
        # We use the standard BUILD_xxx but nspr uses HOST_xxx
        tc-export_build_env BUILD_CC
        export HOST_CC=${BUILD_CC} HOST_CFLAGS=${BUILD_CFLAGS} HOST_LDFLAGS=${BUILD_LDFLAGS}
@@ -54,30 +53,14 @@
                && export CROSS_COMPILE=1 \
                || unset CROSS_COMPILE
 
-       local myconf=()
-
-       # The configure has some fancy --enable-{{n,x}32,64bit} switches
-       # that trigger some code conditional to platform & arch. This really
-       # matters for the few common arches (x86, ppc) but we pass a little
-       # more of them to be future-proof.
-
-       # use ABI first, this will work for most cases
-       case "${ABI}" in
-               alpha|arm|hppa|m68k|o32|ppc|s390|sh|sparc|x86) ;;
-               n32) myconf+=( --enable-n32 );;
-               x32) myconf+=( --enable-x32 );;
-               s390x|*64) myconf+=( --enable-64bit );;
-               default) # no abi actually set, fall back to old check
-                       einfo "Running a short build test to determine 64bit'ness"
-                       echo > "${T}"/test.c || die
-                       ${CC} ${CFLAGS} ${CPPFLAGS} -c "${T}"/test.c -o "${T}"/test.o || die
-                       case $(file "${T}"/test.o) in
-                               *32-bit*x86-64*) myconf+=( --enable-x32 );;
-                               *64-bit*|*ppc64*|*x86_64*) myconf+=( --enable-64bit );;
-                               *32-bit*|*ppc*|*i386*) ;;
-                               *) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
-                       esac ;;
-               *) ;;
+       local myconf
+       einfo "Running a short build test to determine 64bit'ness"
+       echo > "${T}"/test.c
+       ${CC} ${CFLAGS} ${CPPFLAGS} -c "${T}"/test.c -o "${T}"/test.o || die
+       case $(file "${T}"/test.o) in
+               *32-bit*x86-64*|*64-bit*|*ppc64*|*x86_64*) myconf+=" --enable-64bit";;
+               *32-bit*|*ppc*|*i386*) ;;
+               *) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
        esac
 
        # Ancient autoconf needs help finding the right tools.
@@ -87,10 +70,16 @@
                --libdir="${EPREFIX}/usr/$(get_libdir)" \
                $(use_enable debug) \
                $(use_enable !debug optimize) \
-               "${myconf[@]}"
+               ${myconf}
+}
+
+src_compile() {
+       cd "${S}"/build || die
+       emake
 }
-multilib_src_install() {
+src_install() {
+       cd "${S}"/build
        # Their build system is royally confusing, as usual
        MINOR_VERSION=${MIN_PV} # Used for .so version
        emake DESTDIR="${D}" install
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-04 13:07:41 UTC
Please attach the entire build log to this bug report.
Comment 2 Joerg Neikes 2014-07-04 13:15:20 UTC
No build log available:


alarm ~ # emerge dev-libs/nspr

 * IMPORTANT: 9 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

Calculating dependencies /

!!! Problem resolving dependencies for dev-libs/nspr                                                                                                                                                         ... done!

!!! The ebuild selected to satisfy "dev-libs/nspr" has unmet requirements.
- dev-libs/nspr-4.10.6-r1::gentoo USE="-debug"

  The following REQUIRED_USE flag constraints are unsatisfied:
    any-of ( abi_x86_32 abi_x86_64 abi_x86_x32 abi_mips_n32 abi_mips_n64 abi_mips_o32 abi_ppc_32 abi_ppc_64 abi_s390_32 abi_s390_64 )





By the way all newR DEPEND ${MULTILIB_USEDEP} and abi_x86_32? packages have this problem.

See diff of  /usr/portage/sys-libs/pam/pam-1.1.8-r2.ebuild /usr/portage/sys-libs/pam/pam-1.1.8-r1.ebuild 

pam-1.1.8-r1.ebuild works

pam-1.1.8-r2.ebuild writes error too:

  The following REQUIRED_USE flag constraints are unsatisfied:
    any-of ( abi_x86_32 abi_x86_64 abi_x86_x32 abi_mips_n32 abi_mips_n64 abi_mips_o32 abi_ppc_32 abi_ppc_64 abi_s390_32 abi_s390_64 )
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-07-04 13:17:38 UTC

*** This bug has been marked as a duplicate of bug 516348 ***
Comment 4 Joerg Neikes 2014-07-04 13:19:35 UTC
Created attachment 380190 [details]
build.log