X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org X-Mail-Handler: MailHop Outbound by DynDNS X-Report-Abuse-To: abuse AT dyndns DOT com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/DfS7y74BoOe15MFY6QbSE Date: Wed, 18 Apr 2012 13:08:08 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Can RPM packages be installed into Cygwin? Message-ID: <20120418170808.GC30849@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <4F7FEF5B DOT 5060206 AT gmail DOT com> <4F8D066B DOT 2060900 AT tlinx DOT org> <4F8EBDF0 DOT 4080407 AT gmail DOT com> <20120418140309 DOT GC29332 AT ednor DOT casa DOT cgf DOT cx> <4F8EE652 DOT 6060203 AT gmail DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F8EE652.6060203@gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Thu, Apr 19, 2012 at 12:05:38AM +0800, De-Jian Zhao wrote: >On 2012-4-18 22:03, Christopher Faylor wrote: >> On Wed, Apr 18, 2012 at 09:13:20PM +0800, De-Jian Zhao wrote: >>> On 2012-4-17 13:58, Linda Walsh wrote: >>>> [snip] >>> Thank you, Linda. When I saw the error message after installing some >>> packages to satisfy the dependencies, I was wondering why the rpm >>> package still complained about the already installed packages. I was >>> not aware that cygwin and rpm were not sharing the 'database'. Thank >>> you for making it clear to me.I will try the src.rpm when I am free. >> >> So with all of the back and forth about this, you never realized that >> Cygwin's setup.exe doesn't use RPM? Wow. Wasn't the fact that there >> are no .rpm files in the distribution a big enough clue? > >I never expect setup.exe will use rpm packages. There is a rpm command >in Cygwin. I just thought it could be used to install a rpm package. And, although it is a very old, basically-unmaintained package, it can be used to install rpm packages. >The rpm package complained about dependencies during installation. I did >think that the dependency could be solved by installing proper packages >through setup.exe. >But after installing some libraries through setup.exe, the rpm package >still complained the same as before. It seemed that the rpm package >did not see the installed libraries at all. I don't know if you are getting this or not but, yes, you can install cygwin packages which would allow you to satisfy the needs for building an rpm package. That doesn't mean that rpm would magically know about it since rpm maintains its own package database which obviously is not updated by setup.exe. So, while the programs you need to build an rpm package may be available, rpm does not know this. The fact that we use setup.exe and "cygcheck" to query our packages should be a huge clue that setup.exe does not know anything about rpm. The --nodeps option to rpm will silence the dependency warnings but it won't fix real problems if required packages are missing. rpm is basically a curiosity on Cygwin. It really isn't that useful. If you want to build Cygwin packages, you should be investigating cygport. -- 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