From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: [Patch 1/10] Add pjproject. Date: Thu, 22 Sep 2016 04:46:14 +0200 Message-ID: <87bmzg8xe1.fsf@elephly.net> References: <87mvjc1quq.fsf@openmailbox.org> <87inu01qsj.fsf@openmailbox.org> <87shswmj48.fsf@elephly.net> <87oa3j870k.fsf@openmailbox.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36753) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmu1s-0005oD-I0 for guix-devel@gnu.org; Wed, 21 Sep 2016 22:46:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmu1o-0007vy-Dq for guix-devel@gnu.org; Wed, 21 Sep 2016 22:46:27 -0400 Received: from sender163-mail.zoho.com ([74.201.84.163]:21331) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmu1o-0007vT-3j for guix-devel@gnu.org; Wed, 21 Sep 2016 22:46:24 -0400 In-reply-to: <87oa3j870k.fsf@openmailbox.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Lukas Gradl Cc: guix-devel@gnu.org Hi Lukas, Thanks for sending an updated patch! >>> +(define-public pjproject-sfl >>> + (let ((sfl-patches >>> + (let ((commit "3dbedf53e9cceebb1eed155b5143026f6d253cb8")) >>> + (origin >>> + (method git-fetch) >>> + (uri >>> + (git-reference >>> + (url >>> + "https://gerrit-ring.savoirfairelinux.com/ring-daemon.git") >>> + (commit commit))) >>> + (file-name (string-append "sfl-patches" "-" "0.0.0-1." >>> + (string-take commit 7) "-checkout")) >>> + (modules '((guix build utils) >>> + (ice-9 ftw))) >>> + (snippet >>> + '(let ((files (scandir "." (lambda (file) >>> + (if (or (string=? file ".") >>> + (string=? file "..")) >>> + #f >>> + #t))))) >>> + (mkdir-p "sfl-patches") >>> + (copy-recursively "contrib/src/pjproject/" "sfl-patches") >>> + (for-each delete-file-recursively files))) >> >> Why is this needed? > > My idea here is the following: The source tree downloaded here contains > the complete source for libring, which includes the patches to > pjproject. In this snippet I try to get rid of all the other libring > files that are not needed and only keep the patches to pjproject. Then > I try to make the directory tree that contains these patches as shallow > as possible. I remember I had some problems with copying them to "." > but trying again now it works. I attached an updated patch that does > this. Is there no release that includes these patches? Why do we have to apply them ourselves? In Guix we try to avoid patching upstream sources with functional patches (as opposed to patches that fix problems with building the software on Guix), as this is really upstream’s work. Is this really pjproject version 2.4 when we apply a massive patch set like that? ~~ Ricardo