From owner-freebsd-questions@freebsd.org Tue Oct 22 08:34:35 2019 Return-Path: Delivered-To: freebsd-questions@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 6069D15434E for ; Tue, 22 Oct 2019 08:34:35 +0000 (UTC) (envelope-from clay.daniels.jr@gmail.com) Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) 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 46y6Ht4Dw9z4Ttd for ; Tue, 22 Oct 2019 08:34:34 +0000 (UTC) (envelope-from clay.daniels.jr@gmail.com) Received: by mail-oi1-x22d.google.com with SMTP id g81so13454589oib.8 for ; Tue, 22 Oct 2019 01:34:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=QV6HjMiYFwcCDTPKrSoPM/zp97N8gmoy3AoqfMxHsQE=; b=hFhsu8CQ1cGwe1gRTeongr82xTyfSL9maeBviVrAaAxcmdXomwNruJ57o/OFNUVKGo sJjWupFseaD+aON8XzyJMdMZTwvkbGS2mQqh5hZ5pimveheIreawEBjDPH8205UNdXvK sPEyxOe2uuKcXqQfGI/w3vGV/Uoh+yWDxEQwHgv86cplUtNdOrjJGv6xjDSX2wc+TACr cSxTmW111izGWof/dXfaLPWgJAbcRlkKUdPHzlzhG3PkiSmVef+QNqExNxyuevM5meJD pU/GCxNuV0Lb0qOJFa4MNAOGYOejdlp7cj/pFz8lSnHN26RikG9C0KswxowBnUQU21LL kD4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=QV6HjMiYFwcCDTPKrSoPM/zp97N8gmoy3AoqfMxHsQE=; b=bga4BnUfkx6y9vwVkr0Ks8ZJdUddCLyUTJSU/oistjT1p+xMKUzvzTRlXH2O9Tf+02 vylVDc5IP7djoCwsYR6AGtAdV3VZhPkvh9B6SWCJX62LCUvqsNeRkcxHHNvJN033MwPw ceYoC1MjYSgQwB59M/x2AjJGMVVZIi0+fE0bBco+EXrd1SOMuytwQ+vr8dz8A86YsH/+ BCAr84NQiXLyn2+vYLeluuRiXhyrpCKXggYgHTJxv5KFU9ehhqAPakKuy/mNuYNskb2o vvejStilYFoDdSFRTPizSv8E/vcOzqcFm9nFwzX51MEulljatktbG0di78UODm+PYiQb 6kQg== X-Gm-Message-State: APjAAAXPRySOS7tfPRnYFbvFNoJCa+5j6/6Kj2CeWsvEiKkYE00+CCgG HL00/ZfiEdUpXBW5LyUMTs3PhyJLtw== X-Google-Smtp-Source: APXvYqwyDLLEuHBUoyuQvO7nWGLkuy5eatTXLctYJUNRJKv/b/+qpT8bRwIHyFqQLsvdhGeU462VCQ== X-Received: by 2002:a05:6808:7cd:: with SMTP id f13mr1823985oij.70.1571733272486; Tue, 22 Oct 2019 01:34:32 -0700 (PDT) Received: from ?IPv6:2600:1700:caa1:a280:e88e:5a7f:1e3f:5fa9? ([2600:1700:caa1:a280:e88e:5a7f:1e3f:5fa9]) by smtp.gmail.com with ESMTPSA id 60sm5095171oto.27.2019.10.22.01.34.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Oct 2019 01:34:32 -0700 (PDT) Subject: Re: How to apply a patch to a port To: Polytropon Cc: Yasuhiro KIMURA , "freebsd-questions@freebsd.org" References: <20191022.053926.1076439053946694541.yasu@utahime.org> <9ac08912-0415-0830-9381-6df157fe6ab1@gmail.com> <20191022.090814.157299176887147047.yasu@utahime.org> <20191022074118.0a08c0ad.freebsd@edvax.de> From: Clay Daniels Message-ID: <36744639-3853-4037-6caa-b0ac49c709ae@gmail.com> Date: Tue, 22 Oct 2019 03:34:30 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: <20191022074118.0a08c0ad.freebsd@edvax.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 46y6Ht4Dw9z4Ttd X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=hFhsu8CQ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of claydanielsjr@gmail.com designates 2607:f8b0:4864:20::22d as permitted sender) smtp.mailfrom=claydanielsjr@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-7.90), ipnet: 2607:f8b0::/32(-2.43), asn: 15169(-2.07), country: US(-0.05)]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[d.2.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Oct 2019 08:34:35 -0000 Thanks Yasuhiro & Polytropon for your help. I was able to apply the patch. This is what I did, once again doing a fresh install first: Read "man patch"! Good stuff! Copied the patch file from a thumbdrive to /root/files. The file looked ok when I used cat to read it. Went to main port directory, ran "make patch" Went to the created /work/work/kms-drm-2d2852e directory, ran patch: "patch -p0 -i /root/files/patch-linuxkpi_gplv2_src_linux__page.c"   (no -s - no need to be silent) Patch dialog asked for the patch file, I entered " linux_page.c" Patch dialog said file not found (as I expected) & asked "Skip [n] ?" , I hit return for default no. Went back up two levels to main port directory, ran "make makepatch" Then ran " make install" , "make clean" The exit message said the package was installed, so I rebooted. The patch did not work as advertised, but I know it was installed as the behavior was different than an install without the patch. The best thing is that I now have a pretty good idea of how to do this, and a better understanding of what I am doing. I will just wait until Friday for the next weekly snapshot of 13.0 Current. Maybe I will try 12.1-RC2 in the meantime. Thanks again, Clay