Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jul 2020 18:08:21 +0200
From:      =?UTF-8?B?VMSzbA==?= Coosemans <tijl@FreeBSD.org>
To:        Christian Weisgerber <naddy@FreeBSD.org>
Cc:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r541352 - head/audio/libvorbis
Message-ID:  <20200710180821.135a17b5@FreeBSD.org>
In-Reply-To: <202007061710.066HA8TI006937@repo.freebsd.org>
References:  <202007061710.066HA8TI006937@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 6 Jul 2020 17:10:08 +0000 (UTC) Christian Weisgerber
<naddy@FreeBSD.org> wrote:
> Author: naddy
> Date: Mon Jul  6 17:10:08 2020
> New Revision: 541352
> URL: https://svnweb.freebsd.org/changeset/ports/541352
> 
> Log:
>   Use the libtool script from devel/libtool.
>   The included libtool appears to be broken and loses the -lm dependency_lib,
>   so libvorbisenc and libvorbisfile did not get linked with -lm.
>   
>   PR:		247799
> 
> Modified:
>   head/audio/libvorbis/Makefile
> 
> Modified: head/audio/libvorbis/Makefile
> ==============================================================================
> --- head/audio/libvorbis/Makefile	Mon Jul  6 17:02:32 2020	(r541351)
> +++ head/audio/libvorbis/Makefile	Mon Jul  6 17:10:08 2020	(r541352)
> @@ -3,6 +3,7 @@
>  
>  PORTNAME=	libvorbis
>  PORTVERSION=	1.3.7
> +PORTREVISION=	1
>  PORTEPOCH=	3
>  CATEGORIES=	audio
>  MASTER_SITES=	https://downloads.xiph.org/releases/vorbis/ \
> @@ -16,11 +17,13 @@ LICENSE_FILE=	${WRKSRC}/COPYING
>  
>  LIB_DEPENDS=	libogg.so:audio/libogg
>  
> -USES=		libtool pathfix tar:xz
> +# The included libtool is broken and loses the -lm dependency_lib.
> +USES=		libtool:build pathfix tar:xz
>  USE_LDCONFIG=	yes
>  
>  GNU_CONFIGURE=	yes
>  CONFIGURE_ARGS=	--with-ogg=${LOCALBASE}
> +MAKE_ARGS=	LIBTOOL=${PREFIX}/bin/libtool
>  INSTALL_TARGET=	install-strip
>  TEST_TARGET=	check

This is because the bundled libtool is the one from Debian, but it's
also a bad practice to rely on the dependencies of a dependency so a
better fix here would be to add -lm to libvorbisfile_la_LIBADD in
WKRSRC/lib/Makefile.in.  (It doesn't look like libvorbisenc needs libm.)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200710180821.135a17b5>