From owner-freebsd-ports@freebsd.org Sun Jul 5 14:36:36 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 58D5936CDF3 for ; Sun, 5 Jul 2020 14:36:36 +0000 (UTC) (envelope-from brandon.helsley@hotmail.com) Received: from NAM04-SN1-obe.outbound.protection.outlook.com (mail-sn1nam04olkn0808.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe4c::808]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "GlobalSign Organization Validation CA - SHA256 - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B0B8y54LVz41Qd for ; Sun, 5 Jul 2020 14:36:34 +0000 (UTC) (envelope-from brandon.helsley@hotmail.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XNehvkDbojONi+U1FHgvwA0q4nbFcNxEFwuTmZk9UhXsHv7AQ5gEasG911JFQEDB+3DYHV+8IrRi+wip3XCU4u3LdoiTTMjIjqS1pQ2IFV0r2O76PQIPJCP1FRbhX+uT1+4iLcfV36+iigPCdB52/KGnH1a+GkjJMH83j90cBSGwxTe1TWXRPSyQthXwjCbbAlmQ2r7f+RN8XEccoZpq2TOKubRdbUlei6Q/nVvTbzabS17pG7YcgINhqD3P5yD2gJ9/19IAVz2bn4tvDRAJJCokS456ei6fRt+siA3+EduQBaWDB1zvsmbKi/7zbR/umpCr971AmAqGGZDcSlqQAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mZddWptrJWXm5QmvcS8JXYUgJPpmSwGtOJGtJisBdIE=; b=Abdt+2R4RXrImkgJyjDPWOH2bJsCRw9admFbREX7T1CIn6W4fry5me/blj2dJuuZOjseBUw/2a3Jj/tGUQiTxVqdPX/rYBbd0M+N1Y4B2dgEcBqvHI6rCp/XXdT2aSpbeWnVPQ/iMCeSvhp7pSbveL7wy4cLsrNkE135ttxcFsuzu3REqEefLSVJft6f2xcTWcm97/5teOhG/4ItIh7Gt8EjGIWTVHk8pLudHa0pVHM47paf/tj79mTZ5cCpBIgSd46cc0tDFjmwzimOlpagBBufwmQf5OiHsaM3Kv7sDwDZ03Z1MCs+wZwSpZ8loIjBC4b0voc0gtXBG+8paz78bg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mZddWptrJWXm5QmvcS8JXYUgJPpmSwGtOJGtJisBdIE=; b=ZgPf/DSZj3bwBeG4K+7BPmG/4biXzgTjHUhSpdHNxo8w2s8una0bgTHYDWiVhQDdNh2uWqsW4Kb4fr6l2P/vGZh/LgRIhTQcW7Y0OotdEa6LvmcvwIvah9N4MkzDdxdLHNWctu6HoL+m+2GWVbLs1g+2XVgaiJPGZAFrBv6ZogzOwMvdLfnkWuuFfu0RBuw6th4bmfnZMys3HK85AyPuRBLm7AE43jY8tMLLVoX1jXry8JfZOopiIHZccmOT2aDzNUQ0YrUhMdDgEw+wddSBq8DkaDu7cCZk9qaSxGZvILQydwac3II9MuyMBSrmNFV94zESHVvn17l2FNZfK3OxHw== Received: from CO1NAM04FT051.eop-NAM04.prod.protection.outlook.com (10.152.90.51) by CO1NAM04HT077.eop-NAM04.prod.protection.outlook.com (10.152.91.167) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.28; Sun, 5 Jul 2020 14:36:32 +0000 Received: from CY4PR19MB0104.namprd19.prod.outlook.com (2a01:111:e400:7e4d::53) by CO1NAM04FT051.mail.protection.outlook.com (2a01:111:e400:7e4d::255) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.28 via Frontend Transport; Sun, 5 Jul 2020 14:36:32 +0000 Received: from CY4PR19MB0104.namprd19.prod.outlook.com ([fe80::3cba:126c:494b:642e]) by CY4PR19MB0104.namprd19.prod.outlook.com ([fe80::3cba:126c:494b:642e%3]) with mapi id 15.20.3153.029; Sun, 5 Jul 2020 14:36:32 +0000 From: Brandon helsley To: Jonathan Chen CC: freebsd-ports Subject: RE: Porting Practice Thread-Topic: Porting Practice Thread-Index: AQHWUmKWxKU91Dk26kmDWx70JXV5aqj4LKWAgADhqLg= Date: Sun, 5 Jul 2020 14:36:32 +0000 Message-ID: References: , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:8A2452AF9169939F2DC339641723FAF1021FD073E62F3FDA80DA9BCAF8B64D6B; UpperCasedChecksum:C938855A4618D72495E8439AAFA7BE862DD53AF09E88F8E88E116DA8E4820B02; SizeAsReceived:6948; Count:45 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [OLy8wlN+3Yn8RqpgKKzu7rcGFItkMlGA] x-ms-publictraffictype: Email x-incomingheadercount: 45 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 7cb7aa1f-5535-4332-288e-08d820f0cff6 x-ms-traffictypediagnostic: CO1NAM04HT077: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: +wLCJhhp0UfV7Qynmp+hb6LcUSjTpQ8wNWQQAyAJYJj/6FdtnsLVKW0qBampnKzMC9qP+bRUSJvgyge2lb9prU8tg5wiwSqv5sJLfZ07FQjvQxOksl0hokI26DGsqygyTCCyhcU84fEW1A13QgsD6FTmRi6vhqDpuA83oiciRJ6rYonZqeFg17rkIrwNfeGQDhHIagAgfKa9lFBOCEEjfQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:0; SRV:; IPV:NLI; SFV:NSPM; H:CY4PR19MB0104.namprd19.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:; DIR:OUT; SFP:1901; x-ms-exchange-antispam-messagedata: VoBD7XkyVyAgkv/pk17ERD/TerYaaVBxNoP1s1CG3iEMk7WVwZ2on8TKXr+a7hm12/rhTuII4zlc/RKLMlQWyy+lMwrQ0HwV+oAoMVl4yWAru9kp0SMR3Mi1hCiB5Nq3zZxXFYPBjf5jC5WmQjxtIw== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: CO1NAM04FT051.eop-NAM04.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 7cb7aa1f-5535-4332-288e-08d820f0cff6 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jul 2020 14:36:32.5217 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1NAM04HT077 X-Rspamd-Queue-Id: 4B0B8y54LVz41Qd X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hotmail.com header.s=selector1 header.b=ZgPf/DSZ; dmarc=pass (policy=none) header.from=hotmail.com; spf=pass (mx1.freebsd.org: domain of brandon.helsley@hotmail.com designates 2a01:111:f400:fe4c::808 as permitted sender) smtp.mailfrom=brandon.helsley@hotmail.com X-Spamd-Result: default: False [-5.15 / 15.00]; DWL_DNSWL_NONE(0.00)[hotmail.com:dkim]; NEURAL_HAM_MEDIUM(-1.01)[-1.010]; R_DKIM_ALLOW(-0.20)[hotmail.com:s=selector1]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[hotmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a01:111:f400::/48]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-0.99)[-0.990]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[hotmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2a01:111:f400:fe4c::808:from]; NEURAL_HAM_SHORT(-1.15)[-1.152]; DMARC_POLICY_ALLOW(-0.50)[hotmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[hotmail.com]; ASN(0.00)[asn:8075, ipnet:2a01:111:f000::/36, country:US]; RCVD_TLS_LAST(0.00)[]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1] 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 14:36:36 -0000 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) Im not sure what "original sources" means or "hack it to compile". Really w= ould you please go into more detail about the first three steps and explain= the targets in step five? I understood your first message well and can get= the nvidia-settings.patch placed in /tmp/ but before that step when I am s= upposed to... get the port working in my working directory I get stuck. ________________________________________ From: Jonathan Chen [jonc@chen.org.nz] Sent: Saturday, July 4, 2020 7:07 PM To: Brandon helsley Cc: freebsd-ports Subject: Re: Porting Practice On Sun, 5 Jul 2020 at 12:47, Brandon helsley wrote: > > I have gotten a couple of emails from portscout about ports that need upd= ated and maintained. Before I go about updating and maintaining these ports= I wanted to do some practice on a couple that I use like x11/nvidia-settin= gs. I have recieved alot of help on the forums and from the documentation, = but i'm still at a loss as to how the diff process works. [...] This is my personal workflow: 1. Take a simple copy of the port into my working directory 2. Get the port working in my working directory. 3. cd my-working-directory 4. diff -ruN /usr/ports/x11/nvidia-settings . > /tmp/nvidia-settings.patch 5. submit patch onto bugs.freebsd.org Hope that helps. -- Jonathan Chen