Hi,
I tried to install the latest hg tip of r2 today and it failed with:
        mkdir -p /var/abs/local/yaourtbuild/radare2-hg/pkg/usr/bin
        mkdir: cannot create directory
        `/var/abs/local/yaourtbuild/radare2-hg/pkg/usr/bin': File
        exists

Turned out there was a missing mkdir.
The attached patch isn't the most elegant solution, but it works ;)
diff -r 62a6213a5ff1 libr/Makefile
--- a/libr/Makefile	Sat Jul 24 12:44:19 2010 +0200
+++ b/libr/Makefile	Sat Jul 24 20:31:18 2010 +0200
@@ -104,7 +104,8 @@
 	${INSTALL_DATA} lang/p/radare.* ${PFX}/lib/radare2
 	echo "lang/p/radare.* ${PFX}/lib/radare2"
 	# XXX mach-ex will be deprecated soon
-	cp bin/t/mach-ex${EXT_EXE} ${PFX}/bin
+	$(shell test -d ${PFX}/bin/ || mkdir -p ${PFX}/bin/)
+	cp bin/t/mach-ex${EXT_EXE} ${PFX}/bin/
 
 deinstall uninstall:
 	# libraries

Attachment: signature.asc
Description: PGP signature

_______________________________________________
radare mailing list
[email protected]
http://lists.nopcode.org/listinfo.cgi/radare-nopcode.org

Reply via email to