From owner-freebsd-ports@freebsd.org Mon Jul 6 21:41:32 2015 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F24C99952FF for ; Mon, 6 Jul 2015 21:41:32 +0000 (UTC) (envelope-from tingox@gmail.com) Received: from mail-la0-x230.google.com (mail-la0-x230.google.com [IPv6:2a00:1450:4010:c03::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 85C191B5A for ; Mon, 6 Jul 2015 21:41:32 +0000 (UTC) (envelope-from tingox@gmail.com) Received: by lagc2 with SMTP id c2so170853654lag.3 for ; Mon, 06 Jul 2015 14:41:30 -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 :content-type; bh=scFDV5gUd5GGohX3BdfDFnX/3ShxWZuLJxCAhULw+og=; b=rwJfw7nvEtkT2HgaljeuceXuSKYSfZ+iPyz0mqEW0gwswa91E90Na4OHspX0L2oVAi 5u/ZtMbedtQczaGG79/SCJkwIbwXtcLbd6SzreHOclqNQrZmdkyPdKwFskqVhBt0sPkh scUgMfVifnCiiqftro/rlMCccaC7QZsVb8q00aazHxTZiSEqjrAB2SbgbEdN8MgQnsur OvHkx+M3zrhVsCK+sE/uuCMsUsflHlNLjhftrEM1bKPuGs1fvaPw1HbnGWaE8QrsaG35 eHtfT+03+JSWKHFWDADQ4syG9aCBEiWfzBmXvhNNbhfi53mRnmsf2330a2omxtnj2Ry4 oc5g== MIME-Version: 1.0 X-Received: by 10.112.42.50 with SMTP id k18mr841103lbl.76.1436218890434; Mon, 06 Jul 2015 14:41:30 -0700 (PDT) Received: by 10.25.22.207 with HTTP; Mon, 6 Jul 2015 14:41:30 -0700 (PDT) In-Reply-To: <201507061421.t66ELHjg053993@mech-as222.men.bris.ac.uk> References: <201507061421.t66ELHjg053993@mech-as222.men.bris.ac.uk> Date: Mon, 6 Jul 2015 23:41:30 +0200 Message-ID: Subject: Re: help update cad/z88 port From: Torfinn Ingolfsen To: FreeBSD Ports ML Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jul 2015 21:41:33 -0000 On Mon, Jul 6, 2015 at 4:21 PM, Anton Shterenlikht wrote: > The PR provides a patch to update the new location > of the disfile and a new distinfo accordingly. > > I cannot figure out how the patch files should be updated > after make extract. I tried, but got lost in paths so > I cannot apply even the first patch cleanly. > This is what I need help with. It also seems that the > code structure might have changed, so the build process > might have to change too. But for now I just want to > update all patches under files. > Aha, because of this: ===> Found saved configuration for z88-14.0_1 ===> z88-14.0_1 depends on file: /usr/local/sbin/pkg - found => z88v14os_english.tar.gz doesn't seem to exist in /usr/ports/distfiles/z88. => Attempting to fetch http://download.z88.de/z88os/z88v14os_english.tar.gz z88v14os_english.tar.gz 100% of 61 MB 739 kBps 01m26s ===> Fetching all distfiles required by z88-14.0_1 for building ===> Extracting for z88-14.0_1 => SHA256 Checksum OK for z88/z88v14os_english.tar.gz. ===> Patching for z88-14.0_1 ===> Applying FreeBSD patches for z88-14.0_1 File to patch: In general, when a new release introduces major changes in a program, you might have to start over. So in this case, it might be better to start with an empty files directory and then add to it as you find it necessary. The same goes for the post-patch and other targets in the Makefile; they must be adapted to the new release. In general, you create a patched version of a source file, then you use a tool (I used patchtool[1]) to create the patch and put it into the files directory for you. Repeat until the program compiles. Test, fix and repeat until the program works. This requires human help, there are no tools which can do all of this automatically. References: 1) /usr/ports/Tools/scripts/patchtool.py -- Regards, Torfinn