From owner-freebsd-questions@freebsd.org Mon Oct 21 23:21:24 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 A08651646E2 for ; Mon, 21 Oct 2019 23:21:24 +0000 (UTC) (envelope-from clay.daniels.jr@gmail.com) Received: from mail-oi1-x243.google.com (mail-oi1-x243.google.com [IPv6:2607:f8b0:4864:20::243]) (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 46xt1b5MmDz40gF for ; Mon, 21 Oct 2019 23:21:23 +0000 (UTC) (envelope-from clay.daniels.jr@gmail.com) Received: by mail-oi1-x243.google.com with SMTP id d140so8281714oib.5 for ; Mon, 21 Oct 2019 16:21:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=7hWUglUbvTK4cbQb7ir4X/iUnXYUw4KLaC20F7qJCrI=; b=EHhqW6KmtGuYEcA7zf+mhhveLmAVnKEl+onWl0fZPFjZtXPtS+yEz7ibJqR4SYvds3 hMs+rZFKsH+qKxfA6UatTpIUs1GuRdxxHklP7IU57jX3sex0h0z60Xa/6+eUVKseUcTn jhTuboyK6+jKB02mH9Z0mJb/VJMWc0NIzrFV9bofnNq35tqVnAbQjKjuuNvW6ijuIgm5 IUK/yk1r0n2zK5pCvCEYw+e3iJpSUD9aB9nkMzkVzv5z2zlV6T3XmIy7JM/z5kShpX93 prJ9DSB4tOLn8ckToX7JrHh6Lg183Na55MemXLuBR9a7ZF+7iv5aw6702bK0xSFJ9Bq2 /rjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=7hWUglUbvTK4cbQb7ir4X/iUnXYUw4KLaC20F7qJCrI=; b=fyCSs/GLZ1/FarrmLm9iWfMIS114RzdB/Jyu5GBTeJNTMB+P7b9k6Y8BZ4QsioC+Cm fGE6z5S/zU8rFV8JiibinLXBW4pOU3P3d8iazfPljA7rDxrFVPV+4/ojYTQkFI1NmNWd HCi6yCBaQt2bK5ShzEAvuYvI5xLIz0H2aC2b4XTPhZZMdgn0Dr4zcJ0tm4DY3PnvvjmR lw2yPQn67Gn/CB53Fwy8QL6/qlG9CMhJaMQe6/fqaLdEMa3eqopRhvy1XTexhqao1iIB TfC2JNP8AXvQZ37L6DscQ2YPbaWMTZzar7U0WneOf+dDR7TJF9hUQKS7sAtg+I3WYEcf fVZA== X-Gm-Message-State: APjAAAV2uDkIr33X5Tg4OznAEl0MXGBVdEUDQqb5m0p+KC6cqRCjLU2l hki8NxD7z14pCfHQGedUO1j5DrT+/A== X-Google-Smtp-Source: APXvYqx0XhJwQODYsxriq73Ab0/qT0ZSiEQWFRCzQ7Kyl0Ao5udSoN6VMb0yixbvzfOSiHgVfsfsTQ== X-Received: by 2002:aca:3207:: with SMTP id y7mr462614oiy.78.1571700081791; Mon, 21 Oct 2019 16:21:21 -0700 (PDT) Received: from ?IPv6:2600:1700:caa1:a280:f459:fadd:2ef1:66b2? ([2600:1700:caa1:a280:f459:fadd:2ef1:66b2]) by smtp.gmail.com with ESMTPSA id i5sm4553990otk.10.2019.10.21.16.21.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Oct 2019 16:21:21 -0700 (PDT) Subject: Re: How to apply a patch to a port To: Yasuhiro KIMURA , freebsd-questions@freebsd.org References: <20191022.053926.1076439053946694541.yasu@utahime.org> From: Clay Daniels Message-ID: <9ac08912-0415-0830-9381-6df157fe6ab1@gmail.com> Date: Mon, 21 Oct 2019 18:21:19 -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: <20191022.053926.1076439053946694541.yasu@utahime.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 46xt1b5MmDz40gF X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=EHhqW6Km; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of claydanielsjr@gmail.com designates 2607:f8b0:4864:20::243 as permitted sender) smtp.mailfrom=claydanielsjr@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (2.52), 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)[]; 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)[3.4.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: Mon, 21 Oct 2019 23:21:24 -0000 On 10/21/19 3:39 PM, Yasuhiro KIMURA wrote: > Assuming that you don't set WRKDIRPREFIX in /etc/make.conf, take > following steps. No, make.conf does not yet exist. > 1. cd /usr/ports/graphics/drm-current-kmod OK, but should my patch file be here, or do I need to make a /files subdirectory and put it there? > 2. make patch > 3. cd work/kms-drm-2d2852e > 4. patch -p 0 -s -i /path/to/patch/patch-linuxkpi_gplv2_src_linux__page.c > (You may need to change '-p 0' to '-p 1' or '-p 2' or ...) > 5. cd ../.. > 6. make makepatch > 7. make clean > > Then new patch file is created under files subdirectory. Then change back to main port directory & run make install (clean) for the whole port, right? I have just now re-installed a fresh FreeBSD installation. I'm going to wait until I figure out this /files subdirectory. I'm not comfortable with having to create it. Just to look at another port I intend to install later, located at /usr/ports/security/gnupg, it already has a files directory. Thanks > > --- > Yasuhiro KIMURA > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"