From nobody Mon May 16 18:22:10 2022 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8AAA81AE692E for ; Mon, 16 May 2022 18:22:15 +0000 (UTC) (envelope-from pat@patmaddox.com) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4L26zV6CfHz4jMS for ; Mon, 16 May 2022 18:22:14 +0000 (UTC) (envelope-from pat@patmaddox.com) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 180F65C01B5; Mon, 16 May 2022 14:22:14 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 16 May 2022 14:22:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=patmaddox.com; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1652725334; x= 1652811734; bh=Ic0BnD2lbES3aUadpvg7sVrASealv1HwzOu+jUU/Yko=; b=L /xTcq0YJvEe7geIwoFez3Au4Rq6u40Cxa/Lf+RdPVm9enKvMjBNSG1MkBIgkBzSf TYscV0SA/IkhTYxwriSWKNaHD3nkpcSf02rWd/ai+YKEUcmAKqbahDLxMdZCxb5V +yifsjuVHhrXpZ4wiya4ug1bZ7C9c48oNo+AKvs+H3ytnbK7bHl5OhbTMvwpXnZn 3/rC0Qrmu7HmNB3pTaiID4eMmi2QNgpE0WHRrMc8MqT0cIvjt0BGRXjgX6sQfo4W K5Tbo+sz40Jp+Sf/ppJGvM4f2ruQosbZ6scpVVeBuDXPHp3zYyuNMmLNsC7Cu6/S SvwuckH33lJx0xLC7E/2g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1652725334; x=1652811734; bh=Ic0BnD2lbES3a Uadpvg7sVrASealv1HwzOu+jUU/Yko=; b=QWUS6M7Mz19RvX/atSYPNTsi1xadm yC1h726LwOWYiv648HMBzNwfA2erRaw3no2ShTPxqOLbW62hMntz/znvstSWXi/X QBq82T5tGpiQZzsIq7TWf7JZrOH7sYzZtn30+y5df6OUIxeJJwcpcujhW0TcWOGU M/1YSSMBKDOjNGwLue7UI+u1no10/4jORI/kQWS//8jaZ35fIWZTp3FgUmqEn/RU jlD/ngyC5Y3ONDTKsEYSMzM71A3olZzThQwZZUrNvmAYg83stN6pU3vRNMnbiCJZ XwDu4KU7Ri/epXs7MS90yvz/8eZk26ykERaZaGtH2tvJ2Cx7YlFyaWdpA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrheehgdduvddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffokfgjfhggtgfgsehtqhhmtdertdejnecuhfhrohhmpedfrfgr thcuofgrugguohigfdcuoehprghtsehprghtmhgrugguohigrdgtohhmqeenucggtffrrg htthgvrhhnpeeufeeijeetfeetfefggefhfffghfdvhffggefgjeefieeukeevfeffudej jeeitdenucffohhmrghinhepghhithhhuhgsrdgtohhmpdhfrhgvvggsshgurdhorhhgne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgrthes phgrthhmrgguughogidrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 16 May 2022 14:22:13 -0400 (EDT) From: "Pat Maddox" To: "Milan Obuch" Cc: "Tatsuki Makino" , freebsd-ports@freebsd.org Subject: Re: How to override port Makefile to point to local directory? Date: Mon, 16 May 2022 11:22:10 -0700 X-Mailer: MailMate (1.13.2r5673) Message-ID: <931F458E-86D3-4EA2-826B-E725EC7AB99F@patmaddox.com> In-Reply-To: <20220516104032.6aac9448@gpdm.dino.sk> References: <24d0482cd89dd98aa75fc9c89aa00201@bsdforge.com> <0037487A-4778-4D37-9A12-BBE0E58F9CB4@patmaddox.com> <20220516104032.6aac9448@gpdm.dino.sk> List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4L26zV6CfHz4jMS X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=patmaddox.com header.s=fm3 header.b="L /xTcq0"; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=QWUS6M7M; dmarc=none; spf=pass (mx1.freebsd.org: domain of pat@patmaddox.com designates 66.111.4.29 as permitted sender) smtp.mailfrom=pat@patmaddox.com X-Spamd-Result: default: False [-2.66 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.29]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[patmaddox.com:+,messagingengine.com:+]; NEURAL_HAM_SHORT(-0.06)[-0.063]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:19151, ipnet:66.111.4.0/24, country:US]; SUBJECT_ENDS_QUESTION(1.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.29:from]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[patmaddox.com:s=fm3,messagingengine.com:s=fm1]; FREEFALL_USER(0.00)[pat]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[patmaddox.com]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MLMMJ_DEST(0.00)[freebsd-ports]; FREEMAIL_CC(0.00)[hotmail.com,freebsd.org] X-ThisMailContainsUnwantedMimeParts: N On 16 May 2022, at 1:40, Milan Obuch wrote: > On Sun, 15 May 2022 23:55:43 -0700 > "Pat Maddox" wrote: > >> On 15 May 2022, at 23:25, Tatsuki Makino wrote: >> >>> Hello. >>> >>> Pat Maddox wrote on 2022/05/16 15:08: >>>> I figure there=E2=80=99s gotta be some sort of `make SRCDIR=3D. inst= all` to >>>> bypass fetch & extract, but this will do for now. >>>> >>> >>> Is it a variable DISTDIR or PACKAGES? >>> >>> If you write the following in /etc/make.conf, you can use a >>> different location only for certain port. >>> >>> .if !empty(.CURDIR:tA:M/home/you/DEV//port-im-developing) >>> DISTDIR=3D /home/you/dir_for_src >>> PACKAGES=3D /home/you/dir_for_put_pkg >>> WRKDIRPREFIX=3D /tmp/wrkdir >>> .endif >>> >>> Regards. >> >> That still downloads the zip file, but to a different directory. >> >> The code for my application is in ~/dev/ports-mgmt/disport. >> >> So instead of make trying to download a zip and extract it, I want to >> tell it to get the code from ~/dev/ports-mgmt/disport. >> >> Pat >> > > Hi, > > maybe Pat wants Makefile targets do-fetch and do-extract, these are- > *replacing* standard fetch and extract actions. I am using it for > fetching some branch to test from local repository: > > do-fetch: > @echo nada > > do-extract: > @git -C ${GIT_DIR} worktree add -d ${WRKSRC} ${GIT_BRANCH} > > In this case, NO_CHECKSUM=3DYES is probably needed as well. > > Similarly, instead of git, you could use cp, tar or anything you like. > > Hope this helps... > > Regards, > Milan Based on a forum suggestion [1], I worked out that I can zip up my src = directory and stick it in a local files repo. Then override GH_TAGNAME = and MASTER_SITES when building locally. Here=E2=80=99s the script that do= es = the job: = https://gist.github.com/patmaddox/d5d8a0e0df656072749bf18f7f634ae9#file-b= uild-sh I thought perhaps I could point make to a specific src directory, but it = seems that it absolutely requires a zip file. Easy enough. Pat [1] = https://forums.freebsd.org/threads/how-to-override-port-makefile-to-point= -to-local-directory.85180/post-567203