I installed porg-0.10 on two environment. On gcc-8.1.1/libc-2.27 environment, it work well. But on gcc-8.2.1/libc-2.28 environment, porg does not handle mv
event.
0.10
curl --silent --location --fail --retry 6 http://downloads.sourceforge.net/porg/porg-0.10.tar.gz | tar xz && \ cd porg-0.10 && \ ./configure --prefix=/usr --sysconfdir=/etc --disable-grop && \ make DESTDIR=/ install
mkdir dir0 && \ touch dir0/file0 && \ porg --log --package=dir0 -- mv dir0 /opt/.
porg: dir0: No files to log
I am not sure gcc and glibc version is the root cause though, both two config.log
are attached.
I think the reason is that mv uses the new function renameat2, which has been introduced in glibc-2.28, if available. I attach a patch that fixes the testcase for me. Note: run
autoreconf -fi
after applying the patch.