Problems with gitup - doesn't delete files / old ports.

N.J. Mann njm at
Sat Apr 24 10:02:23 UTC 2021


I have been using gitup for just over a week (and before that svn and
before that cvsup) to update a local ports tree.  I have encountered
some annoying failures.  I run it from a simple home made script called
from cron at just after 10am local time everyday.  The script basically

  gitup ports >$HOME/var/log/gitup/ports.log 2>&1

and echo's the result code if non-zero.  I seem to be always getting 1.
Checking the logs gitup appears to be having issues with removing files
and even removing deleted ports.  This morning it choked on

gitup: prune_tree: cannot remove /remote/ports/textproc/bsdsort/files: Directory not empty

And, indeed that directory isn't empty:

% ls -lRTtr /remote/ports/textproc/bsdsort       
total 4
-rw-r--r--  1 njm  wheel  915 15 Apr 14:45:35 2021 Makefile
-rw-r--r--  1 njm  wheel  133 15 Apr 14:45:35 2021 distinfo
drwxr-xr-x  2 njm  wheel    4 15 Apr 14:45:35 2021 files
-rw-r--r--  1 njm  wheel  368 15 Apr 14:45:35 2021 pkg-descr

total 3
-rw-r--r--  1 njm  wheel  516 15 Apr 14:45:35 2021 patch-sort.c
-rw-r--r--  1 njm  wheel  221 15 Apr 14:45:35 2021 patch-vsort.h

I checked the handy web interface

and found that this port was removed a few days ago - above URL.

Yesterday, I was trying to update firefox-esr when that failed building
www/node.  From the portmaster log:

  ===>  Patching for node-16.0.0
  ===>  Applying FreeBSD patches for node-16.0.0 from /remote/ports/www/node/files
  Ignoring previously applied (or reversed) patch.
  2 out of 2 hunks ignored--saving rejects to deps/v8/src/objects/
  ===>  FAILED Applying FreeBSD
  ===> Cleanly applied FreeBSD patch(es)  patch-deps_openssl_config_archs_linux-elf_no-asm_openssl-cl.gypi patch-deps_openssl_config_archs_linux-elf_no-asm_openssl.gypi patch-deps_openssl_openssl-cl__no__asm.gypi patch-deps_openssl_openssl__no__asm.gypi patch-deps_v8_src_codegen_ppc_constants-ppc.h
  ===> FAILED to apply cleanly FreeBSD patch(es)
  *** Error code 1

  make[1]: stopped in /remote/ports/www/node
  *** Error code 1

  make: stopped in /remote/ports/www/node

Again checking the friendly web interface I found

that said patch file had been removed four days ago.

So, for me at least, gitup is not reliably removing deleted files and
even deleted ports.

Suggestions, recommendations, patches all welcome.


More information about the freebsd-ports mailing list