From owner-freebsd-ports@FreeBSD.ORG Tue Sep 17 06:00:33 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5F0B27ED for ; Tue, 17 Sep 2013 06:00:33 +0000 (UTC) (envelope-from joris.dedieu@gmail.com) Received: from mail-lb0-x22b.google.com (mail-lb0-x22b.google.com [IPv6:2a00:1450:4010:c04::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E28AE2CB6 for ; Tue, 17 Sep 2013 06:00:32 +0000 (UTC) Received: by mail-lb0-f171.google.com with SMTP id u14so4975306lbd.16 for ; Mon, 16 Sep 2013 23:00:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=gMcr2F10+LuKKiYgbgatCYHOaq4dJ113jhCAHCXEZVM=; b=ydpZC8ZfdfGc7Ms+gRVbUI7lRkmsv+kglT2pAz8UH0WHrePK7rNVsx6q6POq5b0UJ0 MhLaAYjpca0zokzuoNv0Y9BLfyIeNygTdy4vKkgNgtppbJtStCr0oA4PYxHwbvGdba0/ AnP92C6pHgtoh5Hz/iU6OaXmCCa7+w636Qv07Eqsh9qYi0aFpPcuQ9P6Nb7QpVWiXtlH 6mGJpEhdzmqTX5QoT95SYbtE+/CnTvgCiPYKv/Zfut2DG11omohOxbNToLEn6hFWp7b3 XvM3x0vqSs5IWQwRm72PbyDGd7XUx+vXpZlTRSIUZ5ufirsaIR4T7FIKfTGqroIh2rnN FMDw== MIME-Version: 1.0 X-Received: by 10.152.29.201 with SMTP id m9mr28708769lah.6.1379397631015; Mon, 16 Sep 2013 23:00:31 -0700 (PDT) Received: by 10.114.22.99 with HTTP; Mon, 16 Sep 2013 23:00:30 -0700 (PDT) In-Reply-To: References: Date: Tue, 17 Sep 2013 08:00:30 +0200 Message-ID: Subject: Re: How to correctly generate pkg-plist From: joris dedieu To: SpamMePlease PleasePlease Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-ports 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: Tue, 17 Sep 2013 06:00:33 -0000 2013/9/14 SpamMePlease PleasePlease : > Hi, > > I am writing new port that compiles and installs huge number of Erlang > libraries. Everythig is working fine until there's a need of deinstallation > or to make package - the problem is that the user might have older Erlang > version (for example, coming from ports unpacked during installation from a > cd) and when compiled with such Erlang, everything will be working, except > for the fact that older Erland will compile different versions of > libraries, and therefore my 2000 lines long pkg-plist will no longer be > valid. I thought I can remedy that simply by not listing the lib names and > their dir paths to avoid such situation, but to use @unexec ${RM} -rf > lib/portname, but then there's a problem with make package, that is not > containing all required and compiled libs. > > How to solve that situation? General idea for complex plist handeling is to use a dynamic plist. I think java/eclipse is a good example. See also http://www.freebsd.org/doc/en/books/porters-handbook/plist-dynamic.html for further discussion on static vs dynamic plist. Joris > > Regards, > S. > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"