Can MinGW translate calls to popen(3)?
by Harry Simons
Hello,
I have a C program that builds and runs fine on my Fedora 11 box. This program uses popen as follows:
FILE *pipe = popen("perl - ", "w");
if(pipe) {
int i = 0;
// Send a Perl script to the STDIN of 'pipe'.
for( ; i< sizeof(perlScript) / sizeof(perlScript[0]); ++i) {
fprintf(pipe, "%c", perlScript[i]);
}
pclose(pipe);
}
I would like to know if MinGW can help me:
1. cross-compile the above C program (on my Fedora 11 for the Windows platform),
2. without having to replace the above call to popen by less than ideal
Windows counterparts like _popen (which pops up an ugly CMD console window!),
or CreatePipe, or CreateNamedPipe, etc.
Regards,
/HS
14 years, 7 months
rpms/mingw32-glib2/devel mingw32-glib2.spec,1.18,1.19
by Erik van Pienbroek
Author: epienbro
Update of /cvs/pkgs/rpms/mingw32-glib2/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv21386
Modified Files:
mingw32-glib2.spec
Log Message:
Stupid typo..
Index: mingw32-glib2.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-glib2/devel/mingw32-glib2.spec,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -p -r1.18 -r1.19
--- mingw32-glib2.spec 23 Sep 2009 05:32:25 -0000 1.18
+++ mingw32-glib2.spec 23 Sep 2009 12:20:37 -0000 1.19
@@ -114,7 +114,7 @@ rm -rf $RPM_BUILD_ROOT/build_static
rm -f $RPM_BUILD_ROOT/%{_mingw32_libdir}/charset.alias
# Drop the GDB helper files as we can't use the native Fedora GDB to debug Win32 programs
-rm -f $RPM_BUILD_ROOT%{_mingw32_datadir}/gdb
+rm -rf $RPM_BUILD_ROOT%{_mingw32_datadir}/gdb
# Remove the gtk-doc documentation and manpages which duplicate Fedora native
rm -rf $RPM_BUILD_ROOT%{_mingw32_mandir}
14 years, 7 months
rpms/mingw32-glib2/devel mingw32-glib2.spec,1.17,1.18
by Erik van Pienbroek
Author: epienbro
Update of /cvs/pkgs/rpms/mingw32-glib2/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv1535
Modified Files:
mingw32-glib2.spec
Log Message:
Drop the GDB helper files as we can't use the native Fedora GDB to debug Win32 programs
Index: mingw32-glib2.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-glib2/devel/mingw32-glib2.spec,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -p -r1.17 -r1.18
--- mingw32-glib2.spec 23 Sep 2009 05:12:40 -0000 1.17
+++ mingw32-glib2.spec 23 Sep 2009 05:32:25 -0000 1.18
@@ -113,6 +113,9 @@ rm -rf $RPM_BUILD_ROOT/build_static
rm -f $RPM_BUILD_ROOT/%{_mingw32_libdir}/charset.alias
+# Drop the GDB helper files as we can't use the native Fedora GDB to debug Win32 programs
+rm -f $RPM_BUILD_ROOT%{_mingw32_datadir}/gdb
+
# Remove the gtk-doc documentation and manpages which duplicate Fedora native
rm -rf $RPM_BUILD_ROOT%{_mingw32_mandir}
rm -rf $RPM_BUILD_ROOT%{_mingw32_datadir}/gtk-doc
14 years, 7 months
rpms/mingw32-glib2/devel .cvsignore, 1.10, 1.11 mingw32-glib2.spec, 1.16, 1.17 sources, 1.10, 1.11
by Erik van Pienbroek
Author: epienbro
Update of /cvs/pkgs/rpms/mingw32-glib2/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv27734
Modified Files:
.cvsignore mingw32-glib2.spec sources
Log Message:
Update to 2.22.0
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-glib2/devel/.cvsignore,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -p -r1.10 -r1.11
--- .cvsignore 5 Sep 2009 09:05:48 -0000 1.10
+++ .cvsignore 23 Sep 2009 05:12:40 -0000 1.11
@@ -1 +1 @@
-glib-2.21.6.tar.bz2
+glib-2.22.0.tar.bz2
Index: mingw32-glib2.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-glib2/devel/mingw32-glib2.spec,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -p -r1.16 -r1.17
--- mingw32-glib2.spec 18 Sep 2009 21:21:46 -0000 1.16
+++ mingw32-glib2.spec 23 Sep 2009 05:12:40 -0000 1.17
@@ -6,14 +6,14 @@
%define __debug_install_post %{_mingw32_debug_install_post}
Name: mingw32-glib2
-Version: 2.21.6
-Release: 2%{?dist}
+Version: 2.22.0
+Release: 1%{?dist}
Summary: MinGW Windows GLib2 library
License: LGPLv2+
Group: Development/Libraries
URL: http://www.gtk.org
-Source0: http://download.gnome.org/sources/glib/2.21/glib-%{version}.tar.bz2
+Source0: http://download.gnome.org/sources/glib/2.22/glib-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
@@ -176,6 +176,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Wed Sep 23 2009 Erik van Pienbroek <epienbro(a)fedoraproject.org. - 2.22.0-1
+- Update to 2.22.0
+
* Fri Sep 18 2009 Erik van Pienbroek <epienbro(a)fedoraproject.org> - 2.21.6-2
- Rebuild because of broken mingw32-gcc/mingw32-binutils
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-glib2/devel/sources,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -p -r1.10 -r1.11
--- sources 5 Sep 2009 09:05:48 -0000 1.10
+++ sources 23 Sep 2009 05:12:40 -0000 1.11
@@ -1 +1 @@
-3b0452fbd877db53dafabdc074600cb8 glib-2.21.6.tar.bz2
+e0bc5b08d467cc3763550923087772d3 glib-2.22.0.tar.bz2
14 years, 7 months
rpms/mingw32-sqlite/devel .cvsignore, 1.4, 1.5 mingw32-sqlite.spec, 1.10, 1.11 sources, 1.4, 1.5
by sailer
Author: sailer
Update of /cvs/extras/rpms/mingw32-sqlite/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv14562
Modified Files:
.cvsignore mingw32-sqlite.spec sources
Log Message:
update to match native
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/mingw32-sqlite/devel/.cvsignore,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -p -r1.4 -r1.5
--- .cvsignore 25 Jun 2009 10:18:52 -0000 1.4
+++ .cvsignore 20 Sep 2009 00:00:11 -0000 1.5
@@ -1 +1,2 @@
sqlite-3.6.14.2.tar.gz
+sqlite-3.6.17.tar.gz
Index: mingw32-sqlite.spec
===================================================================
RCS file: /cvs/extras/rpms/mingw32-sqlite/devel/mingw32-sqlite.spec,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -p -r1.10 -r1.11
--- mingw32-sqlite.spec 25 Jul 2009 14:31:41 -0000 1.10
+++ mingw32-sqlite.spec 20 Sep 2009 00:00:11 -0000 1.11
@@ -10,8 +10,8 @@
%global tclversion 8.5
Name: mingw32-sqlite
-Version: 3.6.14.2
-Release: 2%{?dist}
+Version: 3.6.17
+Release: 1%{?dist}
Summary: MinGW Windows port of sqlite embeddable SQL database engine
License: Public Domain
@@ -133,6 +133,9 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Sun Sep 20 2009 Thomas Sailer <t.sailer(a)alumni.ethz.ch> - 3.6.17-1
+- update to 3.6.17
+
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 3.6.14.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/mingw32-sqlite/devel/sources,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -p -r1.4 -r1.5
--- sources 25 Jun 2009 10:18:53 -0000 1.4
+++ sources 20 Sep 2009 00:00:11 -0000 1.5
@@ -1 +1 @@
-4c074691b48cd45854899ae4fece6301 sqlite-3.6.14.2.tar.gz
+f89f62afc765e08b3f0e47cdc47a15d4 sqlite-3.6.17.tar.gz
14 years, 7 months
Things to do for Fedora 12
by Erik van Pienbroek
Hi all,
In the last few weeks some issues have been raised which haven't been
resolved yet. As the development freeze for Fedora 12 is about to happen
in just over a month I want to propose a list of tasks which need to be
done before the Fedora 12 development freeze (the sooner the better). If
you think some items are missing from this list feel free to reply to
this message.
Update GCC
----------
Kalev Lember posted a message about this earlier today. The GCC version
which we currently use is a pre-release of GCC 4.4.0 so it's in
desperate need of an update. There's also a bugreport open about this at
[1].
Update to libjpeg 7
-------------------
At the moment we've got libjpeg-6 in the repository. This version of
libjpeg contains a typedef conflict as mentioned at [2]. Libjpeg-7 got
released recently and contains an (incomplete) fix for this problem. To
really solve this problem patches are required for libjpeg itself and
all dependent packages (libtiff, libjasper and gtk2). More about this in
the bugreport at [2].
Rename mingw32-pkg-config to i686-pc-mingw32-pkg-config
-------------------------------------------------------
Recently there was some discussion on this mailing list about improving
the compatibility with wine. One of the issues mentioned there was the
lack of a mingw-specific version of pkg-config. Right now we have a
script called mingw32-pkg-config, but this script doesn't get used when
using './configure --host=i686-pc-mingw32'. Therefore we need to rename
the mingw32-pkg-config script to i686-pc-mingw32-pkg-config. This change
shouldn't introduce any side effects. The corresponding bugreport about
this can be found at [3]. The bugreport at [4] may also be related to
this.
Debuginfo subpackages
---------------------
The discussion about this subject was done a while ago [5], but there
are still various mingw32 packages which lack debuginfo subpackages. For
packagers which didn't read that thread: In order to automatically
generate a -debuginfo subpackage you need to add 2 lines to your .spec
files:
%define __debug_install_post %{_mingw32_debug_install_post}
%{_mingw32_debug_package}
An example can be found at [6].
It should be doable to perform all these tasks this week. That should
give us enough time to test everything before the Fedora 12 development
freeze.
Regards,
Erik van Pienbroek
[1]: https://bugzilla.redhat.com/show_bug.cgi?id=510949
[2]: https://bugzilla.redhat.com/show_bug.cgi?id=497492
[3]: https://bugzilla.redhat.com/show_bug.cgi?id=513825
[4]: https://bugzilla.redhat.com/show_bug.cgi?id=509940
[5]:
http://lists.fedoraproject.org/pipermail/fedora-mingw/2009-June/001613.html
[6]:
http://cvs.fedoraproject.org/viewvc/rpms/mingw32-libsoup/devel/mingw32-li...
14 years, 7 months
rpms/mingw32-pixman/devel mingw32-pixman.spec,1.9,1.10
by Erik van Pienbroek
Author: epienbro
Update of /cvs/pkgs/rpms/mingw32-pixman/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv10956
Modified Files:
mingw32-pixman.spec
Log Message:
Rebuild because of broken mingw32-gcc/mingw32-binutils
Index: mingw32-pixman.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-pixman/devel/mingw32-pixman.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -p -r1.9 -r1.10
--- mingw32-pixman.spec 29 Aug 2009 20:56:33 -0000 1.9
+++ mingw32-pixman.spec 18 Sep 2009 21:54:41 -0000 1.10
@@ -7,7 +7,7 @@
Name: mingw32-pixman
Version: 0.16.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: MinGW Windows Pixman library
License: MIT
@@ -83,6 +83,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Fri Sep 18 2009 Erik van Pienbroek <epienbro(a)fedoraproject.org> - 0.16.0-2
+- Rebuild because of broken mingw32-gcc/mingw32-binutils
+
* Sat Aug 29 2009 Erik van Pienbroek <epienbro(a)fedoraproject.org> - 0.16.0-1
- Update to 0.16.0
14 years, 7 months
rpms/mingw32-libxml2/devel mingw32-libxml2.spec,1.11,1.12
by Erik van Pienbroek
Author: epienbro
Update of /cvs/pkgs/rpms/mingw32-libxml2/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv7898
Modified Files:
mingw32-libxml2.spec
Log Message:
Rebuild because of broken mingw32-gcc/mingw32-binutils
Index: mingw32-libxml2.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-libxml2/devel/mingw32-libxml2.spec,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -p -r1.11 -r1.12
--- mingw32-libxml2.spec 12 Sep 2009 18:51:28 -0000 1.11
+++ mingw32-libxml2.spec 18 Sep 2009 21:50:26 -0000 1.12
@@ -7,7 +7,7 @@
Name: mingw32-libxml2
Version: 2.7.4
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: MinGW Windows libxml2 XML processing library
License: MIT
@@ -131,6 +131,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Fri Sep 18 2009 Erik van Pienbroek <epienbro(a)fedoraproject.org> - 2.7.4-3
+- Rebuild because of broken mingw32-gcc/mingw32-binutils
+
* Sat Sep 12 2009 Erik van Pienbroek <epienbro(a)fedoraproject.org> - 2.7.4-2
- Always use the native win32 thread API even when pthreads is available
- Dropped a patch which isn't necessary anymore
14 years, 7 months
rpms/mingw32-libjpeg/devel mingw32-libjpeg.spec,1.5,1.6
by Erik van Pienbroek
Author: epienbro
Update of /cvs/pkgs/rpms/mingw32-libjpeg/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv3294
Modified Files:
mingw32-libjpeg.spec
Log Message:
Rebuild because of broken mingw32-gcc/mingw32-binutils
Index: mingw32-libjpeg.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-libjpeg/devel/mingw32-libjpeg.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- mingw32-libjpeg.spec 27 Aug 2009 20:42:36 -0000 1.5
+++ mingw32-libjpeg.spec 18 Sep 2009 21:43:14 -0000 1.6
@@ -11,7 +11,7 @@
Name: mingw32-libjpeg
Version: 7
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: MinGW Windows Libjpeg library
License: IJG
@@ -115,6 +115,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Fri Sep 18 2009 Erik van Pienbroek <epienbro(a)fedoraproject.org> - 7-2
+- Rebuild because of broken mingw32-gcc/mingw32-binutils
+
* Thu Aug 27 2009 Erik van Pienbroek <epienbro(a)fedoraproject.org> - 7-1
- Update to version 7
- Resolves typedef conflict (BZ #497492)
14 years, 7 months
rpms/mingw32-iconv/devel mingw32-iconv.spec,1.5,1.6
by Erik van Pienbroek
Author: epienbro
Update of /cvs/pkgs/rpms/mingw32-iconv/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv31084
Modified Files:
mingw32-iconv.spec
Log Message:
Rebuild because of broken mingw32-gcc/mingw32-binutils
Index: mingw32-iconv.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-iconv/devel/mingw32-iconv.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- mingw32-iconv.spec 7 Sep 2009 18:07:09 -0000 1.5
+++ mingw32-iconv.spec 18 Sep 2009 21:38:40 -0000 1.6
@@ -7,7 +7,7 @@
Name: mingw32-iconv
Version: 1.12
-Release: 11%{?dist}
+Release: 12%{?dist}
Summary: GNU libraries and utilities for character set conversion
License: GPLv2+ and LGPLv2+
@@ -94,6 +94,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Fri Sep 18 2009 Erik van Pienbroek <epienbro(a)fedoraproject.org> - 1.12-12
+- Rebuild because of broken mingw32-gcc/mingw32-binutils
+
* Mon Sep 7 2009 Erik van Pienbroek <epienbro(a)fedoraproject.org> - 1.12-11
- Fixed %%defattr line
- Added -static subpackage
14 years, 7 months