Bug#110640: marked as done (dpkg: problems when cross-building)
Your message dated 15 Oct 2002 13:25:17 +0200
with message-id <1034681119.15876.140.camel@thanatos>
and subject line close
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; 30 Aug 2001 09:00:23 +0000
>From debian@mennucci.sns.it Thu Aug 30 04:00:23 2001
Return-path: <debian@mennucci.sns.it>
Received: from mail-1.tiscalinet.it (mail.tiscalinet.it) [195.130.225.147]
by master.debian.org with esmtp (Exim 3.12 1 (Debian))
id 15cNgU-0004U8-00; Thu, 30 Aug 2001 04:00:22 -0500
Received: from etabeta.localdomain.fake (62.11.2.33) by mail.tiscalinet.it (5.5.031)
id 3B402B6601512C75; Thu, 30 Aug 2001 10:59:50 +0200
Received: from debian by etabeta.localdomain.fake with local (Exim 3.31 #1 (Debian))
id 15cMtv-0001zh-00; Thu, 30 Aug 2001 10:10:11 +0200
From: debian@tonelli.sns.it
Subject: dpkg: problems when cross-building
To: submit@bugs.debian.org
X-Mailer: bug 3.3.10
Message-Id: <E15cMtv-0001zh-00@etabeta.localdomain.fake>
Sender: Andrea Mennucc1 <debian@mennucci.sns.it>
Date: Thu, 30 Aug 2001 10:10:11 +0200
Delivered-To: submit@bugs.debian.org
Package: dpkg
Version: 1.9.16-0
Severity: normal
hi
as you know, I am trying to build the 'win' port
I have patched dpkg itself, and reinstalled,
so that it now properly knows of the new port; as you see
---
$ CC=i386-cygwin-gcc dpkg-architecture -awin
DEB_BUILD_ARCH=i386
DEB_BUILD_GNU_CPU=i386
DEB_BUILD_GNU_SYSTEM=linux
DEB_BUILD_GNU_TYPE=i386-linux
DEB_HOST_ARCH=win
DEB_HOST_GNU_CPU=i386
DEB_HOST_GNU_SYSTEM=cygwin
DEB_HOST_GNU_TYPE=i386-cygwin
---
now I am trying to cross-build some packages, but I have got some problems
when cross compiling 'dpkg'. For most of them I have done a patch;
I send you the diff at the end.
Here they are
-----------1--- './configure .... --with-included-gettext' doesnt work
since the 1386-cygwin environment doesnt know of gettext (yet), I have
added --with-included-gettext in debian/rules ;
but the Makefile is not well structured, and it fails to build
anything in intl/ before it is needed
where it says
Makefile.in:SUBDIRS = include optlib lib intl dpkg-deb split scripts utils main
it should say
Makefile.in:SUBDIRS = intl include optlib lib dpkg-deb split scripts utils main
actually, my patch simply adds --with-included-gettext
when cross compiling; a better solution would be to put a test
in ./configure that enables '--with-included-gettext' whenever
libintl.h is not available.
--------2------------wrong g++
I have compiled and installed zlib in $HOME/zlib (simply by 'make install')
and now I am trying again to build dpkg;
but if I use
$ CFLAGS="-I$HOME/zlib/include" LDFLAGS="-L$HOME/zlib/lib" CONFIG_SITE=/etc/dpkg/cross-config.win dpkg-buildpackage -awin -rfakeroot -b
I see
... checking for c++... c++ ...
instead of i386-cygwin-g++
so it builds anything ok, but it fails to link 'dpkg-deb',
since some code is prepared with g++ and other with 1386-cygwin-gcc
---------3------------
I have deleted Build-Depends: --> sgmltools-lite <--
because it seems to me that dpkg is building properly without...
--------------------
here is the diff
--------------------------
diff -ur1 dpkg-1.9.16/Makefile.in dpkg-1.9.16-win/Makefile.in
--- dpkg-1.9.16/Makefile.in Sun Mar 4 15:39:05 2001
+++ dpkg-1.9.16-win/Makefile.in Thu Aug 30 09:41:29 2001
@@ -10,3 +10,3 @@
-SUBDIRS = include optlib lib intl dpkg-deb split scripts utils main \
+SUBDIRS = intl include optlib lib dpkg-deb split scripts utils main \
utils @DSELECTDIR@ po methods doc
Only in dpkg-1.9.16-win: Makefile.in~
diff -ur1 dpkg-1.9.16/archtable dpkg-1.9.16-win/archtable
--- dpkg-1.9.16/archtable Sun May 13 23:50:59 2001
+++ dpkg-1.9.16-win/archtable Wed Aug 29 13:09:31 2001
@@ -53 +53,9 @@
i386-openbsd2.8 openbsd-i386 i386
+i386-pc-cygwin win win
+i486-pc-cygwin win win
+i586-pc-cygwin win win
+i686-pc-cygwin win win
+i386-cygwin win win
+i486-cygwin win win
+i586-cygwin win win
+i686-cygwin win win
Only in dpkg-1.9.16-win: archtable~
diff -ur1 dpkg-1.9.16/configure.in dpkg-1.9.16-win/configure.in
--- dpkg-1.9.16/configure.in Tue May 1 07:41:30 2001
+++ dpkg-1.9.16-win/configure.in Wed Aug 22 17:29:13 2001
@@ -116,6 +116,8 @@
AC_C_CONST
-AC_C_BIGENDIAN
AC_C_INLINE
+
+AC_C_BIGENDIAN
AC_CHECK_SIZEOF(unsigned long)
AC_CHECK_SIZEOF(unsigned int)
+
AC_CHECK_TYPE(ptrdiff_t,int)
diff -ur1 dpkg-1.9.16/debian/changelog dpkg-1.9.16-win/debian/changelog
--- dpkg-1.9.16/debian/changelog Thu Jul 5 23:06:42 2001
+++ dpkg-1.9.16-win/debian/changelog Wed Aug 29 12:05:31 2001
@@ -1 +1,8 @@
+dpkg (1.9.16-0) unstable; urgency=low
+
+ * new win architecture
+ * dpkg-architecture: gcc version may contain -, too
+
+ -- A Mennucc1 <debian@Tonelli.sns.it> Wed, 22 Aug 2001 16:36:20 +0200
+
dpkg (1.9.16) unstable; urgency=low
diff -ur1 dpkg-1.9.16/debian/control dpkg-1.9.16-win/debian/control
--- dpkg-1.9.16/debian/control Mon May 14 00:05:36 2001
+++ dpkg-1.9.16-win/debian/control Wed Aug 29 13:36:13 2001
@@ -7,3 +7,3 @@
Standards-Version: 3.5.4
-Build-Depends: debiandoc-sgml, sgmltools-lite, libncurses-dev, gettext (>= 0.10.36), zlib1g-dev
+Build-Depends: debiandoc-sgml, libncurses-dev, gettext (>= 0.10.36), zlib1g-dev
Only in dpkg-1.9.16-win/debian: control~
diff -ur1 dpkg-1.9.16/debian/rules dpkg-1.9.16-win/debian/rules
--- dpkg-1.9.16/debian/rules Sat Jun 30 16:45:53 2001
+++ dpkg-1.9.16-win/debian/rules Wed Aug 29 13:25:47 2001
@@ -17,3 +17,3 @@
ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
- config_arg := --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
+ config_arg := --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) --with-included-gettext
else
@@ -29,3 +29,3 @@
install -d $(@D)
- cd $(@D) && LDFLAGS=$(LDFLAGS) $(DIR)/configure \
+ cd $(@D) && LDFLAGS="$(LDFLAGS)" $(DIR)/configure \
--prefix=/usr \
@@ -106,3 +106,3 @@
cleanup-info.8 dpkg-divert.8 dpkg-statoverride.8 \
- install-info.8 update-alternatives.8 update-rc.d.8 ; do \
+ install-info.8 update-alternatives.8 ; do \
if [ -f $(TMP)/usr/share/man/$$i/man8/$$m ] ; then \
Only in dpkg-1.9.16-win/debian: rules~
diff -ur1 dpkg-1.9.16/scripts/Makefile.in dpkg-1.9.16-win/scripts/Makefile.in
--- dpkg-1.9.16/scripts/Makefile.in Wed Jun 20 02:53:45 2001
+++ dpkg-1.9.16-win/scripts/Makefile.in Wed Aug 29 12:36:28 2001
@@ -12,3 +12,3 @@
-SBIN_SCRIPTS = update-rc.d update-alternatives install-info \
+SBIN_SCRIPTS = update-alternatives install-info \
dpkg-divert dpkg-statoverride cleanup-info
Only in dpkg-1.9.16-win/scripts: Makefile.in~
diff -ur1 dpkg-1.9.16/scripts/dpkg-architecture.pl dpkg-1.9.16-win/scripts/dpkg-architecture.pl
--- dpkg-1.9.16/scripts/dpkg-architecture.pl Wed Jun 20 02:39:27 2001
+++ dpkg-1.9.16-win/scripts/dpkg-architecture.pl Wed Aug 29 12:02:01 2001
@@ -65,3 +65,4 @@
'openbsd-i386', 'i386-openbsd',
- 'freebsd-i386', 'i386-freebsd');
+ 'freebsd-i386', 'i386-freebsd',
+ 'win', 'i386-cygwin');
@@ -132,3 +133,4 @@
} else {
- $gcc =~ s!^.*gcc-lib/([^/]*)/(?:egcs-)?\d+(?:[.\da-z]*)/libgcc.*$!$1!s;
+ # A Mennucc: version may contain a -, too
+ $gcc =~ s!^.*gcc-lib/([^/]*)/(?:egcs-)?\d+(?:[.\da-z-]*)/libgcc.*$!$1!s;
if (defined $1 and $1 ne '') {
--------------------------
now I am stuck, since I am missing libstdc++ for cygwin... I will
build it in a few days...
bye
a.
-- System Information
Debian Release: testing/unstable
Kernel Version: Linux etabeta 2.4.8-k6 #1 Sun Aug 12 12:19:03 EST 2001 i586 unknown
Versions of the packages dpkg depends on:
ii libc6 2.2.4-1 GNU C Library: Shared libraries and Timezone
ii libncurses5 5.2.20010318-3 Shared libraries for terminal handling
ii libstdc++2.10- 2.95.4-0.01081 The GNU stdc++ library
---------------------------------------
Received: (at 110640-done) by bugs.debian.org; 15 Oct 2002 11:25:45 +0000
>From jdthood@yahoo.co.uk Tue Oct 15 06:25:45 2002
Return-path: <jdthood@yahoo.co.uk>
Received: from smtp05.wxs.nl [195.121.6.57]
by master.debian.org with esmtp (Exim 3.12 1 (Debian))
id 181PpZ-0001il-00; Tue, 15 Oct 2002 06:25:45 -0500
Received: from localhost.localdomain ([213.75.114.39]) by
smtp05.wxs.nl (Netscape Messaging Server 4.15) with ESMTP id
H40T2102.5PQ for <110640-done@bugs.debian.org>; Tue, 15 Oct 2002
13:25:13 +0200
Subject: close
From: Thomas Hood <jdthood@yahoo.co.uk>
To: 110640-done@bugs.debian.org
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Ximian Evolution 1.0.8
Date: 15 Oct 2002 13:25:17 +0200
Message-Id: <1034681119.15876.140.camel@thanatos>
Mime-Version: 1.0
Delivered-To: 110640-done@bugs.debian.org
Since this report consists of a patch (adding partial
Windows support) that the submitter later retracts,
I think it's reasonable to close it.
--
Thomas Hood
Reply to: