From owner-freebsd-ports@FreeBSD.ORG Sat Aug 2 16:46:32 2014 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 ESMTPS id 544E9812 for ; Sat, 2 Aug 2014 16:46:32 +0000 (UTC) Received: from mail-ob0-x22c.google.com (mail-ob0-x22c.google.com [IPv6:2607:f8b0:4003:c01::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1DF4E247D for ; Sat, 2 Aug 2014 16:46:32 +0000 (UTC) Received: by mail-ob0-f172.google.com with SMTP id wn1so3472014obc.17 for ; Sat, 02 Aug 2014 09:46: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:from:date:message-id:subject:to :cc:content-type; bh=CUMpJJSjXfgHFUqbxphHufGsujUdd5E8YQNuCxhPZro=; b=vBI35sjI2KTOgy8fmZZinK/3xB2/o+KnclxrBDSphgkcl/a9B1h0NFdxob09Tr4q7e RWtXDbguToA7uH/s99eZjKl5gB4VLfpn+WDvrhuRV/OVKxYj4AL7tN8nHco7/77jmUzg VU4rDB8b2E3cISCxqp7VOIqyiIh92ORfpZHIU9HCBT/13hoCgVoo2Pk90MZ8WgDqYrse 0+G+0QJCF9KEjMRLaUoj74+NcPDNuPOnKjA7VZ9RTj7gLb2UZZZw0i9syYRWDjMpsAFZ J6w653C/8saf0zjBjd10/yxzc4cEjkxpLstc4dvl8ycZ35/6/uUKf7d0qVJFTb0O2Y0D szgg== X-Received: by 10.60.34.98 with SMTP id y2mr19139805oei.9.1406997991488; Sat, 02 Aug 2014 09:46:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.175.230 with HTTP; Sat, 2 Aug 2014 09:45:51 -0700 (PDT) In-Reply-To: <20140802141819.GH2644@home.opsec.eu> References: <4443341.EiikNYngQK@quad> <20140802133153.GG2644@home.opsec.eu> <1637580.MU5nyUnjPH@quad> <20140802141819.GH2644@home.opsec.eu> From: Dreamcat4 Date: Sat, 2 Aug 2014 17:45:51 +0100 Message-ID: Subject: Re: devel/stlink To: Kurt Jaeger Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: Maxim V FIlimonov , ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Aug 2014 16:46:32 -0000 On Sat, Aug 2, 2014 at 3:18 PM, Kurt Jaeger wrote: > > > Can you tell me where I get urllib2 for python on an 10.0-amd64 ? > > > > > > f10$ ./latest.sh > > > Traceback (most recent call last): > > > File "getlatest.py", line 1, in > > > import urllib2 > > > ImportError: No module named 'urllib2' > > > > Ah, I see, in my case it was installed with python27: > > $ pkg which /usr/local/lib/python2.7/urllib2.py > > /usr/local/lib/python2.7/urllib2.py was installed by package > python27-2.7.8 > > Thanks. Now, frankly, I have no easy idea on how to integrate this > "get the latest from github" into a proper port. > Probably some /usr/ports/Mk/ magic needs to be created for this > to work in general. > It is always possible to download HEAD using this distfiles URL: https://github.com/${PORTNAME}/${PORTNAME}/archive/master.tar.gz The problem with doing that is then you must disable the checksum "distinfo". There is no way to know what the hash of such archive file is supposed to be. Since that archive file itself is being dynamically generated from the most recent commit... That is probably why all Ports (using master branch on github) are fixed to some specific GH_COMMIT. Then from time-to-time you have to move up the notch. Good source code projects on github may maintain a 'stable' tracking branch. Which makes updating the GH_COMMIT safe and very easy process. Of course, that doesn't necessarily matter for data repositories, which may be safe to use the latest master / HEAD always. Would it be sufficient if we just commit the current "state", > explain the process in the pkg-message and provide your scripts > latest.sh and getlatest.py with a stlink-related name ? > > I know this is not purrrrfect 8-} > > -- > pi@opsec.eu +49 171 3101372 6 years to > go ! > _______________________________________________ > 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" >