From owner-freebsd-ports@freebsd.org Sun Jul 5 05:33:37 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D92DF361704 for ; Sun, 5 Jul 2020 05:33:37 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from mail-ot1-x333.google.com (mail-ot1-x333.google.com [IPv6:2607:f8b0:4864:20::333]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49zy6T0rqvz4Vkv for ; Sun, 5 Jul 2020 05:33:36 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: by mail-ot1-x333.google.com with SMTP id 95so18734011otw.10 for ; Sat, 04 Jul 2020 22:33:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chen-org-nz.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8PV2AmgjFP0/uiqjNcg/BJAQufJSpeWf5aOAI5JALbE=; b=1A12EEWAZn4/PMOUBYdlOvXrfB8ivrrdFwMkofEOFI9r729/vhAEOJ8JnXVz6F2ziB z0aqyuJ30B7DPdBBUnBz4Y+NMPpCA0Y+BjP+XGhjixhfSSOzwUrin72OJ+xIhDWi7YaO mvXA0BYxnVg22VDeqy3GrqvKTFVVsmskOfQ3DmVTc3+PexCB+3Ut8818oyhQgCWlqtOr VbY2HvVTkajVWYxLz8Sg8yJy1UJkvNWT5n2D6CX4h7u9Vrqalav+WGc22mm9NPNQWFDH GyrvqJ5WSVTmA4XCN+JCCk9h8lqFkFmMjg/+8PUQpJSjxuwGXAeGH5vdpso2xEp5CzpM OOYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8PV2AmgjFP0/uiqjNcg/BJAQufJSpeWf5aOAI5JALbE=; b=YpeKWubtoM39qJErO/vZ7/RdoxfsU08nH/eIh6CSYfqXd4PO0y//NZ29Pc9tqpp5MU Rpqvanrj2FirgRdqARfBFZMVdihBhrwxLGZUEc0/HIjNhJo+EqS+HUM6bBOiCXkdScc6 fvTt//Y7H794xzyu0gHHBPsEMUDKPVedrX8PAa/rNW7MLM8k8+DNUpkFNC6gANMZZ3Oo cDJkOojqjO/znNADtA8Q5o8OYxuJFJFXL2GZzx735+FN6UbhLaj69T6RKE3KSIBmKOwK 1eCIHhgZtNNHw6ZYUxNSJZIkFjF/9cdCpMK+K+hwsPSaDbVmDK5iyR2/UPAtwi4Urfpy 4kPQ== X-Gm-Message-State: AOAM530UL33goDEzM6DyraasHai7pSwzHbn9d1TAnpnIbIkxVHw40PoK +KuakaVDf0aZlcBBtMvoJ2k3O3W0REjltyeCMsdqWQ== X-Google-Smtp-Source: ABdhPJwnGKlEk4vjZWvAtHzoRC78fC6plev055B2zLqQd/xLB7dO5iA6Pmxi0H8IoN/iKLfbSa/y22dcR0A7YV/nG9M= X-Received: by 2002:a9d:7c8:: with SMTP id 66mr35255633oto.169.1593927215288; Sat, 04 Jul 2020 22:33:35 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Chen Date: Sun, 5 Jul 2020 17:33:19 +1200 Message-ID: Subject: Re: Porting Practice To: Brandon helsley Cc: freebsd-ports Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 49zy6T0rqvz4Vkv X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chen-org-nz.20150623.gappssmtp.com header.s=20150623 header.b=1A12EEWA; dmarc=none; spf=softfail (mx1.freebsd.org: 2607:f8b0:4864:20::333 is neither permitted nor denied by domain of jonc@chen.org.nz) smtp.mailfrom=jonc@chen.org.nz X-Spamd-Result: default: False [-2.03 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.92)[-0.921]; R_DKIM_ALLOW(-0.20)[chen-org-nz.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.16)[0.158]; NEURAL_HAM_LONG(-0.97)[-0.966]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; DMARC_NA(0.00)[chen.org.nz]; R_SPF_SOFTFAIL(0.00)[~all]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[chen-org-nz.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::333:from]; FREEMAIL_TO(0.00)[hotmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jul 2020 05:33:37 -0000 On Sun, 5 Jul 2020 at 14:06, Brandon helsley wrote: [...] > > Yes it does, I understand how it works now, I just needed an example, and I can compare this with other methods to figure it out. How do you get the port working in your directory? In general: 1. extract the original sources elsewhere 2. hack it to compile 3. compare the hacks against the original sources again to generate diffs. 4. put the diffs into the files/ directory of the port 5. Tweak the Makefile for all targets (fetch, extract, build, stage, etc) Cheers. -- Jonathan Chen