Sfoglia il codice sorgente

build: force LC_ALL=C correctly for dates

Failure to force "C" dates will have RPM et al. complain about invalid
dates and timestamps.

Signed-off-by: Florian Haas <florian.haas@linbit.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Florian Haas 14 anni fa
parent
commit
b8809eaf27
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      Makefile.am

+ 2 - 2
Makefile.am

@@ -123,7 +123,7 @@ clean-generic:
 
 
 $(SPEC): $(SPEC).in
 $(SPEC): $(SPEC).in
 	rm -f $@-t $@
 	rm -f $@-t $@
-	LC_ALL=C date="$(shell date "+%a %b %d %Y")" && \
+	date="$(shell LC_ALL=C date "+%a %b %d %Y")" && \
 	if [ -f .tarball-version ]; then \
 	if [ -f .tarball-version ]; then \
 		gitver="$(shell cat .tarball-version)" && \
 		gitver="$(shell cat .tarball-version)" && \
 		rpmver=$$gitver && \
 		rpmver=$$gitver && \
@@ -190,7 +190,7 @@ gen_start_date = 2000-01-01
 .PHONY: gen-ChangeLog
 .PHONY: gen-ChangeLog
 gen-ChangeLog:
 gen-ChangeLog:
 	if test -d .git; then						\
 	if test -d .git; then						\
-		$(top_srcdir)/build-aux/gitlog-to-changelog		\
+		LC_ALL=C $(top_srcdir)/build-aux/gitlog-to-changelog		\
 			--since=$(gen_start_date) > $(distdir)/cl-t;	\
 			--since=$(gen_start_date) > $(distdir)/cl-t;	\
 		rm -f $(distdir)/ChangeLog;				\
 		rm -f $(distdir)/ChangeLog;				\
 		mv $(distdir)/cl-t $(distdir)/ChangeLog;		\
 		mv $(distdir)/cl-t $(distdir)/ChangeLog;		\