From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jun 5 21:20:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.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 CC6BF36E for ; Wed, 5 Jun 2013 21:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id B43E811FE for ; Wed, 5 Jun 2013 21:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r55LK0Gr043678 for ; Wed, 5 Jun 2013 21:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r55LK0j0043666; Wed, 5 Jun 2013 21:20:00 GMT (envelope-from gnats) Resent-Date: Wed, 5 Jun 2013 21:20:00 GMT Resent-Message-Id: <201306052120.r55LK0j0043666@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Rene Ladan Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4E6BD363 for ; Wed, 5 Jun 2013 21:19:54 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) by mx1.freebsd.org (Postfix) with ESMTP id 266E411F7 for ; Wed, 5 Jun 2013 21:19:54 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r55LJscs055767 for ; Wed, 5 Jun 2013 21:19:54 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r55LJsld055764; Wed, 5 Jun 2013 21:19:54 GMT (envelope-from nobody) Message-Id: <201306052119.r55LJsld055764@oldred.freebsd.org> Date: Wed, 5 Jun 2013 21:19:54 GMT From: Rene Ladan To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/179354: sysutils/hourglass: remove optional dependency on devel/linuxthreads X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jun 2013 21:20:01 -0000 >Number: 179354 >Category: ports >Synopsis: sysutils/hourglass: remove optional dependency on devel/linuxthreads >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Jun 05 21:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Rene Ladan >Release: FreeBSD 9.1-amd64 >Organization: >Environment: Ports Tree at revision 320012 >Description: sysutils/hourglass optionally depends on devel/linuxthreads, which is expired. Remove the WITH_LINUXTHREADS knob from the Makefile. While here: - convert Makefile header - Tighten COMMENT - Use PORT_OPTIONS:MDOCS instead of NOPORTDOCS, adjust include files. >How-To-Repeat: `Tools/scripts/rmport devel/linuxthreads` finds this port. >Fix: Patch attached with submission follows: Index: Makefile =================================================================== --- Makefile (revision 320012) +++ Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: hourglass -# Date created: 23 March 2004 -# Whom: olive -# +# Created by: olive # $FreeBSD$ -# PORTNAME= hourglass PORTVERSION= 1.0.1 @@ -12,7 +8,7 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}b MAINTAINER= jadawin@FreeBSD.org -COMMENT= A real-time application useful to learn how CPU scheduling works +COMMENT= Real-time application to learn how CPU scheduling works RUN_DEPENDS= jgraph:${PORTSDIR}/graphics/jgraph @@ -22,15 +18,9 @@ PLIST_FILES= bin/busy bin/hourglass PORTDOCS= CALIBRATION -.include +.include -.if defined(WITH_LINUXTHREADS) -THREAD_LIBS= -L${LOCALBASE}/lib -llthread -llgcc_r -THREAD_CFLAGS= -D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads -LIB_DEPENDS+= lthread.3:${PORTSDIR}/devel/linuxthreads -.else THREAD_LIBS= -pthread -.endif post-patch: @${REINPLACE_CMD} -e 's,%LOCALBASE%,${LOCALBASE},g' \ @@ -41,11 +31,11 @@ ${WRKSRC}/configure post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} . for doc in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} . endfor .endif -.include +.include >Release-Note: >Audit-Trail: >Unformatted: