What am I forgetting?

Gerben Wierda gerben.wierda at rna.nl
Tue Aug 13 08:25:08 UTC 2019


Thanks Mojca,

> On 13 Aug 2019, at 03:22, Mojca Miklavec <mojca at macports.org> wrote:
> 
> On Tue, 13 Aug 2019 at 01:24, Gerben Wierda <gerben.wierda at rna.nl> wrote:
>> 
>> I have my own cloud git directory tree
>> I cd to $thattree/net/unbound
>> I edit the Portfile (startupitem), set revision to 1 (there was no revision)
>> I run sudo port install unbound
>> It is not built and installed as nothing has changed (but there has)
>> 
>> What am I forgetting?
> 
> Did you add your local git checkout to configuration as your local
> repository with higher preference?
>    https://guide.macports.org/chunked/development.local-repositories.html
> Check this with
>    port dir unbound

I did edit sources.conf. It contains:

file:///Users/sysbh/MacPortsDev
rsync://rsync.macports.org/macports/release/tarballs/ports.tar [default]

But whatever is in there, port dir unbound gets met the standard repository.

Albus:nsd sysbh$ port dir unbound
/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/net/unbound

So, als with

file:///Users/sysbh/MacPortsDev/macports-port
rsync://rsync.macports.org/macports/release/tarballs/ports.tar [default]


> If not, "sudo port install" or "sudo port upgrade" (without port name)
> or "sudo port install subport=unbound" should take the port from the
> current dir,

I edited the Portfile /Users/sysbh/MacPortsDev/macports-port/net/nsd/Portfile again, set the revision to 6 and ran ’sudo port install’ while in directory /Users/sysbh/MacPortsDev/macports-port/net/nsd and this worked.

> but "sudo port install unbound" will probably take the
> one that's configured globally and returned by "port dir unbound”.

That seems to be the case.

Albus:nsd sysbh$ pwd
/Users/sysbh/MacPortsDev/macports-ports/net/nsd
Albus:nsd sysbh$ port dir
/Users/sysbh/MacPortsDev/macports-ports/net/nsd
Albus:nsd sysbh$ port dir nsd
/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/net/nsd

So, if you give the name of the port, it will use the main repository. You need to explicitly not give the name to get the local Portfile. This is somewhat surprising behaviour (for me at last) that I have to leave out the name of the thing to get the thing.

Now, the only thing I have to do is to find a way to get my local revision back to 1, before I submit the patch. I have installed

Albus:nsd sysbh$ port installed
The following ports are currently installed:
  expat @2.2.7_0 (active)
  flex @2.6.4_0 (active)
  gettext @0.19.8.1_2 (active)
  libevent @2.1.10_0 (active)
  libiconv @1.16_0 (active)
  m4 @1.4.18_2 (active)
  ncurses @6.1_0 (active)
  nsd @4.1.22_0
  nsd @4.1.22_1
  nsd @4.2.1_0
  nsd @4.2.1_1
  nsd @4.2.1_2
  nsd @4.2.1_3
  nsd @4.2.1_5
  nsd @4.2.1_6 (active)
  openssl @1.0.2s_0 (active)
  unbound @1.9.2_0
  unbound @1.9.2_1 (active)
  zlib @1.2.11_0 (active)

If my update gets accepted, that would mean it would be revision 6. Is that bad? The revisions all come from my local tinkering because I know not how to force a build without changing revision.

I also want to clean up my installed versions. So nsd becomes

  nsd @4.2.1_0
  nsd @4.2.1_1 (active)

with that last one actually the current revision 6. How do I do that?

G


> 
> Mojca

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20190813/e0c9f368/attachment.html>


More information about the macports-users mailing list