This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bogus hostname forcing in RedHat source RPMS


"Stephen C. Biggs" wrote:
> 
> 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.

I hate to burst your bubble, but cygwin is not linux.  The only packages
for which your statement is true, are those that have already been
ported to work with cygwin, or you get lucky (see below).  It just ain't
as simple as:

Oh look, a 'foobar' package.
download.
unpack
./configure 
make
make install

(which is basically what rpm will do when you use it to rebuild a
package based on some random linux-ish spec file.)

This will only work if:

a) the program doesn't run afoul of any of the windows-isms in cygwin
b) and doesn't attempt to use linux-ish functions that have not yet been
implemented in cygwin
c) doesn't have any extraneous '#ifdef _WIN32' blocks that REALLY maen
'true windows-native' but get tripped by cygwin's use of that #define.

Now, you *might* get lucky and satisfy these requirements with some new,
random package -- but probably not.

So you shouldn't be surprised that some packages fail to build with a
simple 'rpm --rebuild'  With regards to the particular package you
reference, libtool, note that there is ongoing work to cygwin-ify
libtool, and get it to work with dll's and the latest cygwin
gcc/binutils -- search the cygwin mailing list archives for 'Gary
Vaughan'.)

--Chuck

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]