From owner-freebsd-ports@FreeBSD.ORG Tue Sep 17 15:07:35 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 CC1F1A39 for ; Tue, 17 Sep 2013 15:07:35 +0000 (UTC) (envelope-from spankthespam@gmail.com) Received: from mail-qc0-x22f.google.com (mail-qc0-x22f.google.com [IPv6:2607:f8b0:400d:c01::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8E19E2B46 for ; Tue, 17 Sep 2013 15:07:35 +0000 (UTC) Received: by mail-qc0-f175.google.com with SMTP id v2so3629314qcr.20 for ; Tue, 17 Sep 2013 08:07:34 -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:cc :content-type; bh=Hoac3grRBPa9i2gJzzHHtOtcoUjblKILWb/DWNzu0b4=; b=x9DwoXyzYICa1skMXQh58yS2gv2LJ9/SJCqOwOmBERCX3hcZLPqMqvN9s6rwZZqI1m p79NZ2PxXhCcKZ8znBl5sTah+ElwnmzK0/wMwBpsMb6BYmhrm9WUN1YObRbk0SHAp1He mn9h/tlXQR6nlJ/aDBfZ79oASSUqGb/XY/Pk7NpxcNcP3zccPc8C4l7F1tkqKPKEklhS SEuukBaW/A8KtwruzSbhluJTv2xphhYyENVzYT+Giny84mgF4+EknDYz91pSaXZkLb4h AWMLnku6GRAmQWO5v7XXpcqAoV1tsuEEnswUdVRrVv5eeBp5d1snAePOw0SkiMVF4Bz3 KNdA== MIME-Version: 1.0 X-Received: by 10.224.165.18 with SMTP id g18mr7339405qay.6.1379430454656; Tue, 17 Sep 2013 08:07:34 -0700 (PDT) Received: by 10.229.205.71 with HTTP; Tue, 17 Sep 2013 08:07:34 -0700 (PDT) In-Reply-To: References: Date: Tue, 17 Sep 2013 16:07:34 +0100 Message-ID: Subject: Re: How to correctly generate pkg-plist From: SpamMePlease PleasePlease Cc: freebsd-ports Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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 15:07:35 -0000 Thanks a lot! I've already found this: http://marc.info/?l=freebsd-ports&m=103181482210620&w=2 and I am following that, succesfully for now. Is is a viable solution for this problem? Kind regards, S. On Tue, Sep 17, 2013 at 7:00 AM, joris dedieu wrote: > 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" >