tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

devel/gobject-introspection Makefile



It seems that the Makefile for devel/gobject-introspection uses a non-standard option (-rm) for find, which is not supported on Darwin.

From the NetBSD find(1) man page: 

STANDARDS

     The find utility syntax is a superset of the syntax specified by the IEEE Std 1003.2 (``POSIX.2'') standard.

     The options, the -amin, -anewer, -asince, -cmin, -cnewer, -csince, -delete, -empty, -execdir, -follow, -fstype, -iname, -inum, -iregex, -links, -ls, -maxdepth, -mindepth, -mmin, -path, -print0, -printx, -regex, -rm, and -since primaries, and the -not operator are extensions to IEEE Std 1003.2 (``POSIX.2'').

The following patch fixes this.

--- a/devel/gobject-introspection/Makefile	Tue Feb 15 20:58:23 2022 -0700
+++ b/devel/gobject-introspection/Makefile	Wed Feb 16 07:36:36 2022 -0700
@@ -49,7 +49,7 @@
 MAKE_ENV+=	GI_SCANNER_DISABLE_CACHE=yes
 
 post-install:
-	cd ${DESTDIR}${PREFIX} && find . -name *.orig -rm
+	cd ${DESTDIR}${PREFIX} && find . -name *.orig | xargs rm
 
 BUILDLINK_API_DEPENDS.glib2+= glib2>=2.58.0
 .include "../../devel/glib2/buildlink3.mk”

Is there a better solution?

Cheers,
Brook




Home | Main Index | Thread Index | Old Index