filesystem patch
by Farkas Levente
hi,
i review this %_mingw32_make macro again. i can't find any better
solution than implement it separately from %_mingw32_makeinstall.
probably most of the case it's not used inside spec file, but even if i
used it will work and use the runtime used directories (the only
exception %_mingw32_make install, but there is the %_mingw32_makeinstall
macro for this).
it's working on fedora and rhel/centos too and mingw32-make outside of
spec also working.
i hope it'd be ok (and if you like i'll do the epel build).
yours.
--
Levente "Si vis pacem para bellum!"
Index: mingw32-filesystem.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-filesystem/devel/mingw32-filesystem.spec,v
retrieving revision 1.7
diff -u -u -r1.7 mingw32-filesystem.spec
--- mingw32-filesystem.spec 6 Dec 2008 14:33:41 -0000 1.7
+++ mingw32-filesystem.spec 17 Dec 2008 14:23:26 -0000
@@ -75,7 +75,7 @@
mkdir -p $RPM_BUILD_ROOT%{_bindir}
pushd $RPM_BUILD_ROOT%{_bindir}
-for i in mingw32-configure ; do
+for i in mingw32-configure mingw32-make; do
ln -s %{_libexecdir}/mingw32-scripts $i
done
popd
@@ -136,13 +136,16 @@
%config(noreplace) %{_sysconfdir}/rpm/macros.mingw32
%config(noreplace) %{_sysconfdir}/profile.d/mingw32.sh
#%config(noreplace) %{_sysconfdir}/profile.d/mingw32.csh
-%{_bindir}/mingw32-configure
+%{_bindir}/mingw32-*
%{_libexecdir}/mingw32-scripts
%{_prefix}/i686-pc-mingw32/
/usr/lib/rpm/mingw32-*
%changelog
+* Wed Dec 17 2008 Levente Farkas <lfarkas(a)lfarkas.org> - 40-3
+- Re-add mingw32-make
+
* Sat Dec 6 2008 Levente Farkas <lfarkas(a)lfarkas.org> - 40-2
- Rewrite mingw32-scripts to run in the current shell
- (Re-add mingw32-make) - Removed by RWMJ.
Index: mingw32-macros.mingw32
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-filesystem/devel/mingw32-macros.mingw32,v
retrieving revision 1.5
diff -u -u -r1.5 mingw32-macros.mingw32
--- mingw32-macros.mingw32 6 Dec 2008 14:33:41 -0000 1.5
+++ mingw32-macros.mingw32 17 Dec 2008 14:23:26 -0000
@@ -93,6 +93,22 @@
%_mingw32_make %{_mingw32_env} ; \
make \\\
+ prefix=%{_mingw32_prefix} \\\
+ exec_prefix=%{_mingw32_exec_prefix} \\\
+ bindir=%{_mingw32_bindir} \\\
+ sbindir=%{_mingw32_sbindir} \\\
+ sysconfdir=%{_mingw32_sysconfdir} \\\
+ datadir=%{_mingw32_datadir} \\\
+ includedir=%{_mingw32_includedir} \\\
+ libdir=%{_mingw32_libdir} \\\
+ libexecdir=%{_mingw32_libexecdir} \\\
+ localstatedir=%{_mingw32_localstatedir} \\\
+ sharedstatedir=%{_mingw32_sharedstatedir} \\\
+ mandir=%{_mingw32_mandir} \\\
+ infodir=%{_mingw32_infodir}
+
+%_mingw32_makeinstall %{_mingw32_env} ; \
+ make \\\
prefix=%{?buildroot:%{buildroot}}%{_mingw32_prefix} \\\
exec_prefix=%{?buildroot:%{buildroot}}%{_mingw32_exec_prefix} \\\
bindir=%{?buildroot:%{buildroot}}%{_mingw32_bindir} \\\
@@ -105,6 +121,6 @@
localstatedir=%{?buildroot:%{buildroot}}%{_mingw32_localstatedir} \\\
sharedstatedir=%{?buildroot:%{buildroot}}%{_mingw32_sharedstatedir} \\\
mandir=%{?buildroot:%{buildroot}}%{_mingw32_mandir} \\\
- infodir=%{?buildroot:%{buildroot}}%{_mingw32_infodir}
+ infodir=%{?buildroot:%{buildroot}}%{_mingw32_infodir} \\\
+ install
-%_mingw32_makeinstall %{_mingw32_make} install
15 years, 3 months
cflags
by Farkas Levente
hi,
what was the reason to not add -fstack-protector to mingw's cflags?
i didn't see the reason.
--
Levente "Si vis pacem para bellum!"
15 years, 3 months
mingw32-pthreads
by Farkas Levente
hi,
thoughts about mingw32-pthreads:
replace %{crazy_version} with `echo %{version}|tr . -`
in the build section put the clean after the first build:
make clean
make CROSS=%{_mingw32_host}- GC-inlined
make CROSS=%{_mingw32_host}- GCE-inlined
afais GCE-inlined has different defines so probably a clean would be
useful before it.
add -mms-bitfields or even better %_mingw32_cflags to OPT probably only
way to do this is a patch for the makefile. the same applys to the
CFLAGS in the test dir.
anyway it's a clear package.
--
Levente "Si vis pacem para bellum!"
15 years, 3 months
RPM_OPT_FLAGS
by Farkas Levente
hi,
digging into this -mms-bitfields problem (and openssl package) i come to
the conclusion it'd be better if we can solve the whole cflags issue in
some more general way. ie. currently rpm use RPM_OPT_FLAGS which use
optflags which defined in /usr/lib/rpm/rpmrc and /usr/lib/rpm/**/macros.
it'd be better if we somehow can define that the current build's
platform is win32 and rpm set all flags according to it. this's exactly
what i do in %_mingw32_env, but if we can use some kind of rpm internal
mechanism, then probably we can build much more easily native fedora
packages. eg in case of openssl the native package hack Configure in
openssl-0.9.8g-redhat.patch to use RPM_OPT_FLAGS. so we can use the same
patch the same mechanism to for mingw too and in this case it'll work
for all packages (where we'll forget about -mms-bitfields and may be
other flags).
in case of openssl we still need some ugly hack but in case of other
packages this may help a lot.
is there any rpm gurus here?
yours.
--
Levente "Si vis pacem para bellum!"
15 years, 3 months
zlib, bzip2, termcap, iconv, sqlite imported
by Richard W.M. Jones
Thanks to Peter Robinson, Adam Tkac, Erik van Pienbroek, we've now
reviewed and imported these 5 packages.
mingw32-sqlite can't be built yet because it has some dependencies
that are still being reviewed.
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, 4 months
Re: mingw32-filesystem, mingw32-w32api, mingw32-runtime
by Richard W.M. Jones
(CC-ing to the mailing list with the original patches)
On Thu, Dec 18, 2008 at 12:52:19AM +0100, Fridrich Strba wrote:
> I was doing some cloning of your Rawhide packages for my personal use
> and I discovered a bug in the _mingw32_make macro and also maybe some
> reasons why.
>
> Setting the prefix to %{buildroot}%{prefix} is not seen as flawed now,
> but with more and more cross-built packages it will show that the
> libtool archive (*.la) files will give wrong prefix and result somehow
> also in linking errors.
I'm a bit confused by what the mistake is .. The *.la files we are
generating now seem to have correct paths inside them. Can you point
to an example where there is a problem?
> I think that the reason is basically the w32api and mingwrt package
> where make install does not honour DESTDIR setting. Find attached two
> patches that will make that DESTDIR to be respected.
>
> Also, I sent a proposed (IMHO better) mingw32 macros files. Note that
> the CLASSPATH variable is not useful for you people if you don't
> distribute the mingw32-gcc-java cross-compiler that I personally use for
> building of some java bindings of my private libraries. But the
> _mingw32_make and _mingw32_makeinstall macros could be considered I
> guess. I even make the mingw32-make symlink because several non-libtool
> applications cross-compile much better using mingw32-make which sets all
> the needed env variables.
Rich.
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://et.redhat.com/~rjones/virt-df/
15 years, 4 months
HOW TO INSTALL CROSS COMPILATION IN FEDORA
by pratyus priyadarsi
Hi,
I am doing gtk project in fedora.i want this executables to run at windows
platform also.
Thats why i am using cross compilation tools.
Can u pls describe how to install minGW and other related dependencies in
fedora.
Thanks,
Pratyus
15 years, 4 months
HOW TO INSTALL CROSS COMPILATION IN FEDORA
by pratyus priyadarsi
Hi,
I am doing gtk project in fedora.i want this executables to run at windows
platform also.
Thats why i am using cross compilation tools.
Can u pls describe how to install minGW and other related dependencies in
fedora.
15 years, 4 months
w32api-3.13
by Farkas Levente
hi,
there is a newer 3.13 w32api released, it'd be useful to update.
--
Levente "Si vis pacem para bellum!"
15 years, 4 months
filesystem patch?
by Farkas Levente
hi,
did you review my past filesystem patch?
in the next week i'm plan to review these packages in that order (it's
the dependency order):
mingw32-iconv
mingw32-termcap
mingw32-zlib
mingw32-libpng
mingw32-libjpeg
mingw32-gettext
mingw32-glib2
mingw32-freetype
mingw32-atk
mingw32-pixman
mingw32-libxml2
mingw32-fontconfig
mingw32-cairo
mingw32-pango
mingw32-openssl
mingw32-pthreads
and may be a few other smaller ones.
but my next week will be very busy so i don't now when.
--
Levente "Si vis pacem para bellum!"
15 years, 4 months