From owner-freebsd-ports@FreeBSD.ORG Mon Jul 1 07:08:08 2013 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 885A0A69; Mon, 1 Jul 2013 07:08:08 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from mail-ie0-x230.google.com (mail-ie0-x230.google.com [IPv6:2607:f8b0:4001:c03::230]) by mx1.freebsd.org (Postfix) with ESMTP id 59941120C; Mon, 1 Jul 2013 07:08:08 +0000 (UTC) Received: by mail-ie0-f176.google.com with SMTP id ar20so8800187iec.35 for ; Mon, 01 Jul 2013 00:08:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=L7c7fpCYHjHTnyCvqzBCjHcxU37y8xFxIfgRAXiGdqw=; b=L6N4shyFxj1KGW4cCXS5gV+SWrl6txQSXfYlckCWNWTMwWvH1T2/SO8kq/r+7wZmna n9IBPKLm+ElEtOI0ehC6YZ4P1dhfsnO3PaUuTBGM5bxXtGDZosGfuSknR0B1j1qLFjje u0GTPZBb4ph0YRNB5EknI/+bWuL4Zi9OZ9/yt2lOREXVZTLm7GMie80wdgBS4Nl/2pZC W25tcuFR5ja5pMPXpw2Wfx4tafiKOia4Klbdd4ITg0I5K3HV/IPjZxrlhcn4RH7HaGLw RmuUxKMPeR+vcanOeRsENJYkz9fbNqtvzeaFvvgwumj7lQH5k/OausXhTRDocMmnfVtk ZWtg== MIME-Version: 1.0 X-Received: by 10.50.134.227 with SMTP id pn3mr10493055igb.26.1372662488009; Mon, 01 Jul 2013 00:08:08 -0700 (PDT) Received: by 10.50.221.179 with HTTP; Mon, 1 Jul 2013 00:08:07 -0700 (PDT) Date: Mon, 1 Jul 2013 02:08:07 -0500 Message-ID: Subject: Re: ports/179236: Build failure (lib-depends) for net/tigervnc when HPJPG is enabled From: Scot Hetzel To: bug-followup@FreeBSD.org, kevinz5000@gmail.com Content-Type: text/plain; charset=ISO-8859-1 Cc: ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jul 2013 07:08:08 -0000 On Sun, Jun 30, 2013 at 10:06 PM, Koichiro IWAO wrote: > Would anyone mind taking ports/179236? > > ports/179236: Build failure (lib-depends) for net/tigervnc when HPJPG is > enabled > http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/179236 > That fix is only covering up the problem. You still won't be able to make a package of tigervnc with libjpeg-turbo (HPJPG) as a dependency on poudriere. The correct fix would be to find all ports that are installing graphics/jpeg and add an option to them to build with graphics/libjpeg-turbo instead. This way poudriere would then be able to create packages linked to the appropriate port (graphics/jpeg or libjpeg-turbo). I looked at the build log, and it looks like the jasper package is the one that is installing graphics/jpeg. To fix graphics/jasper, remove the LIB_DEPENDS line for graphics/jpeg from the Makefile. Add HPJPG to OPTIONS_DEFINE, along with the description: HPJPG_DESC= Build with High-Performance JPEG support Then below the '.include ' line add the following: .if ${PORT_OPTIONS:MHPJPG} LIB_DEPENDS+= turbojpeg:${PORTSDIR}/graphics/libjpeg-turbo .else LIB_DEPENDS+= jpeg:${PORTSDIR}/graphics/jpeg .endif This should fix the jasper port. Then try a poudriere run to see if jasper will build with the HPJPG option enabled. Note: you might find other ports/packages that have a dependency on graphics/jpeg that will need a similar fix. -- DISCLAIMER: No electrons were maimed while sending this message. Only slightly bruised.