osdir.com
mailing list archive

Subject: libdpkg: m_fork and friends - msg#00003

List: linux.debian.ports.windows

Date: Prev Next Index Thread: Prev Next Index
Hi all,

I've started trying to port dpkg natively to Windows (as opposed to using Cygwin).

One area that may cause problems is that Windows doesn't have fork functionality, so implementing m_fork() will be challenging.

From what I've seen so far, the only time m_fork gets used in the dpkg source is as part of the process of spawning a child to do some work, and writing Win32 child-spawning code should be pretty simple.

This is all well and good as long as no other packages are using the m_fork (and possibly m_pipe/m_dup2) code. So my questions are:

- Are other packages supposed to use m_fork, m_pipe, etc?
- If not, do we know of/care about packages that do use it?
- If so, would breaking API compatability to allow a Win32 port be a problem.

Please note that my last question is badly phrased... it would _only_ be the Win32 port that would have a changed API, specifically the functions that can't be (easily) implemented (m_fork, possibly m_pipe/m_dup2) would be #ifdef'd out.

Thanks,

Phil




Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

Re: dpkg with mingw32 / win32

Dalibor Topic wrote: Phil Lello schrieb: Hi all, Is anyone currently working on getting dpkg to handle windows installs? I'm writing some cross-platform software, and would love to be able to use dpkg (and eventually apt or similar) to install dependencies. I'm happy to work on this myself, but want to check what other people are doing before starting on this. This would be fairly low priority for me. The main requirements I have are: - Assignment of architecture for control file (no obvious choices from ubuntu/gutsy `dpkg-architecture.pl -L`) - Assignment of standard '-admindir' (probably $PROGRAM_FILES$/dpkg) - Running 'dpkg -i' There has been some work on this in the past: http://debian-cygwin.sourceforge.net/ and afaik it's also in Cygwin now. Thanks, I'll have a look at this. I'm more interested in getting dpkg to work without the cygwin layer, but this should be a good starting point.

Next Message by Date: click to view message preview

Re: libdpkg: m_fork and friends

Phil Lello schrieb: Hi all, I've started trying to port dpkg natively to Windows (as opposed to using Cygwin). One area that may cause problems is that Windows doesn't have fork functionality, so implementing m_fork() will be challenging. You could try using glib for that. http://library.gnome.org/devel/glib/2.14/glib-Spawning-Processes.html cheers, dalibor topic

Previous Message by Thread: click to view message preview

dpkg with mingw32 / win32

Hi all, Is anyone currently working on getting dpkg to handle windows installs? I'm writing some cross-platform software, and would love to be able to use dpkg (and eventually apt or similar) to install dependencies. I'm happy to work on this myself, but want to check what other people are doing before starting on this. This would be fairly low priority for me. The main requirements I have are: - Assignment of architecture for control file (no obvious choices from ubuntu/gutsy `dpkg-architecture.pl -L`) - Assignment of standard '-admindir' (probably $PROGRAM_FILES$/dpkg) - Running 'dpkg -i' Thanks, Phil

Next Message by Thread: click to view message preview

Re: libdpkg: m_fork and friends

Phil Lello schrieb: Hi all, I've started trying to port dpkg natively to Windows (as opposed to using Cygwin). One area that may cause problems is that Windows doesn't have fork functionality, so implementing m_fork() will be challenging. You could try using glib for that. http://library.gnome.org/devel/glib/2.14/glib-Spawning-Processes.html cheers, dalibor topic
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by