From owner-freebsd-ports@FreeBSD.ORG Tue Mar 30 20:25:46 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 37663106566B for ; Tue, 30 Mar 2010 20:25:46 +0000 (UTC) (envelope-from eirnym@gmail.com) Received: from mail-fx0-f225.google.com (mail-fx0-f225.google.com [209.85.220.225]) by mx1.freebsd.org (Postfix) with ESMTP id B096B8FC08 for ; Tue, 30 Mar 2010 20:25:45 +0000 (UTC) Received: by fxm25 with SMTP id 25so175599fxm.3 for ; Tue, 30 Mar 2010 13:25:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:in-reply-to:x-mailer :subject:references:message-id:content-type :content-transfer-encoding:mime-version:date:cc; bh=5e7/Crm4Y7ktk6qwesccIm9ZCKeYPz1WlBDPg4KXpE4=; b=MY5L3lQs4e0bxjU479f4kO7OeG/tnOi2K6y9uFp0LEtnklNmLR6WUvHYBcV03a9Oj8 O/mQij5sMwGzRLgKujH7libZUS6wGf3VZzU+g7uh6tLNyLR22LnUDFomoAsd39+DGocW DT5jKSENLxEV4k49OIonKeb6wuPxdTG/4qIlg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:in-reply-to:x-mailer:subject:references:message-id :content-type:content-transfer-encoding:mime-version:date:cc; b=pAYdSL7nbUmQ2r871NGXKPV5isj2DVnC2dkA3GoOe/tpK3WwHDe2Att/NEF6XpM4aq gOhHj8Vf9pWZnKm4ZXDwaMTQaC/Iz6Si+/4ZJVJzll+stORh1r7AjECLeHSWx826sP8w zLmmfmx/SdorDgVbTDt7IQGFBuHx7UriRqdA0= Received: by 10.103.4.13 with SMTP id g13mr4042425mui.12.1269980742960; Tue, 30 Mar 2010 13:25:42 -0700 (PDT) Received: from [192.168.0.7] ([77.41.31.122]) by mx.google.com with ESMTPS id e9sm25423183muf.10.2010.03.30.13.25.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 30 Mar 2010 13:25:42 -0700 (PDT) From: Arseny Nasokin To: Alexey Shuvaev In-Reply-To: <20100330191416.GB98488@wep4035.physik.uni-wuerzburg.de> X-Mailer: iPhone Mail (7D11) References: <20100330191416.GB98488@wep4035.physik.uni-wuerzburg.de> Message-Id: <2F334A43-634E-4AAC-A144-54200FEE7003@gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (iPhone Mail 7D11) Date: Wed, 31 Mar 2010 00:25:45 +0400 Cc: "freebsd-ports@freebsd.org" Subject: Re: Old ports bugs analyzis X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Mar 2010 20:25:46 -0000 -- With pleasure On 30 Mar 2010, at 23:14, Alexey Shuvaev wrote: > On Tue, Mar 30, 2010 at 01:05:39AM +0400, Eir Nym wrote: >> I work on creating system for system and ports autobuilder with >> custom >> settings for my FreeBSD machines. I know about many programs, which >> do >> same, but I don't like strange depends, which are not controlled by >> OPTIONS and some another >> >> I've analyse ports tree and want to say about. >> There're lot problems with ports to create per-port PRs >> manually.Common types of problems are listed here: >> >> 0) Main part of problems in tons of ports, which has hidden options >> (WITH & WITHOUT checking), but not using OPTIONS for them. >> 1) There many libraries added with BUILD&RUN dependencies, not as >> LIB-DEPENDS. >> 2) Some ports has only BUILD depends to libraries, but links them >> dynamicly. >> 3) All(?) samba33 slaves define dependency as "samba33", and make >> warning me about master target redefinition when do something on >> them. >> 4) many ports define dependencies as >> "${.CURDIR}/../..//" >> 5) And some adds trailing slash. >> >> I want fix these problems, but I have no much time to fix several >> thousands of ports. This work (include PR sending) needs about is 1-2 >> month per 8-10 hours a day. >> > If the problems are so common, maybe there are not so many problems > at all? :) Yes, it's features! Let's all bugs will be features! Do you remember The Bat mail client, which doesn't want support standarts at all? Cases 0, 2, 3 and 4 are bugs. 0: I want to control options via OPTIONS, not by knowledge about Makefile syntax with much time. 2: build port, install, remove lib and get this port unusable. 3: where program should find package orign "samba33"? 4: when reading Makefile, it hard to explain where port is. And when ports tree has changed place in system, it's not good idea to rebuild index. 2, 5 are questions at most. 2: libraries should be LIB_DEPENDS > >> I put my analysys in several work files: >> I've removed ${PORTSDIR} from paths for readability in index files. >> >> http://freebsd.eroese.org/bsd.local.mk - different describe target >> (clean and simple) >> http://freebsd.eroese.org/portInfo.py - py-IDX maker. old, but >> enough version. >> >> http://freebsd.eroese.org/tag - portsnap(8) tag >> http://freebsd.eroese.org/IDX - special maked IDX >> http://freebsd.eroese.org/py-IDX - human readable format of IDX, see >> py program for comments about types. >> > I have tried to understand what is in these files but have not managed > it completely. > > The file py-IDX lists 2 of my ports, devel/slglade and > x11-toolkits/gtkdatabox as being fixed: > fix devel/slglade > fix x11-toolkits/gtkdatabox > > Could you elaborate more what was 'fixed' in these 2 examples? > Thanks, I've striped out debug output from top. I've updated files py-IDX and python program. And also put some documentation in file http://freebsd.eroese.org/docs > Thanks, > Alexey.