--- mingw32-4.2.1.dfsg.orig/debian/copyright +++ mingw32-4.2.1.dfsg/debian/copyright @@ -0,0 +1,8 @@ +This package was debianized by Ron Lee + +It's components are available from www.mingw.org + +binutils, cygwin/mingw and gcc are all licenced under the terms of +the GNU GPL. A copy of it can be found in /usr/share/common-licenses +on Debian systems. + --- mingw32-4.2.1.dfsg.orig/debian/control +++ mingw32-4.2.1.dfsg/debian/control @@ -0,0 +1,19 @@ +Source: mingw32 +Section: devel +Priority: optional +Build-Depends: mingw32-binutils, mingw32-runtime, debhelper (>= 4.0), gettext, bison, flex, perl, texinfo +Maintainer: Ron Lee +Standards-Version: 3.7.2.2 + +Package: mingw32 +Architecture: any +Depends: mingw32-binutils, mingw32-runtime (>= 3.7), ${shlibs:Depends} +Suggests: gcc-doc, cpp-doc +Description: Minimalist GNU win32 (cross) compiler + A Linux hosted, win32 target, cross compiler for C/C++ + . + Freedom through obsolescence. Those who still really need to + can now build windows executables from the comfort of Debian. + . + This package contains the C and C++ cross compilers. + --- mingw32-4.2.1.dfsg.orig/debian/changelog +++ mingw32-4.2.1.dfsg/debian/changelog @@ -0,0 +1,281 @@ +mingw32 (4.2.1.dfsg-1) unstable; urgency=low + + * New upstream. Unfortunately this one was a monolithic blob made on a + billware system :( ... and they'd been doing so well for so long! + The upstream tarball has had GFDL docs, and other stuff we don't need, + pruned from it again. + + -- Ron Lee Sun, 23 Sep 2007 03:11:46 +0930 + +mingw32 (3.4.5.20060117.1.dfsg-3) unstable; urgency=low + + * Rebuild with runtime 3.12. + * Drop the symlinks broken by the removal of the documentation, + having them dangling annoys some people, and if this is going to + stay in main, then it really is a binary without a manpage problem. + + -- Ron Lee Sun, 27 May 2007 22:05:54 +0930 + +mingw32 (3.4.5.20060117.1.dfsg-2) unstable; urgency=high + + * Very minor changes, but urgency remains high as they are errata for the + previous upload. + * Bump standards version to 3.7.2.2 + * Suggest the gcc-doc and cpp-doc packages. + * Fix the symlinks broken by removal of the documentation. Closes: #404116 + + -- Ron Lee Sat, 23 Dec 2006 15:13:58 +1030 + +mingw32 (3.4.5.20060117.1.dfsg-1) unstable; urgency=high + + * Only change since the last upload is to remove GFDL documentation + which we cannot release in main. Closes: #392953 + Thanks to all who helped clarify the situation. + * Removed libstdc++-v3/docs/html/17_intro/porting.{html,texi} from g++ + GFDL with invariant sections. + * Remove references to them from libstdc++-v3/docs/html/Makefile + * Removed INSTALL/, gcc/doc/ and gcc/treelang/treelang.texi from gcc core + GFDL with invariant sections. + * Undefine BUILD_INFO and GENERATED_MANPAGES in gcc/configure.ac + * Remove install-man and install-info from the gcc/Makefile.in install target + * There is no plan to provide these docs in a separate package, these + packages have always relied on the native gcc packages for documentation, + as it includes even the billware specific options. + * This release is otherwise the same as 3.4.5.20060117.1-1, it does not + include the libxlocale support mentioned in -2 to -6 below. + + -- Ron Lee Tue, 16 Dec 2006 01:44:28 +1030 + +mingw32 (3.4.5.20060117.1-6) unstable; urgency=low + + * Remove some redundancies, better libxlocale detection. + + -- Ron Lee Tue, 21 Mar 2006 15:36:28 +1030 + +mingw32 (3.4.5.20060117.1-5) unstable; urgency=low + + * A more concise set of patches to submit, and a more complete libxlocale. + + -- Ron Lee Mon, 20 Mar 2006 12:48:18 +1030 + +mingw32 (3.4.5.20060117.1-4) unstable; urgency=low + + * Start to clean it up for release and fill in the missing glue. + + -- Ron Lee Thu, 16 Mar 2006 03:52:26 +1030 + +mingw32 (3.4.5.20060117.1-3) unstable; urgency=low + + * Next shot, enable all the gnu specialisations, replace the __GLIBC__ + tests with HAVE__XLOCALE, and supply it externally. + + -- Ron Lee Sat, 11 Mar 2006 18:59:41 +1030 + +mingw32 (3.4.5.20060117.1-2) unstable; urgency=low + + * Experimemtal build with GNU i18n support. Take2. + * Use Bruno's AM_ICONV macro to detect libiconv, the existing libstdc++ + test does not work to find it. + * Crowbar HAVE_NL_LANGINFO for mingw temporarily. We will have a working + implementation soon enough though. + * Add a hybrid gnu/generic locale config, containing what works from the + gnu set in the present state. + + -- Ron Lee Fri, 24 Feb 2006 20:02:02 +1030 + +mingw32 (3.4.5.20060117.1-1) unstable; urgency=low + + * New upstream. + + -- Ron Lee Sun, 29 Jan 2006 19:14:53 +1030 + +mingw32 (3.4.4.20050522.1-2) unstable; urgency=low + + * Add build-dep for bison, flex, texinfo. + + -- Ron Lee Sat, 8 Oct 2005 18:17:00 +0930 + +mingw32 (3.4.4.20050522.1-1) unstable; urgency=low + + * New upstream. + + -- Ron Lee Fri, 7 Oct 2005 13:18:12 +0930 + +mingw32 (3.4.2.20040916.1-2) unstable; urgency=low + + * enable sjlj exceptions. Dwarf exception handling is currently + not supported, but this needs to be selected manually for the + present. Thanks to all who helped pin it down. Closes: #290425 + (and a similar bug reported against binutils). + * Depend explicitly on runtime >=3.7 since the above is not a + binary compatible change. You will need to update your + mingwm10.dll from the new runtime package if you use this compiler. + + -- Ron Lee Mon, 7 Feb 2005 15:11:55 +1030 + +mingw32 (3.4.2.20040916.1-1) unstable; urgency=low + + * New upstream. + * Update rules for gcc shifting dirs from lib/gcc-lib to lib/gcc for 3.4 + and remove some cleanup for things now clean enough out of the box. + + -- Ron Lee Wed, 10 Nov 2004 18:50:40 +1030 + +mingw32 (3.3.3.200402017.1-1) unstable; urgency=low + + * New upstream. + * Updated rules to automatically determine the upstream package version. + * Override lintian's broken md5sum check that thinks hard links + don't exist. Don't bother telling me they are evil, I've seen + "The ususal suspects". + + -- Ron Lee Mon, 8 Mar 2004 17:23:03 +1030 + +mingw32 (3.3.1.20030804.1-1) unstable; urgency=low + + * New upstream. Closes: #201112, #207996 + + -- Ron Lee Sun, 26 Oct 2003 19:48:10 +1030 + +mingw32 (3.2.1.20021201.3-1) unstable; urgency=low + + * Freedom is something you assume until someone tries to take it away. + The extent to which you resist is the extent to which you are Free. + Or so the saying goes. The extent to which you upgrade to the "most + stable and secure version of Windows yet" on the other hand... + Well, you figure it out. + * New gcc release. + * Closes: #158921 Can't reproduce and its against a much older release. + * Upstream chooses not to include getopt, its a GPL part of glibc and + this is a compiler for the billware runtime. Or something like that. + My answer is, I'll include it if they do. Until then, the place to + fan the flames would be: mingw-users@lists,sourceforge.net Sorry. + Closes: #178056 + * PATH is evil :-) The upstream packages do not install like this by + default, so unless someone can show me policy or similar established + practice to back this up, I'm closing this one too. See the advice + above. Closes: #165848 + * vfw.h remains uncontributed. See the upstream clean room requirements + before 'helping' with this one though. + * Closes: #175818 I hope... + * Package is now arch all. I'll see your sponsored "Linux Software" link + to m$ studio.NET on Google and raise you some real portability :-p + Let's see 'em explain this one away from their stall at LinuxWorld. + Closes: #176627 + + -- Ron Lee Thu, 23 Jan 2003 22:42:05 -0800 + +mingw32 (3.2-1) unstable; urgency=low + + * The "gcc-3.2 or bust" release. + * No really, 2.95.3.8 is busted all to hell, so if you want + an update, this is it. If you still need 2.95, better + stick with the old package, I've still to see a more current + version of it that builds and works inside Debian's packaging + constraints, so this may be the end of that line unless someone + shows interest in fixing it upstream. + + -- Ron Lee Thu, 10 Oct 2002 21:58:59 -0700 + +mingw32 (2.95.3.8.20020922-1) unstable; urgency=low + + * gcc-2.95.3-8-20020922-1, runtime2.2 + * split binutils into a separate source package to improve + the chances of a full build actually working with current + upstream source. + + -- Ron Lee Wed, 9 Oct 2002 20:07:25 -0700 + +mingw32 (2.95.3.7.1-2) unstable; urgency=low + + * Rebuilt with w32api-2.0 + Closes: #158921 which I can't reproduce and may be related to + #133718. Please reopen if this still doesn't Work For You. + + -- Ron Lee Sun, 1 Sep 2002 17:06:57 -0700 + +mingw32 (2.95.3.7.1-1) unstable; urgency=low + + * New binutils release, rebuilt with 2.1 runtime. + * gasp is gone by some upstream whim. + * Added build-dep for gettext. Closes: #133718 + * Added compilercache symlinks. If would be even nicer if we had a + common mechanism for _all_ such caching wrappers, since a lot of + people seem to be writing them right now.. + + -- Ron Lee Mon, 15 Jul 2002 20:10:41 -0700 + +mingw32 (2.95.3.7-3) unstable; urgency=medium + + * Rebuilt with 1.2 runtime. + + -- Ron Lee Fri, 7 Dec 2001 15:18:00 -0800 + +mingw32 (2.95.3.7-2) unstable; urgency=medium + + * Remove upstream locale files from the package. + Closes: #122052 + + -- Ron Lee Sat, 1 Dec 2001 19:49:43 -0800 + +mingw32 (2.95.3.7-1) unstable; urgency=low + + * New upstream gcc and binutils. + - enables use of fastcall + - fixes a bug in gcc profiling and changes gcc's handling of win32 + threads. + - fixes two long-standing bugs in windres affecting FONT attributes + and child dialog boxes + + -- Ron Lee Tue, 13 Nov 2001 10:10:33 -0700 + +mingw32 (2.95.3.6.20010915-2) unstable; urgency=low + + * Rebuilt with mingw32-runtime-1.1 + + -- Ron Lee Mon, 17 Sep 2001 10:10:33 -0700 + +mingw32 (2.95.3.6.20010915-1) unstable; urgency=low + + * new upstream binutils. + + -- Ron Lee Sun, 16 Sep 2001 22:42:22 -0700 + +mingw32 (2.95.3.6-1) unstable; urgency=low + + * new upstream gcc. Uses 8 byte struct alignment again + like other 'doze compilers. + * Removed headers that conflict with binutils-dev + package. Closes #110169 + + -- Ron Lee Tue, 28 Aug 2001 14:03:56 -0700 + +mingw32 (2.95.3.5-1) unstable; urgency=low + + * new upstream release(s) + * split runtime files into a separate package, + partly to resolve a circular dep in the build + and partly because this package should one day + merge with the 'mainstream' gcc & binutils source. + * enable version specific runtime libs. Closes: #96052 + * Keeping the target as i586. Closes: #90597 + + -- Ron Lee Fri, 10 Aug 2001 11:41:57 -0700 + +mingw32 (2.95.2.7-2) unstable; urgency=low + + * changed target to i586-mingw32msvc since the target os + won't even run on i386 anyway. + * removed (deprecated) call to dh_testversion + + -- Ron Lee Mon, 19 Mar 2001 06:17:16 -0800 + +mingw32 (2.95.2.7-1) unstable; urgency=low + + * Initial Release. + + -- Ron Lee Mon, 29 Jan 2001 04:47:46 -0800 + +Local variables: +mode: debian-changelog +End: --- mingw32-4.2.1.dfsg.orig/debian/rules +++ mingw32-4.2.1.dfsg/debian/rules @@ -0,0 +1,173 @@ +#!/usr/bin/make -f +# +# debian/rules file to build a Mingw32 cross compiler toolchain. +# +# Created 30 Jan 2001, by Ron Lee + +#export DH_VERBOSE=1 + +package = mingw32 +target = i586-mingw32msvc + +top_dir := $(shell pwd) +upstream_dir := $(top_dir)/upstream +patch_dir := $(top_dir)/debian/patches +build_dir := $(top_dir)/build_dir +build_src := $(build_dir)/src +build_objs := $(build_dir)/objs + +man1dir = usr/share/man/man1 + +#XXX +version_extra := -sjlj +version := $(shell expr $(notdir $(wildcard $(upstream_dir)/gcc-core*)) : gcc-core-\\\([^-]*\\\))$(version_extra) +release := $(shell expr $(notdir $(wildcard $(upstream_dir)/gcc-core*)) : gcc-core-\\\(.*\\\)-src) +upstream_packages := $(patsubst %-src.tar,%,$(basename $(notdir $(wildcard $(upstream_dir)/gcc-*)))) + +ifneq ($(words $(version)),1) + $(error version defined as '$(version)') +endif + +ifneq ($(words $(release)),1) + $(error release defined as '$(release)') +endif + + +build : build-stamp + +configure-stamp : unpack-stamp + dh_testdir + mkdir -p $(build_objs) + cd $(build_objs) \ + && $(build_src)/gcc-$(release)/configure -v \ + --prefix=/usr \ + --target=$(target) \ + --enable-languages=c,c++ \ + --enable-threads \ + --enable-sjlj-exceptions \ + --disable-multilib \ + --enable-version-specific-runtime-libs + touch $@ + +build-stamp : configure-stamp + dh_testdir + cd $(build_objs) && $(MAKE) + + touch $@ + + +install : install-stamp + +install-stamp : build-stamp + dh_testdir + dh_testroot + dh_clean -k + + dh_installdirs usr/share/lintian/overrides + cd $(build_objs) \ + && $(MAKE) install prefix=$(top_dir)/debian/$(package)/usr \ + mandir=$(top_dir)/debian/$(package)/usr/share/man + + # remove some non-cross stuff that will clash with other packages + # and shuffle things about as required. + rm -rf debian/$(package)/usr/include + rm -rf debian/$(package)/usr/info + rm -rf debian/$(package)/usr/share/locale + rm debian/$(package)/usr/lib/*a + rm -rf debian/$(package)/usr/share/man/man7 + + # install override for the non fhs target dir gcc wants to use + # (until we find a better solution or change policy) + cp debian/lintian-overrides debian/$(package)/usr/share/lintian/overrides/$(package) + + touch $@ + + +unpack-stamp: + dh_testdir + mkdir -p $(build_src) + + # unpack upstream tarballs + @cd $(build_src) \ + && for f in $(upstream_packages) ; do \ + echo "unpacking $$f"; \ + if [ -r $(upstream_dir)/$$f-src.tar.gz ]; then \ + tar zxf $(upstream_dir)/$$f-src.tar.gz; \ + elif [ -r $(upstream_dir)/$$f-src.tar.bz2 ]; then \ + tar jxf $(upstream_dir)/$$f-src.tar.bz2; \ + else \ + echo " *** Error: Failed to unpack $$f"; \ + exit 1; \ + fi; \ + done; + + # apply any patches + @cd $(build_src) \ + && for p in $(wildcard $(patch_dir)/*.patch); do \ + patch -p0 < $$p; \ + done; + + touch $@ + + +clean: + dh_testdir + dh_testroot + rm -rf $(build_dir) *-stamp + dh_clean + + +binary-indep: +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs + + # Don't make symlinks to the non-free docs, + # some people seem happy enough to do without them +# dh_link $(man1dir)/cpp.1.gz $(man1dir)/$(target)-cpp.1.gz \ +# $(man1dir)/g++.1.gz $(man1dir)/$(target)-g++.1.gz \ +# $(man1dir)/gcc.1.gz $(man1dir)/$(target)-gcc.1.gz \ +# $(man1dir)/gcov.1.gz $(man1dir)/$(target)-gcov.1.gz \ +# $(man1dir)/gccbug.1.gz $(man1dir)/$(target)-gccbug.1.gz\ +# $(man1dir)/$(target)-g++.1.gz $(man1dir)/$(target)-c++.1.gz \ +# $(man1dir)/$(target)-gcc.1.gz $(man1dir)/$(target)-cc.1.gz \ +# $(man1dir)/$(target)-gcc.1.gz $(man1dir)/$(target)-gcc-$(version).1.gz + + dh_installchangelogs + + # install symlinks to enable compilercache use. +# This first one is just missing from the gcc install. +# + dh_link /usr/bin/$(target)-gcc /usr/bin/$(target)-cc \ + /usr/lib/compilercache/compilercache /usr/lib/compilercache/$(target)-c++ \ + /usr/lib/compilercache/compilercache /usr/lib/compilercache/$(target)-cc \ + /usr/lib/compilercache/compilercache /usr/lib/compilercache/$(target)-g++ \ + /usr/lib/compilercache/compilercache /usr/lib/compilercache/$(target)-gcc + + dh_strip -Xusr/$(target)/lib \ + -Xusr/lib/gcc/$(target)/$(version)/lib + $(target)-strip --strip-debug debian/$(package)/usr/$(target)/lib/*.a + $(target)-strip --strip-debug debian/$(package)/usr/lib/gcc/$(target)/$(version)/*.{a,o} + +# Ugh, the source package was built on a billbox. Fix some stray executables. + + find debian/$(package)/usr/lib/gcc/$(target)/$(version)/include \ + -type f -exec chmod 644 {} \; + +# This is wrong, they are host not target binaries, let dh_strip get them above. +# $(target)-strip --remove-section=.comment --remove-section=.note \ +# debian/$(package)/usr/lib/gcc-lib/$(target)/$(version)/{cc1,cc1plus,cpp0,tradcpp0} + + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch + +.PHONY: binary-indep binary-arch binary clean build install + --- mingw32-4.2.1.dfsg.orig/debian/lintian-overrides +++ mingw32-4.2.1.dfsg/debian/lintian-overrides @@ -0,0 +1,4 @@ +mingw32: non-standard-dir-in-usr +mingw32: file-in-unusual-dir +mingw32: package-contains-hardlink +mingw32: md5sums-lists-nonexisting-file --- mingw32-4.2.1.dfsg.orig/debian/README.Debian +++ mingw32-4.2.1.dfsg/debian/README.Debian @@ -0,0 +1,44 @@ + +This package currently should be considered experimental. + +It is however useful enough in it's present form that I've placed +it in the main archive for people to use. There are known issues +both with the compiler and with fhs compliance of gcc cross compilers +in general, all of which will be addressed as suitable solutions are +found. Suggestions and patches are of course welcome. Complaints +about these issues unaccompanied by a clear solution are in general +not helpful. + +The package has been successfully used to build wxWindows (a stress +test also used by the upstream authors) and several simpler pieces +of software. + +Ultimately it should be integrated with the existing binutils and +gcc packages, and with the upstream sources of those packages too. + +In the meantime, I hope it makes your day just a little more pleasant +if you are among the people still providing legacy support for this +particular platform. + + -- Ron + + + Bootstrapping the compiler. + =========================== + +Now that the source has been further split, bootstrapping is both a +little more complex and a little more simple, choose your favorite +evil.. :) The binutils package can be built alone and should be +the first package off the gate. The compiler source and runtime +have a circular dependency that can only be resolved something like +this: Install the headers from the runtime package. Build the +cross compiler from the mingw32 package. Use the cross compiler to +build the runtime libs, install the runtime package. Rebuild the +mingw32 package to include remaining runtime (win32 target) libs +from there. If you pull this off, you'll have a working compiler +you can use to rebuild the runtime libs for preinstallation in +future iterations. It's a pain, but it's the best I've managed +so far. Most published examples of cross building methods run +something like, "to build from source, first start with a prebuilt +binary runtime" :( + --- mingw32-4.2.1.dfsg.orig/debian/compat +++ mingw32-4.2.1.dfsg/debian/compat @@ -0,0 +1 @@ +4