[devel] Fwd: [Comm] Mesa-4.0.3-alt3.src.rpm build problem

Andrey Brindeew =?iso-8859-1?q?abr_=CE=C1_altlinux=2Eru?=
Вс Мар 23 17:24:51 MSK 2003


Hi!

Знатоки GNU Autotools, просьба откликнуться!

Вместе с новым automake_1.7 перестала собираться Mesa-4.0.3 (кстати, кто
её теперь мейнтейнит после ухода Кости?).

Часть ошибок мне удалось пофиксить, осталась, похоже, единственная
проблема:

+ automake -a -c
book/Makefile.am: installing `./depcomp'
src/FX/X86/Makefile.am: Assembler source seen but `CCAS' is undefined
src/FX/X86/Makefile.am:
src/FX/X86/Makefile.am: The usual way to define `CCAS' is to add `AM_PROG_AS'
src/FX/X86/Makefile.am: to `configure.in' and run `aclocal' and `autoconf' again.
src/FX/X86/Makefile.am: Assembler source seen but `CCASFLAGS' is undefined
src/FX/X86/Makefile.am:
src/FX/X86/Makefile.am: The usual way to define `CCASFLAGS' is to add `AM_PROG_AS'
src/FX/X86/Makefile.am: to `configure.in' and run `aclocal' and `autoconf' again.
src/SPARC/Makefile.am: Assembler source seen but `CCAS' is undefined
src/SPARC/Makefile.am:
src/SPARC/Makefile.am: The usual way to define `CCAS' is to add `AM_PROG_AS'
src/SPARC/Makefile.am: to `configure.in' and run `aclocal' and `autoconf' again.
src/SPARC/Makefile.am: Assembler source seen but `CCASFLAGS' is undefined
src/SPARC/Makefile.am:
src/SPARC/Makefile.am: The usual way to define `CCASFLAGS' is to add `AM_PROG_AS'
src/SPARC/Makefile.am: to `configure.in' and run `aclocal' and `autoconf' again.
src/X86/Makefile.am: Assembler source seen but `CCAS' is undefined
src/X86/Makefile.am:
src/X86/Makefile.am: The usual way to define `CCAS' is to add `AM_PROG_AS'
src/X86/Makefile.am: to `configure.in' and run `aclocal' and `autoconf' again.
src/X86/Makefile.am: Assembler source seen but `CCASFLAGS' is undefined
src/X86/Makefile.am:
src/X86/Makefile.am: The usual way to define `CCASFLAGS' is to add `AM_PROG_AS'
src/X86/Makefile.am: to `configure.in' and run `aclocal' and `autoconf' again.
ошибка: Неверный код возврата из /home/abr/tmp/rpm-tmp.30054 (%prep)

Эта проблема возникает из-за того, что в дистрибутиве имеются файлы сишного
кода, именованные следующим образом: *.S. Такие файлы automake считает
ассемблерными исходниками и требует установки переменных, имена которых
выводит в сообщениях об ошибке.

Brian Paul сообщил на это следующее:
===== ( http://www.geocrawler.com/mail/msg.php3?msg_id=8291739&list=1291 )
As mentioned in the docs/DEVINFO file, the following versions work:

	autoconf 2.50
	automake 1.4-p2
	libtool 1.4

People have reported that newer versions of these tools don't work with Mesa's
config files.  But nobody has volunteered to update them.  As I've said a few
times, I absolutely dread working with autoconf, automake and libtool.  As seen
in the Mesa bug database, these tools seem to seldom work on anything but
GNU/Linux. <sigh>  That's why I keep the old-style Makefiles around.
=====

Как заставить automake игнорировать файлы *.S или определить CCAS правильным
чтобы показывал на CC?

Мой патч, исправляющий остальные ляпы в Makefile.am пакета, приложен.

-- 
WBR, Andrey Brindeew.
"No one person can understand Perl culture completely"
(C) Larry Wall.
----------- следующая часть -----------
diff -Naur Mesa-4.0.3.orig/demos/Makefile.am Mesa-4.0.3.new/demos/Makefile.am
--- Mesa-4.0.3.orig/demos/Makefile.am	2002-04-17 23:37:41 +0400
+++ Mesa-4.0.3.new/demos/Makefile.am	2003-03-23 15:39:52 +0300
@@ -44,7 +44,7 @@
 	tunnel2 \
 	winpos
 
-#	osdemo \
+#	osdemo 
 
 
 CLEANFILES = test.ppm
diff -Naur Mesa-4.0.3.orig/si-glu/libnurbs/interface/Makefile.am Mesa-4.0.3.new/si-glu/libnurbs/interface/Makefile.am
--- Mesa-4.0.3.orig/si-glu/libnurbs/interface/Makefile.am	2002-01-08 18:58:11 +0300
+++ Mesa-4.0.3.new/si-glu/libnurbs/interface/Makefile.am	2003-03-23 15:51:48 +0300
@@ -8,7 +8,7 @@
 
 # Choose one of STANDALONE, LIBRARYBUILD, and GLBUILD. They are debugging
 # switches. grep LIBRARYBUILD `find .. -name '*.h'` for details.
-CXXFLAGS += -DLIBRARYBUILD -DNDEBUG
+AM_CXXFLAGS = -DLIBRARYBUILD -DNDEBUG
 
 include libNIFac_la_SOURCES
 
diff -Naur Mesa-4.0.3.orig/si-glu/libnurbs/internals/Makefile.am Mesa-4.0.3.new/si-glu/libnurbs/internals/Makefile.am
--- Mesa-4.0.3.orig/si-glu/libnurbs/internals/Makefile.am	2002-01-08 18:58:11 +0300
+++ Mesa-4.0.3.new/si-glu/libnurbs/internals/Makefile.am	2003-03-23 15:54:07 +0300
@@ -8,7 +8,7 @@
 
 # Choose one of STANDALONE, LIBRARYBUILD, and GLBUILD. They are debugging
 # switches. grep LIBRARYBUILD `find .. -name '*.h'` for details.
-CXXFLAGS += -DLIBRARYBUILD -DNDEBUG
+AM_CXXFLAGS = -DLIBRARYBUILD -DNDEBUG
 
 include libNInt_la_SOURCES
 
diff -Naur Mesa-4.0.3.orig/src/GGI/Makefile.am Mesa-4.0.3.new/src/GGI/Makefile.am
--- Mesa-4.0.3.orig/src/GGI/Makefile.am	2002-06-10 19:09:22 +0400
+++ Mesa-4.0.3.new/src/GGI/Makefile.am	2003-03-23 15:47:44 +0300
@@ -7,7 +7,7 @@
 ggimesaconfdatadir = ${sysconfdir}/ggi
 ggimesaconfdata_DATA = ggimesa.conf
 
-INCLUDES += -I$(top_srcdir)/include -I$(top_srcdir)/src/GGI/include \
+INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src/GGI/include \
 	-I$(top_srcdir)/src $(GGI_CFLAGS)
 
 DEFS += -DGGIMESACONFFILE=\"$(ggimesaconfdatadir)/ggimesa.conf\"
diff -Naur Mesa-4.0.3.orig/src-glut/Makefile.am Mesa-4.0.3.new/src-glut/Makefile.am
--- Mesa-4.0.3.orig/src-glut/Makefile.am	2003-03-23 14:40:06 +0300
+++ Mesa-4.0.3.new/src-glut/Makefile.am	2003-03-23 15:41:32 +0300
@@ -9,7 +9,6 @@
 EXTRA_PROGRAMS = capturexfont
 
 libglut_la_LDFLAGS = -version-info @LIBGLUT_VERSION_INFO@ -L../@GLU_DIR@
-libglut_la_LIBADD = -lGLU
 libglut_la_SOURCES = \
 	glutwin32.h \
 	win32_glx.h \
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя     : =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Тип     : application/pgp-signature
Размер  : 245 байтов
Описание: =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Url     : <http://lists.altlinux.org/pipermail/devel/attachments/20030323/e7f21ecb/attachment-0001.bin>


Подробная информация о списке рассылки Devel