Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
--no-ldconfig error [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Sun Nov 29, 2015 12:30 am    Post subject: --no-ldconfig error [SOLVED] Reply with quote

Code:

>>> Emerging (1 of 6) x11-libs/ntk-9999-r1::proaudio
>>> Unpacking source...
GIT update -->
   repository:               git://git.tuxfamily.org/gitroot/non/fltk.git
   at the commit:            5719b0044d9f267de5391fab006370cc7f4e70bd
   branch:                   master
   storage directory:        "/usr/portage/distfiles/egit-src/fltk.git"
   checkout type:            bare repository
Cloning into '/var/tmp/portage/x11-libs/ntk-9999-r1/work/ntk-9999'...
done.
Branch branch-master set up to track remote branch master from origin.
Switched to a new branch 'branch-master'
>>> Unpacked to /var/tmp/portage/x11-libs/ntk-9999-r1/work/ntk-9999
>>> Source unpacked in /var/tmp/portage/x11-libs/ntk-9999-r1/work
>>> Preparing source in /var/tmp/portage/x11-libs/ntk-9999-r1/work/ntk-9999 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-libs/ntk-9999-r1/work/ntk-9999 ...
 * Waf requires threading support in Python. To accomodate this requirement,
 * please add 'threads(+)' to PYTHON_REQ_USE variable (above inherit line).
 * For more information and examples, please see:
 *     https://wiki.gentoo.org/wiki/Project:Python/waf-utils_integration
CCFLAGS="-march=amdfam10 -O2 -pipe" LINKFLAGS="-march=amdfam10 -O2 -pipe -Wl,-O1 -Wl,--as-needed" "/var/tmp/portage/x11-libs/ntk-9999-r1/work/ntk-9999/waf" --prefix=/usr --libdir=/usr/lib64 --no-ldconfig --no-optimize configure
waf [commands] [options]

Main commands (example: ./waf build -j4)
  build    : executes the build
  clean    : cleans the project
  configure: configures the project
  dist     : makes a tarball for redistributing the sources
  distcheck: checks if the project compiles (tarball from 'dist')
  distclean: removes the build directory
  install  : installs the targets on the system
  list     : lists the targets to execute
  step     : executes tasks in a step-by-step fashion, for debugging
  uninstall: removes the targets installed
  update   : updates the plugins from the *waflib/extras* directory

waf: error: no such option: --no-ldconfig
 * ERROR: x11-libs/ntk-9999-r1::proaudio failed (configure phase):
 *   configure failed
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_configure
 *   environment, line 3244:  Called waf-utils_src_configure '--no-ldconfig' '--no-optimize'
 *   environment, line 3872:  Called die
 * The specific snippet of code:
 *           CCFLAGS="${CFLAGS}" LINKFLAGS="${CFLAGS} ${LDFLAGS}" "${WAF_BINARY}" "--prefix=${EPREFIX}/usr" "${libdir}" "$@" configure || die "configure failed";
 *
 * If you need support, post the output of `emerge --info '=x11-libs/ntk-9999-r1::proaudio'`,
 * the complete build log and the output of `emerge -pqv '=x11-libs/ntk-9999-r1::proaudio'`.
 * The complete build log is located at '/var/tmp/portage/x11-libs/ntk-9999-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-libs/ntk-9999-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-libs/ntk-9999-r1/work/ntk-9999'
 * S: '/var/tmp/portage/x11-libs/ntk-9999-r1/work/ntk-9999'

>>> Failed to emerge x11-libs/ntk-9999-r1


How would I get around the --no-ldconfig thing?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN


Last edited by audiodef on Fri Jul 22, 2016 7:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Sun Nov 29, 2015 5:49 am    Post subject: Re: --no-ldconfig error Reply with quote

audiodef wrote:
How would I get around the --no-ldconfig thing?

audiodef ... by the looks of things that is explictly called via src_configure() in x11-libs/ntk-9999-r1::proaudio ... likely the ebuild reflects a time when x11-libs/ntk wasn't using waf, difficult to say without seeing the ebuild.

best ... khay
Back to top
View user's profile Send private message
Gooberpatrol66
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2014
Posts: 143

PostPosted: Sun Dec 06, 2015 9:06 am    Post subject: Reply with quote

Here's the ebuild for the package he's referring to:

Code:
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="5"

PYTHON_COMPAT=( python{2_7,3_2,3_3} )
inherit git-2 python-any-r1 waf-utils

DESCRIPTION="A fork of the Fast Light ToolKit library, adding improved graphics rendering via Cairo"
HOMEPAGE="http://non.tuxfamily.org/wiki/NTK"
EGIT_REPO_URI="git://git.tuxfamily.org/gitroot/non/fltk.git"

# --enable-test to waf builds and installs test programs. There is no
# test suite in the source code.
RESTRICT="test"

LICENSE="FLTK LGPL-2"
SLOT="0"
KEYWORDS=""

IUSE="debug opengl png"

RDEPEND="media-libs/fontconfig
        x11-libs/cairo
        x11-libs/libX11
        x11-libs/libXft
        virtual/jpeg
        opengl? ( media-libs/glu )
        png? ( media-libs/libpng )"
DEPEND="${RDEPEND}"

DOCS=( ANNOUNCEMENT CREDITS README )
PATCHES=(
        "${FILESDIR}"/${P}-noldconfig-r1.patch
        "${FILESDIR}"/${P}-nooptimize.patch
)

src_unpack() {
        git-2_src_unpack
}

src_configure() {
        local mywafconfargs=(
                --no-ldconfig
                --no-optimize
                $(usex debug --enable-debug "")
                $(usex opengl --enable-gl "")
        )
        waf-utils_src_configure ${mywafconfargs[@]}
}

src_install() {
        DESTDIR="${D}" waf-utils_src_install
}
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Sun Dec 06, 2015 9:56 am    Post subject: Reply with quote

Gooberpatrol66 wrote:
Here's the ebuild for the package he's referring to:

Gooberpatrol66 ... ok, given the following warning in waf-utils.eclass I think the issue is something to do with the array used ...

waf-utils.eclass:
# This condition is required because waf takes even whitespace as function
# calls, awesome isn't it?

.. please try replacing src_configure() with the following (untested):

Code:
src_configure() {
        waf-utils_src_configure \
        --no-ldconfig \
        --no-optimize \
        $(use debug && echo "--enable-debug") \
        $(use opengl && echo "--enable-gl")
}

If that isn't the issue then I can't see what else it might be ...

HTH & best ... khay
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Fri Jul 22, 2016 4:40 pm    Post subject: Reply with quote

I got this ebuild working with the following:

Code:

src_configure() {
        waf-utils_src_configure
        #./waf configure
}

src_compile(){
        waf-utils_src_compile
        #./waf
}

src_install(){
        waf-utils_src_install
        #su -c './waf install'
}


Not sure the debug and opengl options are strictly necessary, but if they are, I'll look into that.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum