Re: make install failure

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

 



Hi Julien,

julien (Donnerstag, 11. Oktober 2007, 07:07):
> After "make ALL_LINGUAS="fr"",
> #make install ALL_LINGUAS="fr" gives  (translated):
>
> .....
> make[1]: going into « /home/julien/SVN-fr/trunk » directory
> make[1]: Nothing to do for « install-exec-am ».
> /bin/mkdir -p /usr/local/share/gimp/2.0/help
> ** Installing HTML:
> cd html && cp -a . /usr/local/share/gimp/2.0/help
> ** Installing 3308 images: (G=gif, J=jpg, M=mng, P=png, X=xcf)
> make[1]: execvp: /bin/sh: List of arguments too much long
> make[1]: *** [install-data-local] Error 127

Try the attached patch. It *should* work, although it has not been 
tested intensively. Good luck! ;-)

Ulf

PS: CC'ed Julien and Roman, since I don't know if a mail with attachment 
will be delivered.

Patch #2

(1) Optimize 'image_find_predicates' make macro.
(2) Use 'find' and 'while' loop for copying images files instead of 
    shell variable to prevent "Argument list too long" error.

--- gimp-help-2/Makefile.am
+++ gimp-help-2/Makefile.am
@@ -3,11 +3,14 @@
 # SUBDIRS = quickreference
 
 image_find_predicates = \
-	-name '*.gif' -o \
+	-path '*/.svn' -prune -o \
+	\( \
+	-name '*.png' -o \
 	-name '*.jpg' -o \
 	-name '*.mng' -o \
-	-name '*.png' -o \
-	-name '*.xcf'
+	-name '*.xcf' -o \
+	-name '*.gif'    \
+	\) -print
 
 IMAGE_FILES := $(sort $(shell cd $(top_srcdir) && find images $(image_find_predicates)))
 
@@ -234,22 +237,27 @@
 install-data-local:
 	$(mkdir_p) $(DESTDIR)$(helpdir)
 
-	@echo "** Installing HTML:"
-	cd html && cp -a . $(DESTDIR)$(helpdir)
-
-	@echo "** Installing $(IMAGE_COUNT) images: (G=gif, J=jpg, M=mng, P=png, X=xcf)"
-	@for dir in $(IMAGE_DIRS); do \
-		$(mkdir_p) "$(DESTDIR)$(helpdir)/$$dir" || exit; \
+	@echo -n "** Installing HTML:"
+	@cd html && \
+	for lang in $(ALL_LINGUAS); do \
+		cp -a $$lang $(DESTDIR)$(helpdir) && echo -n " $$lang"; \
 	done
-	@for file in $(IMAGE_FILES); do \
+	@echo .
+
+	@echo "** Installing images: (G=gif, J=jpg, M=mng, P=png, X=xcf)"
+
+	@cd $(top_srcdir) && find images $(image_find_predicates) | \
+	while read file; do \
 		case "$$file" in \
-		  *.gif) echo -n G ;; \
-		  *.jpg) echo -n J ;; \
-		  *.mng) echo -n M ;; \
 		  *.png) echo -n P ;; \
+		  *.jpg) echo -n J ;; \
 		  *.xcf) echo -n X ;; \
+		  *.mng) echo -n M ;; \
+		  *.gif) echo -n G ;; \
 		esac; \
-		$(INSTALL) $(top_srcdir)/$$file $(DESTDIR)$(helpdir)/$$file || exit; \
+		test -d $(DESTDIR)$(helpdir)/$${file%/*} || \
+		$(mkdir_p) $(DESTDIR)$(helpdir)/$${file%/*}; \
+		$(INSTALL) $(top_srcdir)/$$file $(DESTDIR)$(helpdir)/$$file || exit 66; \
 	done
 	@echo .
 

Attachment: pgp3E0l9HulQE.pgp
Description: PGP signature

_______________________________________________
Gimp-docs mailing list
Gimp-docs@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-docs

[Index of Archives]     [Video For Linux]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [Scanners]     [GEGL]     [Gimp's Home]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux