rpms/mingw32-filesystem/devel mingw32-filesystem.spec, 1.10, 1.11 mingw32-macros.mingw32, 1.6, 1.7
by Richard W.M. Jones
Author: rjones
Update of /cvs/pkgs/rpms/mingw32-filesystem/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv9161
Modified Files:
mingw32-filesystem.spec mingw32-macros.mingw32
Log Message:
- Don't claim C++ compiler exists if it's not installed, as this
breaks autoconf and (in particular) libtool.
Index: mingw32-filesystem.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-filesystem/devel/mingw32-filesystem.spec,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- mingw32-filesystem.spec 14 Jan 2009 10:20:03 -0000 1.10
+++ mingw32-filesystem.spec 24 Jan 2009 18:11:43 -0000 1.11
@@ -1,8 +1,8 @@
%define debug_package %{nil}
Name: mingw32-filesystem
-Version: 42
-Release: 1%{?dist}
+Version: 43
+Release: 6%{?dist}
Summary: MinGW base filesystem and environment
Group: Development/Libraries
@@ -145,6 +145,10 @@
%changelog
+* Sat Jan 24 2009 Richard W.M. Jones <rjones(a)redhat.com> - 43-6
+- Don't claim C++ compiler exists if it's not installed, as this
+ breaks autoconf and (in particular) libtool.
+
* Wed Jan 14 2009 Richard W.M. Jones <rjones(a)redhat.com> - 42-1
- Add pseudo-provides secur32.dll
Index: mingw32-macros.mingw32
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-filesystem/devel/mingw32-macros.mingw32,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- mingw32-macros.mingw32 18 Dec 2008 10:53:30 -0000 1.6
+++ mingw32-macros.mingw32 24 Jan 2009 18:11:43 -0000 1.7
@@ -55,16 +55,22 @@
%_mingw32_env HOST_CC=gcc; export HOST_CC; \
PKG_CONFIG_PATH="%{_mingw32_libdir}/pkgconfig"; export PKG_CONFIG_PATH; \
- CC="${MINGW32_CC:-%_mingw32_cc}"; export CC; \
- CXX="${MINGW32_CXX:-%_mingw32_cxx}"; export CXX; \
- CFLAGS="${MINGW32_CFLAGS:-%_mingw32_cflags}"; export CFLAGS; \
- CXXFLAGS="${MINGW32_CXXFLAGS:-%_mingw32_cflags}"; export CXXFLAGS; \
_PREFIX="%{_bindir}/%{_mingw32_target}-"; \
- for i in `ls ${_PREFIX}*|egrep -v "gcc-"`; do \
+ for i in `ls -1 ${_PREFIX}* | grep -v 'gcc-'`; do \
x=`echo $i|sed "s,${_PREFIX},,"|tr "a-z+-" "A-ZX_"`; \
declare -x $x="$i" ; export $x; \
done; \
unset _PREFIX; \
+ CC="${MINGW32_CC:-%_mingw32_cc}"; export CC; \
+ CFLAGS="${MINGW32_CFLAGS:-%_mingw32_cflags}"; export CFLAGS; \
+ if [ -x "%{_bindir}/%{_mingw32_cxx}" ]; then \
+ CXX="${MINGW32_CXX:-%_mingw32_cxx}"; export CXX; \
+ CXXFLAGS="${MINGW32_CXXFLAGS:-%_mingw32_cflags}"; export CXXFLAGS; \
+ else \
+ CXX=; export CXX; \
+ ac_cv_prog_CXX=no; export ac_cv_prog_CXX; \
+ CXXFLAGS=; export CXXFLAGS; \
+ fi; \
for i in `ls %{_mingw32_bindir}/*|grep -- "-config\$"` ; do \
x=`basename $i|tr "a-z+-" "A-ZX_"`; \
declare -x $x="$i" ; export $x; \
15 years, 3 months
[PATCH] Don't claim C++ compiler exists if it's not installed
by Richard W.M. Jones
I've just spent a good day tracking down a very odd and unreproducible
bug where libtool would fail to install DLLs properly.
It turns out this was caused because we set the CXX and CXXFLAGS for
./configure even if there is no C++ compiler actually installed
(ie. if mingw32-gcc-c++ is not installed). Autoconf and libtool get
very confused by this. It appears they believe you if you claim the
compiler is installed (even though patently nothing works) but then
all of their tests fail and you get a broken libtool.
The attached patch fixes this by setting CXX and CXXFLAGS to the empty
string if the C++ compiler isn't detected. I've also moved the
automatic variables above the C/C++ compiler specific setting, so that
the automatic variables don't override what we are specifically
setting.
I'm going to apply this, although at the moment I'm also chasing a
second bug.
Rich.
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v
15 years, 3 months
rpms/mingw32-gettext/devel mingw32-gettext.spec,1.1,1.2
by Richard W.M. Jones
Author: rjones
Update of /cvs/pkgs/rpms/mingw32-gettext/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv6847
Modified Files:
mingw32-gettext.spec
Log Message:
Use find_lang macro.
Index: mingw32-gettext.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-gettext/devel/mingw32-gettext.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- mingw32-gettext.spec 17 Jan 2009 11:38:26 -0000 1.1
+++ mingw32-gettext.spec 23 Jan 2009 11:20:49 -0000 1.2
@@ -6,7 +6,7 @@
Name: mingw32-gettext
Version: 0.17
-Release: 7%{?dist}
+Release: 8%{?dist}
Summary: GNU libraries and utilities for producing multi-lingual messages
License: GPLv2+ and LGPLv2+
@@ -68,12 +68,14 @@
rm -rf $RPM_BUILD_ROOT%{_mingw32_mandir}/man1/
rm -rf $RPM_BUILD_ROOT%{_mingw32_mandir}/man3/
+%find_lang %{name} --all-name
+
%clean
rm -rf $RPM_BUILD_ROOT
-%files
+%files -f %{name}.lang
%defattr(-,root,root)
%doc COPYING
%{_mingw32_bindir}/autopoint
@@ -121,11 +123,11 @@
%{_mingw32_datadir}/info/autosprintf.info
%{_mingw32_datadir}/info/gettext.info
-%{_mingw32_datadir}/locale/*/LC_MESSAGES/gettext-tools.mo
-%{_mingw32_datadir}/locale/*/LC_MESSAGES/gettext-runtime.mo
-
%changelog
+* Fri Jan 23 2009 Richard W.M. Jones <rjones(a)redhat.com> - 0.17-8
+- Use find_lang macro.
+
* Fri Jan 16 2009 Richard W.M. Jones <rjones(a)redhat.com> - 0.17-7
- Remove the manpages - already available in base Fedora gettext-devel.
- Use _smp_mflags for build.
15 years, 3 months
Link errors in dbus-glib binding
by Ryan McDougall
The following error:
i686-pc-mingw32-gcc -g -O2 -Wall -Wchar-subscripts
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs
-Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -o
dbus-binding-tool.exe dbus-binding-tool-glib.o dbus-glib-tool.o
./.libs/libdbus-gtool.a -L/lib ./.libs/libdbus-glib-1.a
-L/usr/i686-pc-mingw32/sys-root/mingw/lib -ldbus-1
/usr/i686-pc-mingw32/sys-root/mingw/lib/libgobject-2.0.dll.a
/usr/i686-pc-mingw32/sys-root/mingw/lib/libglib-2.0.dll.a -lws2_32
-lole32 /usr/i686-pc-mingw32/sys-root/mingw/lib/libintl.dll.a
/usr/i686-pc-mingw32/sys-root/mingw/lib/libiconv.dll.a
/usr/i686-pc-mingw32/sys-root/mingw/lib/libexpat.dll.a
-L/usr/i686-pc-mingw32/sys-root/mingw/lib
-L/usr/i686-pc-mingw32/sys-root/mingw/lib
Info: resolving _g_ascii_table by linking to __imp__g_ascii_table (auto-import)
Info: resolving _g_threads_got_initialized by linking to
__imp__g_threads_got_initialized (auto-import)
Info: resolving _g_thread_use_default_impl by linking to
__imp__g_thread_use_default_impl (auto-import)
Info: resolving _g_thread_functions_for_glib_use by linking to
__imp__g_thread_functions_for_glib_use (auto-import)
/usr/lib/gcc/i686-pc-mingw32/4.3.2/../../../../i686-pc-mingw32/bin/ld:
warning: auto-importing has been activated without
--enable-auto-import specified on the command line.
This should work unless it involves constant data structures
referencing symbols from auto-imported DLLs.
dbus-binding-tool-glib.o: In function `dbus_binding_tool_output_glib_server':
/home/ryanm/Code/dbus-glib/dbus/dbus-binding-tool-glib.c:802:
undefined reference to `_g_file_open_tmp'
/home/ryanm/Code/dbus-glib/dbus/dbus-binding-tool-glib.c:830:
undefined reference to `_g_spawn_async_with_pipes'
dbus-glib-tool.o: In function `main':
/home/ryanm/Code/dbus-glib/dbus/dbus-glib-tool.c:392: undefined
reference to `_g_io_channel_new_file'
./.libs/libdbus-gtool.a(dbus-gloader-expat.o): In function
`description_load_from_file':
/home/ryanm/Code/dbus-glib/dbus/dbus-gloader-expat.c:176: undefined
reference to `_g_file_get_contents'
collect2: ld returned 1 exit status
The link errors are to functions in glib.
[ryanm@localhost dbus-glib]$ rpm -qa |grep mingw32 |grep glib
mingw32-glib2-2.18.1-2.fc10.noarch
mingw32-glibmm24-2.18.1-2.fc10.noarch
Any ideas/hints?
Cheers,
15 years, 3 months
Question on Porting configure.ac
by Ryan McDougall
I have found the existence of the following kind of code in configure.ac
#### Abstract sockets
#AC_LANG_PUSH(C)
#AC_CACHE_CHECK([abstract socket namespace],
# ac_cv_have_abstract_sockets,
# [AC_RUN_IFELSE([AC_LANG_PROGRAM(
#[[
##include <sys/types.h>
##include <stdlib.h>
##include <string.h>
##include <stdio.h>
##include <sys/socket.h>
##include <sys/un.h>
##include <errno.h>
#]],
#[[
# int listen_fd;
# struct sockaddr_un addr;
#
# listen_fd = socket (PF_UNIX, SOCK_STREAM, 0);
#
# if (listen_fd < 0)
# {
# fprintf (stderr, "socket() failed: %s\n", strerror (errno));
# exit (1);
# }
#
# memset (&addr, '\0', sizeof (addr));
# addr.sun_family = AF_UNIX;
# strcpy (addr.sun_path, "X/tmp/dbus-fake-socket-path-used-in-configure-test");
# addr.sun_path[0] = '\0'; /* this is what makes it abstract */
#
# if (bind (listen_fd, (struct sockaddr*) &addr, SUN_LEN (&addr)) < 0)
# {
# fprintf (stderr, "Abstract socket namespace bind() failed: %s\n",
# strerror (errno));
# exit (1);
# }
# else
# exit (0);
#]])],
# [ac_cv_have_abstract_sockets=yes],
# [ac_cv_have_abstract_sockets=no]
#)])
#AC_LANG_POP(C)
I am no autotools expert. How can I change this to work without
brute-force commenting it out?
Cheers,
15 years, 3 months
Talk about Windows cross-compilation, London, 31st Jan 2009
by Richard W.M. Jones
For anyone who wants to come, I am giving a talk and practical
demonstration of Windows cross-compilation using Fedora.
Date: Sat 31st Jan 2009
Location: University of Westminster, New Cavendish Street, W1W 6UW
(map: http://www.gllug.org.uk/index.php?/archives/P2.html)
Time: Not finalized yet, but probably from 2pm.
Final details will appear on the GLLUG website later this week:
http://www.gllug.org.uk/
Rich.
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top
15 years, 3 months
mingwmaint account
by Richard W.M. Jones
I added a mingwmaint account in FAS & Bugzilla. This account does
nothing, but directs CVS commits and new Bugzilla bugs to this mailing
list.
Rich.
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top
15 years, 3 months
libeay32.dll + ssleay32.dll
by itamar
libeay32.dll + ssleay32.dll
php binary's have these dll's , where these library's come from ? openssl ?
these files is needed to activate ssl in postgresql/libpq
------------
Itamar Reis Peixoto
e-mail/msn: itamar(a)ispbrasil.com.br
sip: itamar(a)ispbrasil.com.br
skype: itamarjp
icq: 81053601
+55 11 4063 5033
+55 34 3221 8599
15 years, 3 months
rpms/mingw32-zlib/devel mingw32-zlib.spec,1.1,1.2
by Richard W.M. Jones
Author: rjones
Update of /cvs/pkgs/rpms/mingw32-zlib/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24936
Modified Files:
mingw32-zlib.spec
Log Message:
Force rebuild to test maintenance account.
Index: mingw32-zlib.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-zlib/devel/mingw32-zlib.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- mingw32-zlib.spec 21 Dec 2008 11:13:20 -0000 1.1
+++ mingw32-zlib.spec 19 Jan 2009 19:08:01 -0000 1.2
@@ -6,7 +6,7 @@
Name: mingw32-zlib
Version: 1.2.3
-Release: 11%{?dist}
+Release: 12%{?dist}
Summary: MinGW Windows zlib compression library
License: zlib
@@ -89,6 +89,9 @@
%changelog
+* Mon Jan 19 2009 Richard W.M. Jones <rjones(a)redhat.com> - 1.2.3-12
+- Force rebuild to test maintenance account.
+
* Thu Dec 18 2008 Richard W.M. Jones <rjones(a)redhat.com> - 1.2.3-11
- Pass correct CFLAGS to build.
15 years, 3 months