debian/0000775000000000000000000000000012127064505007172 5ustar debian/control0000664000000000000000000000163212127060562010576 0ustar Source: openhackware Section: misc Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian QA Group # The upstream site disappeared. #Homepage: http://perso.magic.fr/l_indien/OpenHackWare/ Vcs-Browser: http://git.hadrons.org/?p=debian/pkgs/openhackware.git Vcs-Git: git://git.hadrons.org/git/debian/pkgs/openhackware.git Build-Depends: debhelper (>= 7), gcc-powerpc-linux-gnu Standards-Version: 3.9.2 Package: openhackware Architecture: all Depends: ${misc:Depends} Description: OpenFirmware emulator for PowerPC OpenHackWare is an OpenFirmware emulator intended to be used on PowerPC machines. It is not a real OpenFirmware as it knows nothing about Forth. It emulates the OpenFirmware boot time interface as well as the RTAS interface. It also emulates some known "interpret" strings, to make it able to launch known OSes. debian/install0000664000000000000000000000004311161535262010560 0ustar ppc_rom.bin usr/share/openhackware debian/copyright0000664000000000000000000000220711653640147011133 0ustar This package was debianized by Guillem Jover on Mon, 4 Apr 2005 01:57:20 +0300. It was downloaded from: Copyright Holders: Copyright © 2004-2005 Jocelyn Mayer Copyright © 2004-2005 Fabrice Bellard License: This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU General Public License can be found in '/usr/share/common-licenses/GPL-2'. debian/dirs0000664000000000000000000000002711161535262010055 0ustar usr/share/openhackware debian/docs0000664000000000000000000000001411161535262010040 0ustar README TODO debian/patches/0000775000000000000000000000000012127074357010627 5ustar debian/patches/freestanding.patch0000664000000000000000000000214012127074355014314 0ustar Author: Robie Basak Last-Update: 2013-04-03 Description: build with -ffreestanding The target is independent of system libraries, so tell the compiler to not assume that standard support libraries are available. This fixes a link failure on __stack_chk_fail causing an FTBFS. Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=704624 Index: openhackware-0.4.1/Makefile =================================================================== --- openhackware-0.4.1.orig/Makefile 2013-04-03 16:53:39.000000000 +0000 +++ openhackware-0.4.1/Makefile 2013-04-03 17:11:18.919446792 +0000 @@ -45,7 +45,7 @@ CC_BASE:= $(shell $(CC) -print-search-dirs | grep install | sed -e 's/.*\ //') CFLAGS= -Wall -W -Werror -O2 -g -DEF_CFLAGS= $(CFLAGS) -fno-builtin -fno-common -nostdinc -mregnames +DEF_CFLAGS= $(CFLAGS) -fno-builtin -fno-common -nostdinc -mregnames -ffreestanding DEF_CFLAGS+= -DBUILD_DATE=$(BUILD_DATE) -DBUILD_TIME=$(BUILD_TIME) DEF_CFLAGS+= -I$(SRCDIR)/ -I$(SRCDIR)/libc/include -I$(CC_BASE)/include DEF_CFLAGS+= -I$(SRCDIR)/dev -I$(SRCDIR)/dev/block -I$(SRCDIR)/dev/char debian/patches/001_build.patch0000664000000000000000000001141311161535262013321 0ustar Index: b/Makefile =================================================================== --- a/Makefile 2005-03-31 10:23:33.000000000 +0300 +++ b/Makefile 2007-12-12 08:36:58.000000000 +0200 @@ -44,12 +44,14 @@ DISTDIR:= . SRCDIR:= src CC_BASE:= $(shell $(CC) -print-search-dirs | grep install | sed -e 's/.*\ //') -CFLAGS= -Wall -W -Werror -O2 -g -fno-builtin -fno-common -nostdinc -mregnames -CFLAGS+= -DBUILD_DATE=$(BUILD_DATE) -DBUILD_TIME=$(BUILD_TIME) -CFLAGS+= -I$(SRCDIR)/ -I$(SRCDIR)/libc/include -I$(CC_BASE)/include -CFLAGS+= -I$(SRCDIR)/dev -I$(SRCDIR)/dev/block -I$(SRCDIR)/dev/char -CFLAGS+= -I$(SRCDIR)/dev/bus -LDFLAGS= -O2 -g -nostdlib +CFLAGS= -Wall -W -Werror -O2 -g +DEF_CFLAGS= $(CFLAGS) -fno-builtin -fno-common -nostdinc -mregnames +DEF_CFLAGS+= -DBUILD_DATE=$(BUILD_DATE) -DBUILD_TIME=$(BUILD_TIME) +DEF_CFLAGS+= -I$(SRCDIR)/ -I$(SRCDIR)/libc/include -I$(CC_BASE)/include +DEF_CFLAGS+= -I$(SRCDIR)/dev -I$(SRCDIR)/dev/block -I$(SRCDIR)/dev/char +DEF_CFLAGS+= -I$(SRCDIR)/dev/bus +LDFLAGS= -O2 -g +DEF_LDFLAGS= $(LDFLAGS) -nostdlib BIOS_IMAGE_BITS:= 19 BIOS_IMAGE_SIZE:= $(shell echo $$(( 1 << $(BIOS_IMAGE_BITS) )) ) @@ -113,8 +115,8 @@ dev_OBJS+= $(addprefix char_, $(chardev_ main.out_OBJS+= $(addprefix $(OBJDIR)/dev_, $(dev_OBJS)) CUR= $(notdir $@) -CFLAGS+= $($(CUR)_CFLAGS) -LDFLAGS+= $($(CUR)_LDFLAGS) +DEF_CFLAGS+= $($(CUR)_CFLAGS) +DEF_LDFLAGS+= $($(CUR)_LDFLAGS) BIN_TARGETS:= $(OBJDIR)/vectors.bin $(OBJDIR)/main.bin $(OBJDIR)/boot.bin TARGET:= ppc_rom.bin @@ -156,79 +158,81 @@ $(OBJDIR)/%.bin: $(OBJDIR)/%.out $(OBJCOPY) -O binary $($(notdir $@)_OPTIONS) $< $@ $(OBJDIR)/%.out: $(OBJDIR)/%.o $(SRCDIR)/%.ld - $(LD) $(LDFLAGS) -o $@ $< + $(LD) $(DEF_LDFLAGS) -o $@ $< $(OBJDIR)/main.out: $(main.out_OBJS) $(SRCDIR)/main.ld - $(LD) $(LDFLAGS) -o $@ $(main.out_OBJS) + $(LD) $(DEF_LDFLAGS) -o $@ $($(notdir $@)_OBJS) $(OBJDIR)/%.o: $(SRCDIR)/%.c $(SRCDIR)/bios.h @$(DEBUG) "CFLAGS = $(CFLAGS)" - $(CC) -c $(CFLAGS) -o $@ $< + $(CC) -c $(DEF_CFLAGS) -o $@ $< $(OBJDIR)/%.o: $(SRCDIR)/%.S $(SRCDIR)/bios.h @$(DEBUG) "CFLAGS = $(CFLAGS)" - $(CC) -c $(CFLAGS) -Wa,-mregnames -o $@ $< + $(CC) -c $(DEF_CFLAGS) -Wa,-mregnames -o $@ $< - $(CC) $(CFLAGS) -D__USE_$(subst .o,,$(@F))__ -c -o $@ $< + $(CC) $(DEF_CFLAGS) -D__USE_$(subst .o,,$(@F))__ -c -o $@ $< # Pseudo libc objects $(OBJDIR)/%.o: $(SRCDIR)/libc/src/%.c @$(DEBUG) "CFLAGS = $(CFLAGS)" - $(CC) -c $(CFLAGS) -o $@ $< + $(CC) -c $(DEF_CFLAGS) -o $@ $< $(OBJDIR)/mem%.o: $(SRCDIR)/libc/src/mem.c - $(CC) $(CFLAGS) -D__USE_$(subst .o,,$(@F))__ -c -o $@ $< + $(CC) $(DEF_CFLAGS) -D__USE_$(subst .o,,$(@F))__ -c -o $@ $< $(OBJDIR)/rawmemchr.o: $(SRCDIR)/libc/src/mem.c - $(CC) $(CFLAGS) -D__USE_$(subst .o,,$(@F))__ -c -o $@ $< + $(CC) $(DEF_CFLAGS) -D__USE_$(subst .o,,$(@F))__ -c -o $@ $< $(OBJDIR)/str%.o: $(SRCDIR)/libc/src/str.c @$(DEBUG) "CFLAGS = $(CFLAGS)" - $(CC) $(CFLAGS) -D__USE_$(subst .o,,$(@F))__ -c -o $@ $< + $(CC) $(DEF_CFLAGS) -D__USE_$(subst .o,,$(@F))__ -c -o $@ $< $(OBJDIR)/stp%.o: $(SRCDIR)/libc/src/str.c @$(DEBUG) "CFLAGS = $(CFLAGS)" - $(CC) $(CFLAGS) -D__USE_$(subst .o,,$(@F))__ -c -o $@ $< + $(CC) $(DEF_CFLAGS) -D__USE_$(subst .o,,$(@F))__ -c -o $@ $< $(OBJDIR)/basename.o: $(SRCDIR)/libc/src/str.c @$(DEBUG) "CFLAGS = $(CFLAGS)" - $(CC) $(CFLAGS) -D__USE_$(subst .o,,$(@F))__ -c -o $@ $< + $(CC) $(DEF_CFLAGS) -D__USE_$(subst .o,,$(@F))__ -c -o $@ $< $(OBJDIR)/dirname.o: $(SRCDIR)/libc/src/str.c @$(DEBUG) "CFLAGS = $(CFLAGS)" - $(CC) $(CFLAGS) -D__USE_$(subst .o,,$(@F))__ -c -o $@ $< + $(CC) $(DEF_CFLAGS) -D__USE_$(subst .o,,$(@F))__ -c -o $@ $< $(OBJDIR)/%rintf.o: $(SRCDIR)/libc/src/format.c @$(DEBUG) "CFLAGS = $(CFLAGS)" - $(CC) $(CFLAGS) -D__USE_$(subst .o,,$(@F))__ -c -o $@ $< + $(CC) $(DEF_CFLAGS) -D__USE_$(subst .o,,$(@F))__ -c -o $@ $< # libexec objects $(OBJDIR)/exec_%.o: $(SRCDIR)/libexec/%.c @$(DEBUG) "CFLAGS = $(CFLAGS)" - $(CC) -c $(CFLAGS) -o $@ $< + $(CC) -c $(DEF_CFLAGS) -o $@ $< # libfs objects $(OBJDIR)/fs_%.o: $(SRCDIR)/libfs/%.c @$(DEBUG) "CFLAGS = $(CFLAGS)" - $(CC) -c $(CFLAGS) -o $@ $< + $(CC) -c $(DEF_CFLAGS) -o $@ $< # libpart objects $(OBJDIR)/part_%.o: $(SRCDIR)/libpart/%.c @$(DEBUG) "CFLAGS = $(CFLAGS)" - $(CC) -c $(CFLAGS) -o $@ $< + $(CC) -c $(DEF_CFLAGS) -o $@ $< # Devices drivers $(OBJDIR)/dev_%.o: $(SRCDIR)/dev/%.c @$(DEBUG) "CFLAGS = $(CFLAGS)" - $(CC) -c $(CFLAGS) -o $@ $< + $(CC) -c $(DEF_CFLAGS) -o $@ $< + # Char devices drivers $(OBJDIR)/dev_char_%.o: $(SRCDIR)/dev/char/%.c @$(DEBUG) "CFLAGS = $(CFLAGS)" - $(CC) -c $(CFLAGS) -o $@ $< + $(CC) -c $(DEF_CFLAGS) -o $@ $< + # Bloc devices drivers $(OBJDIR)/dev_bloc_%.o: $(SRCDIR)/dev/bloc/%.c @$(DEBUG) "CFLAGS = $(CFLAGS)" - $(CC) -c $(CFLAGS) -o $@ $< + $(CC) -c $(DEF_CFLAGS) -o $@ $< # Other targets tarball: $(CURDIR)/Timestamp debian/patches/002_gcc-4.patch0000664000000000000000000000072611161535262013125 0ustar Index: b/src/main.ld =================================================================== --- a/src/main.ld 2005-03-31 10:23:33.000000000 +0300 +++ b/src/main.ld 2007-12-12 08:37:04.000000000 +0200 @@ -49,7 +49,7 @@ SECTIONS _sdata_end = . ; . = ALIGN(4) ; _ro_start = . ; - .rodata : { *(.rodata) } > bios + .rodata : { *(.rodata .rodata.*) } > bios _ro_end = . ; . = ALIGN(4) ; _RTAS_start = .; debian/patches/series0000664000000000000000000000006312127061246012034 0ustar 001_build.patch 002_gcc-4.patch freestanding.patch debian/watch0000664000000000000000000000013711653641322010225 0ustar version=3 #http://perso.magic.fr/l_indien/OpenHackWare/ .*/OpenHackWare-([0-9a-z.]*)\.tar\.bz2 debian/compat0000664000000000000000000000000211161535262010370 0ustar 7 debian/rules0000775000000000000000000000220712127060352010247 0ustar #!/usr/bin/make -f # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 CROSS_PREFIX := powerpc-linux-gnu- CFLAGS = -Wall -g ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif build-arch: build-indep: dh_testdir $(MAKE) CROSS_COMPILE="$(CROSS_PREFIX)" CFLAGS="$(CFLAGS)" build: build-arch build-indep clean: dh_testdir dh_testroot $(MAKE) clean CROSS_COMPILE="$(CROSS_PREFIX)" $(RM) ppc_rom.bin dh_clean binary-arch: build-arch # Nothing to do binary-indep: build-indep dh_testdir dh_testroot dh_prep dh_installdirs dh_installchangelogs Changelog dh_installdocs dh_install dh_link dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build-arch build-indep build clean binary-indep binary-arch binary debian/changelog0000664000000000000000000000772012127064505011052 0ustar openhackware (0.4.1-6ubuntu2) raring; urgency=low * Revert previous Ubuntu delta: - Change openhackware from arch all to arch powerpc since it only builds with a powerpc-linux-gnu toolchain. - Switch -arch and -indep targets in debian/rules. * Since Ubuntu always builds Architecture: all packages on i386, build using a cross-compiler. * d/p/freestanding.patch: build with -ffreestanding to fix FTBFS. -- Robie Basak Wed, 03 Apr 2013 17:05:07 +0000 openhackware (0.4.1-6ubuntu1) quantal; urgency=low * Change openhackware from arch all to arch powerpc since it only builds with a powerpc-linux-gnu toolchain. * Switch -arch and -indep targets in debian/rules. -- Felix Geyer Sun, 05 Aug 2012 15:39:06 +0200 openhackware (0.4.1-6) unstable; urgency=low * Orphan package, set maintainer to Debian QA Group. -- Guillem Jover Mon, 06 Feb 2012 00:27:51 +0100 openhackware (0.4.1-5) unstable; urgency=low * Switch to debhelper compatibility level 7. * Call dh_prep and dh_installdirs from binary-indep. * Use $(filter ...) instead of $(findstring ...) to extract space separated options from DEB_BUILD_OPTIONS in debian/rules. * Switch to source format “3.0 (quilt)”: - Remove quilt from Build-Depends. - Remove quilt.make include from debian/rules. - Remove patch and unpatch targets from debian/rules. - Remove now unneeded debian/README.source. * Remove unused install target from debian/rules. * Now using Standards-Version 3.9.2 (no changes needed). * Rename build target to build-indep, and add an empty build-arch target. * Remove no longer available upstream Homepage. (Closes: #540471) * Disable watch file due to the above. * Add misc:Depends substvar to Depends field. -- Guillem Jover Tue, 01 Nov 2011 01:58:36 +0100 openhackware (0.4.1-4) unstable; urgency=low * Update packaging Vcs fields to the new URL. * Add a debian/README.source file. * Now using Standards-Version 3.8.0. * Cleanup debian/copyright: - Change 'Copyright Holder' to 'Copyright Holders'. - Use UTF-8 copyright symbol. - Add missing copyright holders and years. - Refer to GPL-2 from common-licenses instead of just GPL. -- Guillem Jover Sat, 28 Jun 2008 22:11:07 +0300 openhackware (0.4.1-3) unstable; urgency=low * Fix typo in package description. (Closes: #390236) Thanks to Simon Waters . * Now using Standards-Version 3.7.3 (no changes needed). * Error out if the toolchain used to build is not powerpc-linux-gnu. (Closes: #322300, #339870) * Support cross-compiling by passing a cross prefix to make when not building natively. * Remove commented debhelper commands. * Do not ignore make errors on 'debian/rules clean'. * Switch to quilt: - Remove now unused debian/patch.mk. - Replace include of patch.mk with quilt.make in debian/rules. - Add Build-Depends on 'quilt (>= 0.40)'. * Move debhelper from Build-Depends-Indep to Build-Depends, needed by clean. * Add Homepage field. * Add Vcs-Browser and Vcs-Git fields. -- Guillem Jover Wed, 12 Dec 2007 08:57:39 +0200 openhackware (0.4.1-2) unstable; urgency=low * Stop Build-Depending on gcc-2.95, by adding the new missing .rodata.* sections into the main.ld scripts thus fixing build with latest gcc:s. - debian/patches/002_gcc-4.patch: New file. * Pass an empty CROSS_COMPILE on clean. * Switch to debhelper compat level 5. * Now using Standards-Version 3.6.2 (no changes needed). * Fix FSF's address. * Rename clean target from debian/patch.mk to unpatch. * Switch patch and unpatch to single colon rules and make them PHONY. -- Guillem Jover Tue, 21 Mar 2006 23:27:39 +0200 openhackware (0.4.1-1) unstable; urgency=low * Initial Release. (Closes: #303488) -- Guillem Jover Mon, 23 May 2005 23:35:19 +0300 debian/source/0000775000000000000000000000000011653640123010471 5ustar debian/source/format0000664000000000000000000000001411275717347011714 0ustar 3.0 (quilt)