This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: Can RPM packages be installed into Cygwin?

De-Jian Zhao wrote:

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.

The src.rpm will likely look in the rpm database for it's
pre-reqs as well.
you will need to look inside it (install the src.rpm, and look
in the /usr/src/packages/specs dir for <package>.spec>) -- and you will see lines like: (example from suse samba package):

BuildRequires: cups-devel e2fsprogs-devel fam-devel libacl-devel pam-devel popt-devel python-devel readline-devel
%if 0%{?suse_version}
BuildRequires: cracklib-devel openldap2-devel
%if 0%{?suse_version} > 1030
BuildRequires: gdbm-devel pwdutils
%if 0%{?suse_version} > 930
BuildRequires: krb5-devel libiniparser-devel libnscd-devel
(there's a bunch more .. the BuildRequires lines -- will refer to
DISTRO-specific package names (if that was built for Redhat, will refer
to redhat's package names).

The "if" statements are all about configure the same "spec" file for different
conditions... if you wanted to make things complex (I wouldn't), you could
build all the packages it needs and put in an if statement that would be true
for cygwin (would be alot of work!)

Or. look at the minimum set of packages you will need and make sure they
are installed from cygwin,
and comment out all those build-require lines and -- try it.. cross fingers.

But it will then likely be built for whatever DISTRO's specific file layout
which may not match cygwin's.

Safest -- after you install src.rpm, look in /usr/src/packages/SOURCES/ for
<name of your package>.tar.[bz2,gz] -- that will be the original tar package
-- prior to any DISTRO specific changes, that you will want.

Unpack that to a dir and hope it is setup with the configure route -- or figure
out what it needs to build (make...blah).

I have taken suse src rpms and direct ported them to cygwin -- but I had
to disable all the pre-requisite checking at build and install time, due to
the missing rpm database -- but the program was a *simple one*, and it worked.
So it is possible.   The more complex the program, the more likely it will
take more work to port...but sometimes you get lucky and the developer did
a good job setting up a configure script that will work with cygwin...

It is a pain -- you will be porting the source to cygwin -- but it it is worth it to you, you can get it done. (But you really have to want it!) ;-)

-- Problem reports: FAQ: Documentation: Unsubscribe info:

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