X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-3.1 required=5.0	tests=AWL,BAYES_00,KHOP_THREADED,TW_YG,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4F8F4A45.8030303@etr-usa.com>
Date: Wed, 18 Apr 2012 17:12:05 -0600
From: Warren Young <warren@etr-usa.com>
User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1
MIME-Version: 1.0
To: Cygwin-L <cygwin@cygwin.com>
Subject: Re: Can RPM packages be installed into Cygwin?
References: <4F7FEF5B.5060206@gmail.com> <4F8D066B.2060900@tlinx.org> <4F8EBDF0.4080407@gmail.com> <20120418140309.GC29332@ednor.casa.cgf.cx> <4F8EE652.6060203@gmail.com> <20120418170808.GC30849@ednor.casa.cgf.cx> <4F8F062A.9030506@gmail.com>
In-Reply-To: <4F8F062A.9030506@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 4/18/2012 12:21 PM, De-Jian Zhao wrote:
> Is there a way to export the package info or lib
> info of setup.exe to rpm? If they can share information, the problem
> will be easily solved.

Big "if".

I said it before, but a .src.rpm built for one Linux distribution 
typically will not just recompile as-is on another Linux.  Expecting 
effortless portability to an entirely different platform like Cygwin is 
a pipe dream.

You seem to be envisioning a world where the RPM spec file says it 
requires libfoo-1.2.3.so or whatever, and that someone has ported that 
to Cygwin.  Then all you'd need to do is change RPM so it knows how to 
mung file names to cygfoo-1.2.3.dll or whatever.

That *could* happen.

What actually happens more commonly is:

- The Fedora spec file says it depends on the foo-devel package, which 
contains the .so file in question.

- The SuSE spec file says it depends on the foo-shared-lib package 
instead, because that's what the same package is called there.

- The Repoforge spec file depends on the platform spec file, but also on 
a passel of other infrastructure that has no direct correspondence to 
anything else, and without it it won't even rebuild on supported platforms.

- The third-party spec file which was built to support the first-party 
foo package from the upstream vendor (as opposed to the version in the 
distro) says it depends on the first-party foo-community-shared package.

So, which one should this mythical Cygwin .pkg -> RPM DB tool convert 
the dependencies to?

The first scenario above also ignores versioning issues.

This mythical automatic package porting tool you imagine cannot be 
magicked into existence with a "But if you just..." observation.  There 
is no "just".  It would probably take more work to build the automatic 
dependency translation tool than to just manually port everything.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

