[Rpm-maint] [PATCH] Link testing/usr/bin to testing/bin.

Mark Wielaard mjw at redhat.com
Fri Dec 9 10:36:19 UTC 2016


Some tests running under fakechroot started failing because scripts tried
to execute /usr/bin/rm but inside the testing chroot /usr/bin and /bin
aren't linked. Just symlink testing/usr/bin to testing/bin to simulate
a unified /usr setup.

Signed-off-by: Mark Wielaard <mjw at redhat.com>
---
 tests/Makefile.am | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/Makefile.am b/tests/Makefile.am
index 7091220..8c036d6 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -104,6 +104,8 @@ testing$(bindir)/rpmbuild: ../rpmbuild
 	rm -rf testing
 	mkdir -p testing/$(bindir)
 	ln -s ./$(bindir) testing/bin
+	mkdir -p testing/usr
+	ln -s ../bin testing/usr/bin
 	(cd ${top_builddir} && \
 	          $(MAKE) DESTDIR=`pwd`/${subdir}/testing install)
 	cp -r ${srcdir}/data/ testing/
-- 
1.8.3.1



More information about the Rpm-maint mailing list