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

Bug#161803: marked as done (Build problems on Redhat 7.2)



Your message dated Mon, 23 Feb 2004 22:21:37 +0000
with message-id <20040223222137.GA16232@descent.netsplit.com>
and subject line Bug#161803 Build problems on Redhat 7.2
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 21 Sep 2002 18:17:49 +0000
>From henning.spruth@olocs.com Sat Sep 21 13:17:49 2002
Return-path: <henning.spruth@olocs.com>
Received: from natpost.webmailer.de (post.webmailer.de) [192.67.198.65] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 17sopA-0004w5-00; Sat, 21 Sep 2002 13:17:48 -0500
Received: from chephren (p50800710.dip0.t-ipconnect.de [80.128.7.16])
	by post.webmailer.de (8.9.3/8.8.7) with ESMTP id UAA24761;
	Sat, 21 Sep 2002 20:17:16 +0200 (MET DST)
Content-Type: text/plain;
  charset="us-ascii"
From: Henning Spruth <henning.spruth@olocs.com>
Reply-To: henning.spruth@olocs.com
To: submit@bugs.debian.org
Subject: Build problems on Redhat 7.2
Date: Sat, 21 Sep 2002 20:20:01 +0200
User-Agent: KMail/1.4.3
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Message-Id: <200209212020.01621.henning.spruth@olocs.com>
Delivered-To: submit@bugs.debian.org

Package: dpkg
Version: 1.10.6

I'm building dpkg on a (yuck!) Redhat system, and get the following type of 
error message from 'make':

   make[2]: *** No rule to make target `archtable', needed by `archtable.h'.  
Stop.
   make[2]: Leaving directory `/home/henning/agenda/work/y/dpkg-1.10.6/main'
   make[1]: *** [all-main] Error 2

This type of error also exists for every subdirectory during 'make install'.

I'm using make-3.79.1-8 on Redhat 7.2.

The reason seems to be the order of defines at the top of all the Makefile.in 
files. It currently is:

	VPATH           = @srcdir@
	srcdir          = @srcdir@
	top_srcdir      = @top_srcdir@
	top_builddir    = ..

	default: all
	include ../Makefile.conf

Which, on my machine defines top_srcdir to be "." (because it is redefined in 
Makefile.conf), which is wrong. The fix seems to be to move the definition of 
top_srcdir to after the include statement:

	VPATH           = @srcdir@
	srcdir          = @srcdir@
	top_builddir    = ..

	default: all
	include ../Makefile.conf
	top_srcdir      = @top_srcdir@

After applying these changes, the package builds. There is one more bugfix: 
the man/pt_BR/Makefile.in defines a variable ptman8dir, but installs the 
Makefiles to svman8dir - THIS SEEMS LIKE A GENUINE BUG. On my system, this 
also causes 'make' to fail.

A patch file is included below.

Many regards,

Henning

-----------------------------------------------

--- dpkg-1.10.6/dpkg-deb/Makefile.in.orig	Sat Sep 21 19:40:49 2002
+++ dpkg-1.10.6/dpkg-deb/Makefile.in	Sat Sep 21 19:40:55 2002
@@ -1,13 +1,13 @@
 
 VPATH		= @srcdir@
 srcdir		= @srcdir@
-top_srcdir	= @top_srcdir@
 top_builddir	= ..
 
 
 default: all
 
 include ../Makefile.conf
+top_srcdir	= @top_srcdir@
 
 
 SOURCES		= build.c extract.c info.c main.c
--- dpkg-1.10.6/dselect/Makefile.in.orig	Sat Sep 21 19:47:10 2002
+++ dpkg-1.10.6/dselect/Makefile.in	Sat Sep 21 19:47:15 2002
@@ -1,10 +1,10 @@
 VPATH		= @srcdir@
 srcdir		= @srcdir@
-top_srcdir	= @top_srcdir@
 top_builddir	= ..
 
 default: all
 include ../Makefile.conf
+top_srcdir	= @top_srcdir@
 
 CXX_SOURCES	= basecmds.cc baselist.cc basetop.cc bindings.cc curkeys.cc \
 		  main.cc methkeys.cc methlist.cc method.cc methparse.cc \
--- dpkg-1.10.6/main/Makefile.in.orig	Sat Sep 21 19:38:03 2002
+++ dpkg-1.10.6/main/Makefile.in	Sat Sep 21 19:37:12 2002
@@ -1,10 +1,10 @@
 VPATH		= @srcdir@
 srcdir		= @srcdir@
-top_srcdir	= @top_srcdir@
 top_builddir	= ..
 
 default: all
 include ../Makefile.conf
+top_srcdir	= @top_srcdir@
 
 SOURCES		= main.c enquiry.c filesdb.c archives.c processarc.c \
 		  cleanup.c select.c packages.c configure.c remove.c \
--- dpkg-1.10.6/man/de/Makefile.in.orig	Sat Sep 21 19:48:04 2002
+++ dpkg-1.10.6/man/de/Makefile.in	Sat Sep 21 19:48:08 2002
@@ -1,9 +1,9 @@
 VPATH		= @srcdir@
 srcdir		= @srcdir@
-top_srcdir	= @top_srcdir@
 
 default: all
 include ../../Makefile.conf
+top_srcdir	= @top_srcdir@
 
 deman1dir	= $(subst $(mandir),$(mandir)/de,$(man1dir))
 deman5dir	= $(subst $(mandir),$(mandir)/de,$(man5dir))
--- dpkg-1.10.6/man/en/Makefile.in.orig	Sat Sep 21 19:48:17 2002
+++ dpkg-1.10.6/man/en/Makefile.in	Sat Sep 21 19:48:19 2002
@@ -1,9 +1,9 @@
 VPATH		= @srcdir@
 srcdir		= @srcdir@
-top_srcdir	= @top_srcdir@
 
 default: all
 include ../../Makefile.conf
+top_srcdir	= @top_srcdir@
 
 MAN5PAGES	= deb-control.5 deb-old.5 deb.5 dpkg.cfg.5 dselect.cfg.5
 
--- dpkg-1.10.6/man/fr/Makefile.in.orig	Sat Sep 21 19:48:21 2002
+++ dpkg-1.10.6/man/fr/Makefile.in	Sat Sep 21 19:48:24 2002
@@ -1,9 +1,9 @@
 VPATH		= @srcdir@
 srcdir		= @srcdir@
-top_srcdir	= @top_srcdir@
 
 default: all
 include ../../Makefile.conf
+top_srcdir	= @top_srcdir@
 
 frman1dir	= $(subst $(mandir),$(mandir)/fr,$(man1dir))
 frman5dir	= $(subst $(mandir),$(mandir)/fr,$(man5dir))
--- dpkg-1.10.6/man/ja/Makefile.in.orig	Sat Sep 21 19:48:28 2002
+++ dpkg-1.10.6/man/ja/Makefile.in	Sat Sep 21 19:48:31 2002
@@ -1,9 +1,9 @@
 VPATH		= @srcdir@
 srcdir		= @srcdir@
-top_srcdir	= @top_srcdir@
 
 default: all
 include ../../Makefile.conf
+top_srcdir	= @top_srcdir@
 
 jaman1dir	= $(subst $(mandir),$(mandir)/ja,$(man1dir))
 jaman5dir	= $(subst $(mandir),$(mandir)/ja,$(man5dir))
--- dpkg-1.10.6/man/pt_BR/Makefile.in.orig	Sat Sep 21 19:48:35 2002
+++ dpkg-1.10.6/man/pt_BR/Makefile.in	Sat Sep 21 19:55:38 2002
@@ -1,9 +1,9 @@
 VPATH		= @srcdir@
 srcdir		= @srcdir@
-top_srcdir	= @top_srcdir@
 
 default: all
 include ../../Makefile.conf
+top_srcdir	= @top_srcdir@
 
 ptman8dir	= $(subst $(mandir),$(mandir)/pt_BR,$(man8dir))
 
@@ -19,10 +19,10 @@
 install: install-doc
 
 install-doc:
-	$(mkinstalldirs) $(DESTDIR)$(svman8dir) 
+	$(mkinstalldirs) $(DESTDIR)$(ptman8dir) 
 	set -e ; for i in $(MAN8PAGES) ; do \
 	    if test -f $$i ; then d= ; else d="$(srcdir)/" ; fi ; \
-	    $(INSTALL_DATA) $$d$$i $(DESTDIR)$(svman8dir) ; \
+	    $(INSTALL_DATA) $$d$$i $(DESTDIR)$(ptman8dir) ; \
 	done
 
 .PHONY: all clean distclean install install-doc
--- dpkg-1.10.6/man/ru/Makefile.in.orig	Sat Sep 21 19:48:41 2002
+++ dpkg-1.10.6/man/ru/Makefile.in	Sat Sep 21 19:48:43 2002
@@ -1,9 +1,9 @@
 VPATH		= @srcdir@
 srcdir		= @srcdir@
-top_srcdir	= @top_srcdir@
 
 default: all
 include ../../Makefile.conf
+top_srcdir	= @top_srcdir@
 
 ruman1dir	= $(subst $(mandir),$(mandir)/ru,$(man1dir))
 ruman5dir	= $(subst $(mandir),$(mandir)/ru,$(man5dir))
--- dpkg-1.10.6/man/sv/Makefile.in.orig	Sat Sep 21 19:48:47 2002
+++ dpkg-1.10.6/man/sv/Makefile.in	Sat Sep 21 19:48:50 2002
@@ -1,9 +1,9 @@
 VPATH		= @srcdir@
 srcdir		= @srcdir@
-top_srcdir	= @top_srcdir@
 
 default: all
 include ../../Makefile.conf
+top_srcdir	= @top_srcdir@
 
 svman1dir	= $(subst $(mandir),$(mandir)/sv,$(man1dir))
 svman5dir	= $(subst $(mandir),$(mandir)/sv,$(man5dir))
--- dpkg-1.10.6/man/Makefile.in.orig	Sat Sep 21 19:56:36 2002
+++ dpkg-1.10.6/man/Makefile.in	Sat Sep 21 19:56:41 2002
@@ -1,11 +1,11 @@
 VPATH		= @srcdir@
 srcdir		= @srcdir@
-top_srcdir	= @top_srcdir@
 
 SUBDIRS		= de en fr ja pt_BR ru sv
 
 default: all
 include ../Makefile.conf
+top_srcdir	= @top_srcdir@
 
 clean: clean-recursive
 
--- dpkg-1.10.6/methods/Makefile.in.orig	Sat Sep 21 19:47:33 2002
+++ dpkg-1.10.6/methods/Makefile.in	Sat Sep 21 19:47:36 2002
@@ -1,9 +1,9 @@
 VPATH		= @srcdir@
 srcdir		= @srcdir@
-top_srcdir	= @top_srcdir@
 
 default: all
 include ../Makefile.conf
+top_srcdir	= @top_srcdir@
 
 # Available methods
 METHODS			= disk floppy
--- dpkg-1.10.6/scripts/Makefile.in.orig	Sat Sep 21 19:39:16 2002
+++ dpkg-1.10.6/scripts/Makefile.in	Sat Sep 21 19:39:22 2002
@@ -1,9 +1,9 @@
 VPATH		= @srcdir@
 srcdir		= @srcdir@
-top_srcdir	= @top_srcdir@
 
 default: all
 include ../Makefile.conf
+top_srcdir	= @top_srcdir@
 
 BIN_SCRIPTS		= dpkg-name dpkg-source dpkg-genchanges \
 			  dpkg-gencontrol dpkg-shlibdeps dpkg-buildpackage \
--- dpkg-1.10.6/split/Makefile.in.orig	Sat Sep 21 19:43:41 2002
+++ dpkg-1.10.6/split/Makefile.in	Sat Sep 21 19:43:45 2002
@@ -1,10 +1,10 @@
 
 VPATH		= @srcdir@
 srcdir		= @srcdir@
-top_srcdir	= @top_srcdir@
 
 default: all
 include ../Makefile.conf
+top_srcdir	= @top_srcdir@
 
 SPLIT_SOURCES		= queue.c split.c info.c join.c main.c
 SPLIT_OBJECTS		= $(patsubst %.c, %.o, $(SPLIT_SOURCES))
--- dpkg-1.10.6/utils/Makefile.in.orig	Sat Sep 21 19:46:44 2002
+++ dpkg-1.10.6/utils/Makefile.in	Sat Sep 21 19:46:47 2002
@@ -1,10 +1,10 @@
 
 VPATH		= @srcdir@
 srcdir		= @srcdir@
-top_srcdir	= @top_srcdir@
 
 default: all
 include ../Makefile.conf
+top_srcdir	= @top_srcdir@
 
 CFLAGS			+= -I$(top_srcdir)/optlib
 


---------------------------------------
Received: (at 161803-done) by bugs.debian.org; 23 Feb 2004 22:21:43 +0000
>From scott@netsplit.com Mon Feb 23 14:21:43 2004
Return-path: <scott@netsplit.com>
Received: from populous.netsplit.com (mailgate.netsplit.com) [62.49.129.34] (qmailr)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AvOSN-0000kz-00; Mon, 23 Feb 2004 14:21:43 -0800
Received: (qmail 4899 invoked from network); 23 Feb 2004 22:21:41 -0000
Received: from unknown (HELO descent.netsplit.com) (netsplit.com@62.49.129.40)
  by populous.netsplit.com with RC4-SHA encrypted SMTP; 23 Feb 2004 22:21:41 -0000
Received: from scott by descent.netsplit.com with local (Exim 4.30)
	id 1AvOSH-0004Dw-GU; Mon, 23 Feb 2004 22:21:37 +0000
Date: Mon, 23 Feb 2004 22:21:37 +0000
To: henning.spruth@olocs.com, 161803-done@bugs.debian.org
Subject: Bug#161803 Build problems on Redhat 7.2
Message-ID: <20040223222137.GA16232@descent.netsplit.com>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="OXfL5xGRrasGEqWY"
Content-Disposition: inline
User-Agent: Mutt/1.5.5.1+cvs20040105i
From: Scott James Remnant <scott@netsplit.com>
Delivered-To: 161803-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_02_22 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=0.0 required=4.0 tests=none autolearn=no 
	version=2.60-bugs.debian.org_2004_02_22
X-Spam-Level: 


--OXfL5xGRrasGEqWY
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

This has been fixed in recent dpkg releases:


Sat Sep 13 13:57:22 CDT 2003 Adam Heath <doogie@debian.org>

  * Makefile.conf.in: * s/top_srcdir/abs_top_srcdir/=20


Scott
--=20
Have you ever, ever felt like this?
Had strange things happen?  Are you going round the twist?

--OXfL5xGRrasGEqWY
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAOnzxIexP3IStZ2wRAtmHAJ41172ehfTdhA+ljdt/tWszz6o4WwCeN7sY
7U5GFUX34krmTmFgXiWyBH8=
=hEb2
-----END PGP SIGNATURE-----

--OXfL5xGRrasGEqWY--



Reply to: