Mail Archives: cygwin/2012/04/18/14:22:15
X-Recipient: | archive-cygwin AT delorie DOT com
|
X-SWARE-Spam-Status: | No, hits=-4.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_YG
|
X-Spam-Check-By: | sourceware.org
|
Message-ID: | <4F8F062A.9030506@gmail.com>
|
Date: | Thu, 19 Apr 2012 02:21:30 +0800
|
From: | De-Jian Zhao <dejian DOT zhao AT gmail DOT com>
|
User-Agent: | Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20120312 Thunderbird/11.0
|
MIME-Version: | 1.0
|
To: | cygwin AT cygwin DOT com
|
CC: | cgf-use-the-mailinglist-please AT cygwin DOT com
|
Subject: | Re: Can RPM packages be installed into Cygwin?
|
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> <20120418170808 DOT GC30849 AT ednor DOT casa DOT cgf DOT cx>
|
In-Reply-To: | <20120418170808.GC30849@ednor.casa.cgf.cx>
|
X-IsSubscribed: | yes
|
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm
|
List-Id: | <cygwin.cygwin.com>
|
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com>
|
List-Archive: | <http://sourceware.org/ml/cygwin/>
|
List-Post: | <mailto:cygwin AT cygwin DOT com>
|
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
|
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 2012-4-19 1:08, Christopher Faylor wrote:
> 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.
>
>
Thank you, Christopher. 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.
Besides, I tried --nodeps option with src.rpm. It requires root
privilege (see below). However, "sudo rpm" and "su root" both failed to
work. Any way to fix it? Does Cygwin has a root user?
Administrator AT acer /cygdrive/d/Blast/source
$ rpm --nodeps --install ncbi-blast-2.2.26+-3.src.rpm
warning: user coremake does not exist - using root
warning: group cppcore does not exist - using root
warning: user coremake does not exist - using root
warning: group cppcore does not exist - using root
As to cygport, it seems that a *.cygport file is required. How to get
the file?
$ cygport ncbi-blast-2.2.26+-3.src.rpm install
*** ERROR: ncbi-blast-2.2.26+-3.src.rpm.cygport not found.
Administrator AT acer /cygdrive/d/Blast/source
$ cygport cbi-blast-2.2.26+-src.tar.gz install
*** ERROR: cbi-blast-2.2.26+-src.tar.gz.cygport not found.
DJ
--
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
- Raw text -