delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/12/17/20:40:45

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Stephen C. Biggs" <s_c_biggs AT bigfoot DOT com>
To: cygwin <cygwin AT cygwin DOT com>
Date: Sun, 17 Dec 2000 17:38:57 -0800
MIME-Version: 1.0
Subject: Bogus hostname forcing in RedHat source RPMS
Reply-to: s_c_biggs AT bigfoot DOT com
Message-ID: <3A3CFA31.25027.A25338@localhost>
X-mailer: Pegasus Mail for Win32 (v3.12c)

Trying to install (rpm --rebuild) libtool from source rpm downloaded 
from ftp.redhat.com bombs because it looks like the SPEC file is 
trying to force an invalid host type (i386-pc-cygwin_nt-4.0 when it 
SHOULD be i686-pc-cygwin) if it sees CYGWIN.

Going to the source directory of the installed code and running 
./configure (with everything but the hostname) and make/make 
install works just fine.

This seems to be the case for all of the source rpms (?) (I tried two, 
libtool and grep).

I really know nothing about how to use RPM except for the basic 
stuff, so if there is a way to override this host name forcing, please 
advise.

This is a real shame, if there is no way to override the bogus 
hostname, because, with my port for RPM 4.0, cygwin users can 
rebuild and use almost all of the nifty Linux tools that redhat has.

Output from my attempt.

$ rpm --rebuild libtool-1.3.5-8.src.rpm
Installing libtool-1.3.5-8.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.70003
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd /usr/src/redhat/BUILD
+ rm -rf libtool-1.3.5
+ /bin/gzip -dc /usr/src/redhat/SOURCES/libtool-1.3.5.tar.gz
+ tar -xf -
+ STATUS=0
+ [ 0 -ne 0 ]
+ cd libtool-1.3.5
+ /bin/id -u
+ [ 500 = 0 ]
+ /bin/id -u
+ [ 500 = 0 ]
+ /bin/chmod -Rf a+r,g-w,o-w .
+ echo Patch #1 (libtool-1.2f-cache.patch):
Patch #1 (libtool-1.2f-cache.patch):
+ patch -p1 -s
+ echo Patch #2 (libtool-1.3.5-mktemp.patch):
Patch #2 (libtool-1.3.5-mktemp.patch):
+ patch -p1 -s
+ echo Patch #3 (libtool-1.3.5-nonneg.patch):
Patch #3 (libtool-1.3.5-nonneg.patch):
+ patch -p1 -s
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.56589
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd libtool-1.3.5
+ CFLAGS=-O2 -march=i386 -mcpu=i686
+ export CFLAGS
+ CXXFLAGS=-O2 -march=i386 -mcpu=i686
+ export CXXFLAGS
+ FFLAGS=-O2 -march=i386 -mcpu=i686
+ export FFLAGS
+ [ -f configure.in ]
+ /bin/true --copy --force
+ ./configure i386-pc-cygwin_nt-4.0 --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/usr/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/usr/var --shareds
tatedir=/usr/com --mandir=/usr/man --
infodir=/usr/info
configure: warning: i386-pc-cygwin_nt-4.0: invalid host type
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc
checking whether the C compiler (gcc -O2 -march=i386 -mcpu=i686 ) works... yes
checking whether the C compiler (gcc -O2 -march=i386 -mcpu=i686 ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking host system type... Invalid configuration `i386-pc-cygwin_nt-4.0': machine `i386-pc-cygwin_nt' not recognized

checking build system type... Invalid configuration `i386-pc-cygwin_nt-4.0': machine `i386-pc-cygwin_nt' not recognized

checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking for mawk... no
checking for gawk... gawk
updating cache ./config.cache
creating ./config.status
creating Makefile
creating doc/Makefile
creating tests/Makefile
configuring in libltdl
running /bin/sh ./configure  i386-pc-cygwin_nt-4.0 --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/usr/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/us
r/var --sharedstatedir=/usr/com --mandir=/u
configure: warning: i386-pc-cygwin_nt-4.0: invalid host type
loading cache .././config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -O2 -march=i386 -mcpu=i686 ) works... yes
checking whether the C compiler (gcc -O2 -march=i386 -mcpu=i686 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for working const... yes
checking for inline... inline
checking host system type... Invalid configuration `i386-pc-cygwin_nt-4.0': machine `i386-pc-cygwin_nt' not recognized

checking build system type... Invalid configuration `i386-pc-cygwin_nt-4.0': machine `i386-pc-cygwin_nt' not recognized

checking for ranlib... (cached) ranlib
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
updating cache .././config.cache
loading cache .././config.cache within ltconfig
ltconfig: you must specify a host type if you use `--no-verify'
Try `ltconfig --help' for more information.
configure: error: libtool configure failed
configure: error: ./configure failed for libltdl
Bad exit status from /var/tmp/rpm-tmp.87149 (%build)

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019