--- fpc-2.2.4.orig/debian/fp-utils.install.in +++ fpc-2.2.4/debian/fp-utils.install.in @@ -0,0 +1,55 @@ +/usr/bin/chmcmd +/usr/bin/chmls +/usr/bin/fppkg +/usr/bin/ppufiles +/usr/bin/ppudump +/usr/bin/ppumove +/usr/bin/ppdep +/usr/bin/ptop +/usr/bin/rstconv +/usr/bin/data2inc +/usr/bin/bin2obj +/usr/bin/delp +/usr/bin/plex +/usr/bin/pyacc +/usr/bin/h2pas +/usr/bin/h2paspp +/usr/bin/postw32 +/usr/bin/fpcmake +/usr/bin/fpcres +/usr/bin/fprcp +/usr/bin/fpdoc +/usr/bin/makeskel +/usr/bin/unitdiff +/usr/bin/mkxmlrpc +/usr/bin/rmcvsdir +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/lexyacc +/usr/lib/fpc/lexyacc/yylex.cod +/usr/lib/fpc/lexyacc/yyparse.cod +/usr/share/man/man1/chmcmd.1 +/usr/share/man/man1/chmls.1 +/usr/share/man/man1/fppkg.1 +/usr/share/man/man1/bin2obj.1 +/usr/share/man/man1/data2inc.1 +/usr/share/man/man1/fprcp.1 +/usr/share/man/man1/h2paspp.1 +/usr/share/man/man1/makeskel.1 +/usr/share/man/man1/mkxmlrpc.1 +/usr/share/man/man1/postw32.1 +/usr/share/man/man1/rmcvsdir.1 +/usr/share/man/man1/unitdiff.1 +/usr/share/man/man1/delp.1 +/usr/share/man/man1/fpcmake.1 +/usr/share/man/man1/fpcres.1 +/usr/share/man/man1/h2pas.1 +/usr/share/man/man1/plex.1 +/usr/share/man/man1/ppdep.1 +/usr/share/man/man1/ppudump.1 +/usr/share/man/man1/ppufiles.1 +/usr/share/man/man1/ppumove.1 +/usr/share/man/man1/ptop.1 +/usr/share/man/man1/pyacc.1 +/usr/share/man/man1/rstconv.1 +/usr/share/man/man1/fpdoc.1 +/usr/share/man/man5/fpcmake.5 +/usr/share/man/man5/ptop.cfg.5 --- fpc-2.2.4.orig/debian/fixdeb +++ fpc-2.2.4/debian/fixdeb @@ -0,0 +1,32 @@ +#!/bin/bash +# +# Create debian files from *.in files +# +# $1 = path to debian files +# $2 = fpc target (i386-linux) +# $3 = ppcXXX binary name (ppc386) +# +if [ $# != 3 ]; then + echo 'Usage : fixdeb path fpctarget ppcbin' + exit 1 +fi + +PACKAGEVERSION=`dpkg-parsechangelog | sed -ne's,^Version: \(.*\),\1,p'` +FPCVERSION=`echo $PACKAGEVERSION | sed -ne's,^\([0-9.]*\).*,\1,p'` +DEBVERSION=`echo $PACKAGEVERSION | awk -F '-' '{ print $NF }'` +FPCSVNPATH=`echo $FPCVERSION | awk -F '.' '{ print "release_"$1"_"$2"_"$3 }'` +FPCTARGET="$2" +PPCBIN="$3" + +echo 'PackageVersion: ' $PACKAGEVERSION +echo 'FPCVersion : ' $FPCVERSION +echo 'FPCTarget : ' $FPCTARGET +echo 'DebVersion : ' $DEBVERSION +echo 'PPCBin : ' $PPCBIN +echo 'SVNPath : ' $FPCSVNPATH + +for i in $1/*.in +do + j=$1/$(basename $i .in) + sed -e 's/%{fpcversion}/'$FPCVERSION'/g;s/%{packageversion}/'$PACKAGEVERSION'/g;s/%{ppcbin}/'$PPCBIN'/g;s/%{fpctarget}/'$FPCTARGET'/g;s/%{fpcsvnpath}/'$FPCSVNPATH'/g' $i > $j +done --- fpc-2.2.4.orig/debian/fp-units-fcl.install.in +++ fpc-2.2.4/debian/fp-units-fcl.install.in @@ -0,0 +1,13 @@ +/usr/share/doc/fp-units-fcl +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fcl-base +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fcl-db +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fcl-fpcunit +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fcl-image +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fcl-net +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fcl-passrc +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fcl-registry +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fcl-web +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fcl-xml +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fcl-async +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fcl-json +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fcl-process --- fpc-2.2.4.orig/debian/fp-units-fv.install.in +++ fpc-2.2.4/debian/fp-units-fv.install.in @@ -0,0 +1,2 @@ +/usr/share/doc/fp-units-fv +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fv --- fpc-2.2.4.orig/debian/fp-compiler.install.in +++ fpc-2.2.4/debian/fp-compiler.install.in @@ -0,0 +1,16 @@ +/etc/fpc.cfg +/usr/bin/fpc +/usr/bin/fpcsubst +/usr/bin/fpcmkcfg +/usr/bin/grab_vcsa +/usr/lib/fpc/%{fpcversion}/ppc* +/usr/lib/fpc/%{fpcversion}/samplecfg +/usr/lib/fpc/%{fpcversion}/msg +/usr/share/doc/fp-compiler +/usr/share/man/man1/fpc.1 +/usr/share/man/man1/fpcsubst.1 +/usr/share/man/man1/fpcmkcfg.1 +/usr/share/man/man1/ppc*.1 +/usr/share/man/man1/grab_vcsa.1 +/usr/share/man/man5/fpc.cfg.5 +/usr/bin/fpc-depends --- fpc-2.2.4.orig/debian/fp-docs.doc-base +++ fpc-2.2.4/debian/fp-docs.doc-base @@ -0,0 +1,10 @@ +Document: fpc-docs +Title: Free Pascal Documentation +Author: Michael van Canneyt +Abstract: Documentation for the Free Pascal Compiler. + . +Section: Programming + +Format: html +Files: /usr/share/doc/fp-docs/* +Index: /usr/share/doc/fp-docs/fpctoc.html --- fpc-2.2.4.orig/debian/fp-units-gfx.install.in +++ fpc-2.2.4/debian/fp-units-gfx.install.in @@ -0,0 +1,13 @@ +/usr/share/doc/fp-units-gfx +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/opengl +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/xforms +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/svgalib +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/ggi +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/libgd +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/libpng +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/graph +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/openal +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/cairo +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/imagemagick +/usr/bin/fd2pascal +/usr/share/man/man1/fd2pascal.1 --- fpc-2.2.4.orig/debian/fp-units-gtk.install.in +++ fpc-2.2.4/debian/fp-units-gtk.install.in @@ -0,0 +1,4 @@ +/usr/share/doc/fp-units-gtk + +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/gtk1 +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fpgtk --- fpc-2.2.4.orig/debian/fp-ide.install.in +++ fpc-2.2.4/debian/fp-ide.install.in @@ -0,0 +1,5 @@ +/usr/bin/fp +/usr/lib/fpc/%{fpcversion}/ide +/usr/share/doc/fp-ide +/usr/share/man/man1/fp.1 + --- fpc-2.2.4.orig/debian/fp-units-gtk2.install.in +++ fpc-2.2.4/debian/fp-units-gtk2.install.in @@ -0,0 +1,3 @@ +/usr/share/doc/fp-units-gtk2 + +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/gtk2 --- fpc-2.2.4.orig/debian/moveexamples +++ fpc-2.2.4/debian/moveexamples @@ -0,0 +1,52 @@ +#!/bin/bash + +set -e + +EXAMPLE_TEMP=$1 +DOC_DIR=$2 + +function move_examples() +{ + # Make examples dir + install -d -m 755 $DOC_DIR/fp-units-$1/examples/ + + for package in $2 + do + if [ -d $EXAMPLE_TEMP/$package/examples ]; then + echo "Moving examples of $package" + EXAMPLE_TEMP_DIR="$EXAMPLE_TEMP/$package/examples" + EXAMPLE_INSTALL_DIR="$DOC_DIR/fp-units-$1/examples/$package" + # Move dir renaming it + if [ -e "${EXAMPLE_INSTALL_DIR}" ] + then + echo "#### \"${EXAMPLE_INSTALL_DIR}\" is in the way, please remove it first ####" + exit 255 + else + mv -v -f "${EXAMPLE_TEMP_DIR}" "${EXAMPLE_INSTALL_DIR}" + rmdir $EXAMPLE_TEMP/$package + # Remove empty directories: + rmdir --ignore-fail-on-non-empty "${EXAMPLE_INSTALL_DIR}" + fi + fi + done + + # Remove empty directories: + rmdir --ignore-fail-on-non-empty $DOC_DIR/fp-units-$1/examples +} + +echo '**** Copying examples ****' +PACKAGE_LIST='debian/fp-units-'*'.install.in' + +for PACKAGE_FILE in ${PACKAGE_LIST} +do + PACKAGE_NAME=`basename "${PACKAGE_FILE}" '.install.in' | sed -e 's/fp-units-//'` + PACKAGE_CONTENT=`grep '/usr/lib/fpc' "${PACKAGE_FILE}" | sed -e 's@.*/\([^/]\)/\?@\1@'` + echo ' **** PACKAGE_NAME = "'${PACKAGE_NAME}'"' + echo ' **** PACKAGE_CONTENT = "'${PACKAGE_CONTENT}'"' + move_examples "${PACKAGE_NAME}" "${PACKAGE_CONTENT}" +done + +echo '**** Examples copyed ****' + +rmdir $EXAMPLE_TEMP + --- fpc-2.2.4.orig/debian/fp-compiler.manpages +++ fpc-2.2.4/debian/fp-compiler.manpages @@ -0,0 +1 @@ +debian/fpc-depends.1 --- fpc-2.2.4.orig/debian/copyright.in +++ fpc-2.2.4/debian/copyright.in @@ -0,0 +1,71 @@ +The packages were originally put together by: + Peter Vreman + +Debian maintainer: + Carlos Laviola + +With sources obtained from: + 'svn co http://svn.freepascal.org/svn/fpcbuild/tags/%{fpcsvnpath}' + +The files and libraries are released under the terms of the GNU Library +General Public License, which can be found in the file +/usr/share/common-licenses/GPL-2 on a Debian system. + +- object files and libraries linked into an application may be + distributed without source code. + +---------- + +djgpp: + +Copyright (C) DJ Delorie + 24 Kirsten Ave + Rochester NH 03867-2954 + + Source code copyright DJ Delorie is distributed under the terms of the + GNU General Public Licence, with the following exceptions: + + * Any existing copyright or authorship information in any given source + file must remain intact. If you modify a source file, a notice to that + effect must be added to the authorship information in the source file. + + * binaries provided in djgpp may be distributed without sources ONLY if + the recipient is given sufficient information to obtain a copy of djgpp + themselves. This primarily applies to go32.exe, emu387, stub.exe, and + the graphics drivers. + + * modified versions of the binaries provided in djgpp must be + distributed under the terms of the GPL. + + * objects and libraries linked into an application may be distributed + without sources. + +---------- + +emx: + + emx 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, or (at your option) + any later version. + +---------- + +rsx: + +Copyright (C) 1993-1998 Rainer Schnither + email to rainer@mathematik.uni-bielefeld.de + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License version 2 as + published by the Free Software Foundation. + + This program 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 program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + --- fpc-2.2.4.orig/debian/fp-compiler.prerm.in +++ fpc-2.2.4/debian/fp-compiler.prerm.in @@ -0,0 +1,9 @@ +#! /bin/sh + +set -e + +# remove alternative +update-alternatives --remove pc /usr/bin/fpc + +# Debhelper code +#DEBHELPER# --- fpc-2.2.4.orig/debian/rules +++ fpc-2.2.4/debian/rules @@ -0,0 +1,306 @@ +#!/usr/bin/make -f +# debian/rules for Free Pascal + +DEB_DH_BUILDDEB_ARGS := -- -Z bzip2 +export DH_ALWAYS_EXCLUDE := COPYING:LICENSE +export LANG:=C + +# Documentation type to use pdf/html +ifeq (${DEBDOCTYPE},) +DOCTYPE=html +# HTML Converter l2h/4ht/hevea or html for (default) +CONVERTER=hevea +else +DOCTYPE=${DEBDOCTYPE} +CONVERTER=${DOCTYPE} +endif + +# Detect name of new compiler, take care that debian uses amd64 instead of x86_64 +CPU_SOURCE=$(subst amd64,x86_64,$(shell dpkg-architecture -qDEB_BUILD_ARCH)) +CPU_TARGET=$(subst amd64,x86_64,$(shell dpkg-architecture -qDEB_HOST_ARCH)) + +ifeq ($(CPU_TARGET),m68k) +PPSUF=68k +endif +ifeq ($(CPU_TARGET),i386) +PPSUF=386 +endif +ifeq ($(CPU_TARGET),x86_64) +PPSUF=x64 +endif +ifeq ($(CPU_TARGET),powerpc) +PPSUF=ppc +endif +ifeq ($(CPU_TARGET),alpha) +PPSUF=axp +endif +ifeq ($(CPU_TARGET),arm) +PPSUF=arm +endif +ifeq ($(CPU_TARGET),sparc) +PPSUF=sparc +endif + +ifneq ($(CPU_SOURCE),$(CPU_TARGET)) +PPPRE=ppcross +else +PPPRE=ppc +endif + +PPNEW=$(PPPRE)$(PPSUF) + +FPCTARGET=$(CPU_TARGET)-linux + +# Reset FPC and FPCDIR if it was set +FPC= +FPCDIR= +# Get version information from changelog file +DEB_VERSION:=$(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ') +DEB_UPSTREAM_VERSION:=$(shell echo $(DEB_VERSION) | cut -f 1 -d -) +DEB_UPSTREAM_MAIN_VERSION:=$(shell echo ${DEB_UPSTREAM_VERSION} | sed -e 's/^\([0-9.]*\).*/\1/') +# Get directories +CURDIR:=$(shell pwd) +BUILD_DIR=$(CURDIR)/debian/build +INSTALL_DIR=$(CURDIR)/debian/tmp +DOC_DIR=$(INSTALL_DIR)/usr/share/doc +EXAMPLE_TEMP=${DOC_DIR}/fpc-${DEB_UPSTREAM_MAIN_VERSION} +SRC_DIR=$(INSTALL_DIR)/usr/share/fpcsrc/${DEB_UPSTREAM_MAIN_VERSION} +# Get utils +ifndef MKDIR +MKDIR=mkdir -p +endif +ifndef CP +CP=cp -Rfpl +endif +RM:=rm -rf +NEWPP=$(CURDIR)/fpcsrc/compiler/$(PPNEW) +NEWFPDOC=$(CURDIR)/fpcsrc/utils/fpdoc/fpdoc +NEWFPCMAKE=$(CURDIR)/fpcsrc/utils/fpcm/fpcmake +# Set default compilation options +BUILDOPTS=PP=$(NEWPP) +INSTALLOPTS=INSTALL_PREFIX=$(INSTALL_DIR)/usr PP=$(NEWPP) FPCMAKE=$(NEWFPCMAKE) +# Get fpcmake from path if none is specified. +ifndef FPCMAKE +FPCMAKE=fpcmake +endif + +export GDBLIBDIR=/usr/lib + +# Configure patch system +export QUILT_PATCHES=debian/patches + +#export DH_VERBOSE=1 + +################### +# Clean +# + +clean: patch configure clean-patched unpatch + ${RM} build-arch-stamp install-arch-stamp arrange-arch-stamp configure-stamp + ${RM} build-doc-stamp install-doc-stamp + ${RM} build-indep-stamp install-indep-stamp + ${RM} debian-files-stamp + ${RM} debian/files debian/docs debian/dirs debian/*.files debian/*.docs debian/*.examples debian/*.postinst debian/*.postrm + ${RM} .pc + ${RM} debian/fpc-depends.1 + # Remove auto-generated version file. + ${RM} fpcsrc/compiler/version.inc + # Remove auto-generated make files. + find -name Makefile.fpc -execdir 'sh' '-c' '${RM} $$(basename {} .fpc)' ';' + dh_clean +clean-patched: + @echo "--- Cleaning" + dh_testdir + dh_testroot + $(MAKE) -C fpcsrc compiler_distclean + $(MAKE) -C fpcsrc rtl_distclean + $(MAKE) -C fpcsrc packages_distclean + $(MAKE) -C fpcsrc ide_distclean + $(MAKE) -C fpcsrc utils_distclean + $(MAKE) -C fpcdocs clean + find '(' -name '*.a' -or -name '*.o' -or -name '*.so' -or -name '*.ppu' ')' -exec ${RM} '{}' ';' + dh_prep + +patch: patch-stamp + +patch-stamp: + test ! -s ${QUILT_PATCHES}/series || quilt push -a + touch patch-stamp + +unpatch: + test ! -s ${QUILT_PATCHES}/series || quilt pop -a + rm -rf patch-stamp debian/patched + +################### +# Debian files +# + +debian-files: patch debian-files-stamp +debian-files-stamp: + @echo "--- Creating/fixing *.install files" + /bin/bash debian/fixdeb debian $(FPCTARGET) $(PPNEW) + touch debian-files-stamp + +################### +# Arch packages +# + +configure: configure-stamp +configure-stamp: + dh_testdir + # Remove auto-generated make files. + find -name Makefile.fpc -execdir 'sh' '-c' '${RM} $$(basename {} .fpc)' ';' + # Regenrate make files using fpcmake. + ${FPCMAKE} -r -Tall */Makefile.fpc + # Remove auto-generated version file. + ${RM} fpcsrc/compiler/version.inc + # Add version.inc: + echo \'$(DEB_VERSION)\' > fpcsrc/compiler/version.inc + touch configure-stamp + +build-arch: debian-files configure build-arch-stamp +build-arch-stamp: + @echo "--- Building" + dh_testdir +# First make a new Compiler and RTL using a make cycle + $(MAKE) -C fpcsrc compiler_cycle + $(MAKE) -C fpcsrc rtl_clean rtl_smart $(BUILDOPTS) + $(MAKE) -C fpcsrc packages_smart $(BUILDOPTS) + $(MAKE) -C fpcsrc ide_all $(BUILDOPTS) + $(MAKE) -C fpcsrc utils_all $(BUILDOPTS) + touch build-arch-stamp + +install-arch: build-arch install-arch-stamp +install-arch-stamp: + @echo "--- Installing" + dh_testdir + dh_testroot +# Specify the compiler to use so installing will use the correct versioned dir + $(MAKE) -C fpcsrc compiler_distinstall $(INSTALLOPTS) + $(MAKE) -C fpcsrc rtl_distinstall $(INSTALLOPTS) + $(MAKE) -C fpcsrc packages_distinstall $(INSTALLOPTS) + $(MAKE) -C fpcsrc ide_distinstall $(INSTALLOPTS) INSTALL_DOCDIR=$(DOC_DIR)/fp-ide + $(MAKE) -C fpcsrc utils_distinstall $(INSTALLOPTS) +# Copy examples to the correct doc dir + /bin/bash debian/moveexamples $(EXAMPLE_TEMP) $(DOC_DIR) +# Install man pages + $(MAKE) -C install/man installman $(INSTALLOPTS) INSTALL_PREFIX=$(INSTALL_DIR)/usr/share +# Install RTL demos + $(MAKE) -C demo sourceinstall $(INSTALLOPTS) INSTALL_SOURCEDIR=$(DOC_DIR)/fp-compiler +# Install whatsnew and readme + $(MAKE) -C install/doc installdoc $(INSTALLOPTS) INSTALL_DOCDIR=$(DOC_DIR)/fp-compiler +# Create fpc.cfg which is included as conffile + /bin/bash fpcsrc/compiler/utils/samplecfg \ + /usr/lib/fpc/${DEB_UPSTREAM_VERSION} ${INSTALL_DIR}/etc + install -D debian/fpc-depends debian/tmp/usr/bin/ + set -x; for PACKAGE in fp-compiler fp-ide fp-units-gfx fp-units-misc fp-units-net fp-utils; do \ + install -m644 -D debian/overrides/$$PACKAGE \ + debian/$$PACKAGE/usr/share/lintian/overrides/$$PACKAGE; \ + done + touch install-arch-stamp + +arrange-arch: install-arch arrange-arch-stamp +arrange-arch-stamp: + dh_testdir + dh_testroot + dh_install -s --sourcedir=debian/tmp --list-missing + touch arrange-arch-stamp + +build-indep: patch +install-indep: + touch install-indep-stamp + +################### +# Documentation +# + +build-doc: patch debian-files build-doc-stamp +build-doc-stamp: + @echo "--- Building Documentation" + dh_testdir + ${MKDIR} fpcsrc/compiler/utils/units/${FPCTARGET} + $(MAKE) -C fpcdocs $(CONVERTER) LANG=C + touch build-doc-stamp + +install-doc: build-doc install-doc-stamp +install-doc-stamp: + @echo "--- Installing Documentation" + dh_testdir + dh_testroot + $(MAKE) -C fpcdocs $(DOCTYPE)install INSTALL_PREFIX=$(INSTALL_DIR)/usr INSTALL_DOCDIR=$(INSTALL_DIR)/usr/share/doc/fp-docs + touch install-doc-stamp + +################### +# Source +# + +install-source: install-source-stamp +install-source-stamp: + @echo "--- Cleaning the tree and copying the source code" + dh_testdir + dh_testroot + ${MKDIR} ${SRC_DIR} + ${CP} -t ${SRC_DIR} \ + $(CURDIR)/fpcsrc/compiler \ + $(CURDIR)/fpcsrc/packages \ + $(CURDIR)/fpcsrc/rtl + touch install-source-stamp + +################### +# Generic +# + +build: build-arch build-indep +install: install-arch install-indep +binary: binary-arch binary-indep + + +################### +# Deb building +# + +binary-indep: clean-patched build-doc install-doc install-source debian-files + @echo "--- Building: arch-indep packages" + dh_testdir + dh_testroot + dh_installdocs -i + dh_installchangelogs -i + dh_install -i --sourcedir=debian/tmp --list-missing + find debian/fpc-source/usr/share/fpcsrc/ -type f \ + -not -regex '.*\.\(fpc\|inc\|pas\|pp\)' -delete + find debian/fpc-source/usr/share/fpcsrc/ -type d \ + -empty -delete + dh_compress -i -X.pdf + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i $(DEB_DH_BUILDDEB_ARGS) + +binary-arch: arrange-arch + @echo "--- Building: arch packages" + dh_testdir + dh_testroot + dh_link + dh_installdocs -a + dh_installchangelogs -a + dh_installexamples -a + pod2man -c 'Free pascal for Debian GNU/Linux' \ + debian/fpc-depends > debian/fpc-depends.1 + dh_installman -s + dh_strip -s + dh_compress -a + dh_fixperms -a + dh_installdeb -s + dh_shlibdeps -s + dh_gencontrol -s + dh_md5sums -s + dh_builddeb -s $(DEB_DH_BUILDDEB_ARGS) + +.PHONY: build clean binary binary-arch \ + binary-indep debian-files build-arch \ + install install-indep install-arch \ + configure + +get-orig-source: + -uscan --upstream-version=0 --rename --- fpc-2.2.4.orig/debian/orig-tar.sh +++ fpc-2.2.4/debian/orig-tar.sh @@ -0,0 +1,17 @@ +#!/bin/sh -e + +# called by uscan with '--upstream-version' +TAR=$3 +DIR=fpcbuild-$2 + +# clean up the upstream tarball +tar -x -z -f $TAR +tar -c -z -f $TAR --exclude '*.dll' --exclude '*.exe' --exclude '*.log' --exclude '*.o' $DIR +rm -rf $DIR + +# move to directory 'tarballs' +if [ -r .svn/deb-layout ]; then + . .svn/deb-layout + mv $TAR $origDir + echo "moved $TAR to $origDir" +fi --- fpc-2.2.4.orig/debian/fp-compiler.preinst.in +++ fpc-2.2.4/debian/fp-compiler.preinst.in @@ -0,0 +1,12 @@ +#! /bin/sh + +set -e + +# Remove fpc from pc alternative if buggy 2.0.0-{1,2} versions are upgraded + +if [ "$1" = "upgrade" ] && [ "$2" = "2.0.0-1" ] || [ "$2" = "2.0.0-2" ]; then + update-alternatives --remove pc /usr/bin/fpc +fi + +# Debhelper code +#DEBHELPER# --- fpc-2.2.4.orig/debian/changelog +++ fpc-2.2.4/debian/changelog @@ -0,0 +1,586 @@ +fpc (2.2.4-3) unstable; urgency=low + + [ Mazen Neifer ] + * Fixed compilation error on power PC. + + -- Mazen Neifer Wed, 03 Jun 2009 12:44:00 +0200 + +fpc (2.2.4-2) unstable; urgency=low + + [ Stefan Kisdaroczi ] + * Fixed FindFirst and FindGetFileInfo functions. (Closes: Bug#528681) + + [ Mazen Neifer ] + * Added lintian override rules for embedded-zlib + * Fixed wrong passing of function parameters for powerpc architecture. + (Closes: Bug#515035, Bug#511626) + + -- Mazen Neifer Sat, 30 May 2009 17:46:00 +0200 + +fpc (2.2.4-1) unstable; urgency=low + + [ Mazen Neifer ] + * new upstream release + - Added support for TIFF reading/writing in fcl-image + - Improvements and fixes in CHM support + - Fixed linking the gtk2-package with gtk versions above 2.13.4 + - Added support for CHM help files + * Remove patches that are now obsolete. + * Removed dependency from GTK1 as it was removed from Squeeze. + [ Paul Gevers ] + * Fixed typo in sysconst.pp. (Closes: Bug#519013) + + -- Mazen Neifer Sat, 02 May 2009 16:40:30 +0200 + +fpc (2.2.2-8) unstable; urgency=low + + * Removed .pc directory in clean target to avoid a lintian warning. + * Moved chmcmd and chmls tools to fp-utils and added man files for them. + * Added Debian build version to compiler full version. + + -- Mazen Neifer Tue, 16 Dec 2008 23:23:00 +0100 + +fpc (2.2.2-7) unstable; urgency=low + + [ Mazen Neifer ] + * Patches were not applyed by patch system, fixed. (Closes: Bug#508415) + + -- Torsten Werner Mon, 15 Dec 2008 06:12:58 +0100 + +fpc (2.2.2-6) unstable; urgency=low + + * Remove auto-generated make files in clean target to avoid lintian warning + (Closes: Bug#508013). + * Removed gtk file system bindings as these no more exist in new gtk + libraries. (Closes: Bug#507520) + + -- Mazen Neifer Wed, 04 Dec 2008 12:21:00 +0100 + +fpc (2.2.2-5) unstable; urgency=low + + * Added missing man pages to remove lintian warnings. + * Fixed bug in clean-patched target causing configuration files to be removed + before arch independent packages are build. + * Updated description of fp-docs package. (Closes: Bug#506065) + customizations. + * Fixed dependencies in rules file speeding package generation by avoiding + rebuilding binaries up to four times. + + -- Mazen Neifer Thu, 18 Nov 2008 16:50:00 +0100 + +fpc (2.2.2-4) unstable; urgency=low + + [ Torsten Werner ] + * Update ABI version in fpc-depends automatically. + * Remove empty directories from binary package fpc-source. + + [ Mazen Neifer ] + * Removed leading path when calling update-alternatives to remove a lintian + error. + * Fixed clean target. + * Improved description of packages. (Closes: #498882) + + -- Mazen Neifer Thu, 09 Oct 2008 23:29:00 +0200 + +fpc (2.2.2-3) unstable; urgency=low + + * Add *.fpc files to the binary package fpc-source. + + -- Torsten Werner Wed, 20 Aug 2008 01:07:06 +0200 + +fpc (2.2.2-2) unstable; urgency=low + + * Add patch manpages.diff that fixes various errors in the man pages. + * Switch from dpatch to quilt. + * Yak shaving to make lintian happy: remove unneeded files from binary + package fpc-source. + * Fix Provides: field of fp-unit-rtl. + + -- Torsten Werner Sun, 17 Aug 2008 15:10:22 +0200 + +fpc (2.2.2-1) unstable; urgency=low + + [ Mazen Neifer ] + * new upstream release + - shlobj changes + - fix for wince library support + - fix for windows 64 bit support for >2GB memory + - Documentation was updated completely to conform to the actual state of + the compiler and RTL. + - Possible CodeGear Copyright infringements in the source were reworked + using cleanroom approach. + * Remove all patches that are now obsolete. + + [ Torsten Werner ] + * Bump up Standards-Version: 3.8.0 (no changes needed). + * Do not install extra license files. + * Fix some other lintian warnings. + + -- Torsten Werner Tue, 12 Aug 2008 16:55:14 +0200 + +fpc (2.2.0-dfsg1-9) unstable; urgency=low + + [ Torsten Werner ] + * Add Mazen Neifer to Uploaders field. + + [ Mazen Neifer ] + * Moved FPC sources into a version dependent directory from /usr/share/fpcsrc + to /usr/share/fpcsrc/${FPCVERSION}. This allow installing more than on FPC + release. + * Fixed far call issue in compiler preventing building huge binearies. + (closes: #477743) + * Updated building dependencies, recomennded and suggested packages. + * Moved fppkg to fp-utils as it is just a helper tool and is not required by + compiler. + + -- Mazen Neifer Sat, 17 May 2008 17:12:11 +0200 + +fpc (2.2.0-dfsg1-8) unstable; urgency=low + + [ Mazen Neifer ] + * Fixed build of fpc-source package cased by accidental remove of + fpc-source.install file during clean-patched target execution. + * Fixed Build-Depend clause (needs binutils instead of binutils-dev and no + need for libgpmg1-dev). + * Added man pages to the same packages including corresponding binaries. + * Removed from fpc-source code which isn't required by Lazarus code tool. + + -- Mazen Neifer Thu, 08 May 2008 17:45:19 +0200 + +fpc (2.2.0-dfsg1-7) unstable; urgency=low + + [ Mazen Neifer ] + * Added make files to source package. This required by fpcmake tool to succeed + cross platform compilation. + * Added man pages for fpcmkcfg, fpcsubst, fpcres, mkxmlrpc and rmcvsdir + binaries. + + -- Mazen Neifer Wed, 30 Apr 2008 16:01:50 +0200 + +fpc (2.2.0-dfsg1-6) unstable; urgency=medium + + * Remove the patch 09_powerpc again because the bug is in libgdb-dev and + will be fixed there. + * Disable Build-Depends: libexpat1-dev, libgdb-dev because fpc is + incompatible to gdb 6.8. (Closes: #473955) + * Set urgency to medium because we are fixing a FTBFS bug only. + + -- Torsten Werner Sat, 29 Mar 2008 23:31:44 +0100 + +fpc (2.2.0-dfsg1-5) unstable; urgency=low + + [ Mazen Neifer ] + * Applied fixes from upstream to packages/fcl-xml + + [ Torsten Werner ] + * Add a new patch 09_powerpc to make the package builds on powerpc + architecture. + + -- Torsten Werner Sat, 29 Mar 2008 10:39:26 +0100 + +fpc (2.2.0-dfsg1-4) unstable; urgency=low + + * Build fp-ide with debugger support. (Closes: #328701) + * Remove unneeded Build-Depends: findutils. + * Update Standards-Version: 3.7.3. + * Change Depends: mawk | awk. + * Clean up some lintian errors and warnings. + + -- Torsten Werner Sat, 15 Mar 2008 19:18:23 +0100 + +fpc (2.2.0-dfsg1-3) unstable; urgency=low + + * Add files matching *.inc to package fpc-source. + + -- Torsten Werner Sat, 29 Dec 2007 22:29:07 +0100 + +fpc (2.2.0-dfsg1-2) unstable; urgency=low + + [ Torsten Werner ] + * Set Architecture: all for fpc package. + * Fix bug in debian/rules: it's $(FPCVERSION) not $(FPC_VERSION). + (Closes: #457951) + + [ Mazen Neifer ] + * New patch from upstream fixes non-deterministic register allocation on + sparc + * Modified rules to apply patches before building compiler + + -- Torsten Werner Sat, 29 Dec 2007 15:49:57 +0100 + +fpc (2.2.0-dfsg1-1) unstable; urgency=low + + * Remove all files matching *.o from upstream's tarball. + * Change fpc-source package: + - Do not copy directories installer and tests because they are not needed + by lazarus. + - Install only files matching *.pas and *.pp. + * Clean up the XXXVERSION cruft in debian/rules and debian/fixdeb. + * Update FSF address in debian/copyright. + + -- Torsten Werner Thu, 20 Dec 2007 18:46:55 +0100 + +fpc (2.2.0-3) unstable; urgency=low + + * Create binary package fpc-source again after having some discussion on + debian-devel. (Closes: #413805) + * Use bzip2 when creating binary packages and add + Pre-Depends: dpkg (>= 1.10.24). + * Add the fpc-depends tool. + + -- Torsten Werner Sun, 09 Dec 2007 22:35:01 +0100 + +fpc (2.2.0-2) unstable; urgency=low + + [ Mazen Neifer ] + * Added dbase to fcl-db packaged units for arch other than i386. + * Fixed build issue for sparc and powerpc arch. + + -- Torsten Werner Fri, 07 Dec 2007 09:22:17 +0100 + +fpc (2.2.0-1) unstable; urgency=low + + [ Carlos Laviola ] + * New upstream release. (Closes: #442206) + * Added arm as a supported arch. (Closes: #408693) + * fp-units-gfx depends on libggi-dev. (Closes: #423659) + * fp-ide bugs fixed in the new version. (Closes: #423099, #423601, #423602) + * general cleanup on debian/{rules,control,...} + + [ Torsten Werner ] + * Complete debian/copyright. + * Add debian/watch and get-orig-source target in debian/rules. + * Remove *.dll, *.exe, and *.log from upstream tarball. + + -- Torsten Werner Fri, 23 Nov 2007 20:30:45 +0100 + +fpc (2.0.4-5) unstable; urgency=low + + * Fixed Build-Depends. + * Add myself to Uploaders in debian/control. + * Make sure that the sources are really patched before building them. + * Build unit 'libc' on powerpc too. + + -- Torsten Werner Sat, 27 Jan 2007 20:08:50 +0100 + +fpc (2.0.4-4) unstable; urgency=low + + * debian/rules: Separate out the documentation build into build-doc to + stop the documentations from building on binary-arch builds resulting + in FTBFS. + * Add Index value in debian/fp-docs.doc-base (Closes: #407715) + + -- Varun Hiremath Sun, 21 Jan 2007 20:49:43 +0530 + +fpc (2.0.4-3) unstable; urgency=medium + + * Added dpatch as a build dependency. (Closes: #407594) + + -- Carlos Laviola Sun, 21 Jan 2007 17:08:58 -0200 + +fpc (2.0.4-2) unstable; urgency=low + + * New release fixes Bug: "fp-compiler: miscompiles multilevel + if-statement" (Closes: #403586) + * Provide html docs (Closes: #150150) + + debian/rules: Set DOCTYPE=html and use CONVERTER=hevea + + debian/control: Add hevea to Build-Depends + + -- Varun Hiremath Tue, 16 Jan 2007 21:53:01 +0530 + +fpc (2.0.4-1) unstable; urgency=low + + [ Mazen Neifer ] + * New release (Closes: #383055) + + [ Torsten Werner ] + * Fix bugs in debian/fp-compiler.pre*.in. + * Updated debian/control to use variables provides by newer versions of + dpkg. + * Add XS-X-Vcs-Svn header to debian/control. + * Add german po files from Holger Wansing. (Closes: #348408, #346247) + * Remove unneeded debian/fp-compiler.conffiles. + * Fixed debian/changelog (lintian error). + * Changed Build-Depends: gawk | awk. + + [ Varun Hiremath ] + * Bump Standards version to 3.7.2 + * Add Homepage in debian/control file. + * Add fp-units-gtk2 missing dependencies (Closes: #337990) + + -- Torsten Werner Sun, 14 Jan 2007 11:40:59 +0100 + +fpc (2.0.4-rc3) unstable; urgency=low + + * New release candidate + + -- Mazen Neifer Sun, 06 Aug 2006 19:00:00 +0200 + +fpc (2.0.4-rc2) unstable; urgency=low + + * New release candidate + + -- Mazen Neifer Tue, 18 Jul 2006 21:23:26 +0200 + +fpc (2.0.4-rc1) unstable; urgency=low + + * New release + + -- Peter Vreman Thu, 07 Jul 2006 12:00:00 +0100 + +fpc (2.0.0-4) unstable; urgency=low + + * debian/control.in: add amd64 to the Architecture field. + + -- Carlos Laviola Fri, 9 Sep 2005 18:38:26 -0300 + +fpc (2.0.0-3) unstable; urgency=medium + + * Created a prerm and preinst for fp-compiler, as /usr/bin/fpc needs to + be removed from the list of 'pc' alternatives. (Closes: #311436) + * Added amd64 to the architecture list. (Closes: #315220) + + -- Carlos Laviola Fri, 2 Sep 2005 10:27:21 -0300 + +fpc (2.0.0-2) unstable; urgency=low + + * debian/fp-compiler.postinst.in: forgot to reapply the patch that + correctly creates the slave link to pc(1). (Closes: #310907) + + -- Carlos Laviola Mon, 30 May 2005 11:59:10 -0300 + +fpc (2.0.0-1) unstable; urgency=low + + * As I couldn't upload 1.9.8 on all supported architectures before 2.0.0 + was released, I'm rehashing its changelog now. + * New upstream release. + Bugs fixed on CVS before 1.9.8: + * man/man1/fpc.1: -OPn changed to -Opn in rev 1.8 (Closes: #255960) + * debian/fp-compiler.postinst.in: fixed in rev 1.5 (Closes: #269853) + Bugs fixed on CVS before 1.9.6: + * rtl/unix/crt.pp: fixed in rev 1.20 (Closes: #216060) + * rtl/i386/strings.inc: fixed in rev 1.16 (Closes: #288955) + * compiler/nadd.pas: fixed in rev 1.126 (Closes: #297881) + * debian/control: Added missing build dependencies on libgpmg1-dev and + libncurses5-dev and set save_size at build time, which finally makes + the package build without manual intervention. (Closes: #304633) + + -- Carlos Laviola Fri, 20 May 2005 19:07:00 -0300 + +fpc (1.9.6-2) unstable; urgency=low + + * debian/control: Oops -- fp-units-fv had the wrong description. + + -- Carlos Laviola Fri, 14 Jan 2005 13:15:50 -0200 + +fpc (1.9.6-1) unstable; urgency=low + + * New upstream release. + * debian/control: Added build dependency on libgpmg1-dev. + + -- Carlos Laviola Fri, 31 Dec 2004 21:16:25 -0200 + +fpc (1.9.4-5) unstable; urgency=low + + * fp-compiler: needs ld, adding dependency on binutils. (Closes: #265265) + + -- Carlos Laviola Thu, 12 Aug 2004 16:29:37 -0300 + +fpc (1.9.4-4) unstable; urgency=low + + * debian/control.in: Oops, forgot to update the Build-Deps for this file, + which generates debian/control per se. (Closes: #263942) + + -- Carlos Laviola Sun, 8 Aug 2004 22:12:41 -0300 + +fpc (1.9.4-3) unstable; urgency=low + + * Package needs fpcmake to build pretty much everything, so we need to + build-dep on fp-utils. Thanks to Daniel Schepler for finding the bug + and for Jurij Smakov's aid. (Closes: #263942) + * debian/README.Debian: removes mentions to old problems with tetex, fixes + spelling mistakes and other minor issues. + + -- Carlos Laviola Fri, 6 Aug 2004 19:46:51 -0300 + +fpc (1.9.4-2) unstable; urgency=low + + * The following fixes are the work of Marco van de Voort from CVS HEAD: + - man/man1/ppc386.1: typo fix. (Closes: #255960) + - rtl/unix/crt.pp: gotoxy/XY2Ansi fixes from. + (Closes: #216057, #216060) + - docs/linuxex, docs/dosex, docs/refex: various examples ported to + fpc 1.9.x's new API. + + -- Carlos Laviola Tue, 20 Jul 2004 15:12:05 -0300 + +fpc (1.9.4-1) unstable; urgency=low + + * This release is partly the work of Peter Vreman . + * Acknowledging NMU. (Closes: #221316) + * Made the description for the units packages more informative. + (Closes: #209518, #209581, #209613) + * Applied some patches from Marco van de Voort to CVS HEAD that fixed + compiling the documentation on powerpc with some adaptations of mine. + + -- Carlos Laviola Sat, 17 Jul 2004 21:53:03 -0300 + +fpc (1.0.10-1.2) unstable; urgency=low + + * NMU + * debian/control: Also had to remove build dependency on latex2html here + (Closes: #221316) + + -- Roland Stigge Thu, 12 Feb 2004 10:27:20 +0100 + +fpc (1.0.10-1.1) unstable; urgency=low + + * NMU + * debian/control.in: Removed Build-Depends: latex2html which moved to + non-free (Closes: #221316) + + -- Roland Stigge Sat, 20 Dec 2003 20:45:41 +0100 + +fpc (1.0.10-1) unstable; urgency=low + + * New upstream release. + * Acknowledging Amaya's NMU. Thanks for the hand. (Closes: #141439) + * Package dependency lists corrected. (Closes: #84863, #155158) + * Example compiles correctly now. (Closes: #174371) + * Fixed vanishing fpc(1) manpage if gpc is installed. (Closes: #136283) + * Fixed manpage error. (Closes: #191695) + * Spelling mistakes are gone. (Closes: #124637, #124638) + * Both bugs (doc-base-file-references-usr-doc and debian-changelog-file- + contains-obsolete-user-emacs-settings, in lintian tags) were corrected + long ago. (Closes: #127092) + * Upstream have added the AddDisk function. (Closes: #103163) + + -- Carlos Laviola Sat, 2 Aug 2003 04:35:51 -0300 + +fpc (1.0.6-2) unstable; urgency=low + + * NMU for Debcamp BSP. + * Apply a very silly patch (Closes: #141439), which was RC. The PDF file now + builds. + * Updated versioned-build-depends-on-debhelper. + + -- Amaya Rodrigo Sastre Sat, 12 Jul 2003 17:58:50 +0200 + +fpc (1.0.6-1) unstable; urgency=low + + * New upstream version. (Closes: #154199) + + -- Carlos Laviola Sat, 10 Aug 2002 04:26:15 -0300 + +fpc (1.0.4+1.0.6cvs20020228-1) unstable; urgency=low + + * New upstream version. + + -- Peter Vreman Tue, 1 Mar 2002 11:01:50 +0100 + +fpc (1.0.4-2) unstable; urgency=low + + * New maintainer. + * debian/README.Debian: Added a note on building 'pdflatex.fmt', which is + needed by pdflatex, in order to build the documentation in PDF format. + * debian/control: added latex2html, dvipdfm and tetex-extra to the + build-deps list. + + -- Carlos Laviola Wed, 29 Aug 2001 23:15:17 -0300 + +fpc (1.0.4-1) unstable; urgency=low + + * New upstream version. + + -- Ulf Jaenicke-Roessler Tue, 2 Jan 2001 11:01:50 +0100 + +fpc (1.0.3-0.20001206.1) unstable; urgency=low + + * Snapshot release from CVS 2000/12/06. + * Fixes internal compiler error on (buggy) appearance of + array of Date (Closes:#60720). + * ppc386 can be called more intuitively as fpc (Closes:#74810). + * Help option '-h' is (somewhat) more propagated than '-?' + (Closes:#74811). Furthermore, help is displayed when fpc + is called without any parameter. + * Package supports alternatives now, in order to be used as + "Pascal compiler" (pc) from Makefile(s) (Closes:#76615). + + -- Ulf Jaenicke-Roessler Wed, 6 Dec 2000 11:29:28 +0100 + +fpc (1.0.2-1) unstable; urgency=low + + * New upstream version. + * Maintainer field changed. + * Bug#60720 had already been fixed in the development tree some + time ago after the last upload (hence, this Closes: #60720). + + -- Ulf Jaenicke-Roessler Fri, 13 Oct 2000 13:11:34 +0200 + +fpc (1.0.1-0.20000811.1) unstable; urgency=low + + * Built for `official' upload. CVS as of 2000/08/11 - NMU. + * Update to latest version, thus Closes: #56873. + * Removes /usr/bin/ppc386 link upon package removal. Closes: #64403. + * This upload also Closes: #68801. + * Added Build-Depends. Hmmm, 'fp-compiler' is somehow like `the chicken + and the egg' story... + + -- Ulf Jaenicke-Roessler Fri, 11 Aug 2000 22:49:37 +0200 + +fpc (1.0.1-0) unstable; urgency=low + + * New Upstream Release + + -- Peter Vreman Sun, 09 Jun 2000 12:00:00 +0200 + +fpc (0.99.13-19991013-4) unstable; urgency=low + + * Fixed bashism in samplecfg (Closes: Bug#50636) + * Changed source-arch to 'i386' (Closes: Bug#50438) + + -- Mika Fischer Sat, 20 Nov 1999 22:18:11 +0100 + +fpc (0.99.13-19991013-3) unstable; urgency=low + + * Fixed bug which overwrote existing config files during an update + (Closes: Bug#50278) + + -- Mika Fischer Tue, 16 Nov 1999 23:57:36 +0100 + +fpc (0.99.13-19991013-2) unstable; urgency=low + + * Fixed bug in debian/rules (Fixes: #50096) + + -- Mika Fischer Sat, 13 Nov 1999 20:31:20 +0100 + +fpc (0.99.13-19991013-1) unstable; urgency=low + + * Removed fp-fv due to licensing issues. + + -- Mika Fischer Wed, 13 Oct 1999 19:33:30 +0200 + +fpc (0.99.13-19991005-1) unstable; urgency=low + + * New maintainer + + -- Mika Fischer Wed, 13 Oct 1999 19:33:13 +0200 + +fpc (0.99.13-19991001-1) unstable; urgency=low + + * New maintainer + * Updated to policy 3.0.1 + + -- Joseph Carter Tue, 27 Jul 1999 18:05:05 -0700 + +fpc (0.99.12b-1) unstable; urgency=low + + * New Upstream Release + + -- Peter Vreman Thu, 10 Jun 1999 12:00:00 +0200 + +fpc (0.99.12a-1) unstable; urgency=low + + * Initial Release + + -- Peter Vreman Thu, 10 Jun 1999 12:00:00 +0200 --- fpc-2.2.4.orig/debian/fpc-source.install.in +++ fpc-2.2.4/debian/fpc-source.install.in @@ -0,0 +1,3 @@ +/usr/share/fpcsrc/%{fpcversion}/compiler +/usr/share/fpcsrc/%{fpcversion}/packages +/usr/share/fpcsrc/%{fpcversion}/rtl --- fpc-2.2.4.orig/debian/fp-units-rtl.install.in +++ fpc-2.2.4/debian/fp-units-rtl.install.in @@ -0,0 +1 @@ +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/rtl --- fpc-2.2.4.orig/debian/fp-units-i386.install.in +++ fpc-2.2.4/debian/fp-units-i386.install.in @@ -0,0 +1,4 @@ +/usr/share/doc/fp-units-i386 + +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/libc +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/unixutil --- fpc-2.2.4.orig/debian/fp-compiler.postrm.in +++ fpc-2.2.4/debian/fp-compiler.postrm.in @@ -0,0 +1,11 @@ +#! /bin/sh + +set -e + +FPCDIR=/usr/lib/fpc/%{fpcversion} + +# remove link +rm -f /usr/bin/%{ppcbin} + +# Debhelper code +#DEBHELPER# --- fpc-2.2.4.orig/debian/fp-units-base.install.in +++ fpc-2.2.4/debian/fp-units-base.install.in @@ -0,0 +1,10 @@ +/usr/share/doc/fp-units-base + +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fpmkunit +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/paszlib +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/pasjpeg +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/ncurses +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/x11 +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/regexpr +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/hash +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/uuid --- fpc-2.2.4.orig/debian/watch +++ fpc-2.2.4/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/freepascal/ fpcbuild-(.*).tar.gz debian debian/orig-tar.sh --- fpc-2.2.4.orig/debian/control +++ fpc-2.2.4/debian/control @@ -0,0 +1,352 @@ +Source: fpc +Section: devel +Priority: optional +Maintainer: Carlos Laviola +Uploaders: Torsten Werner , Mazen Neifer +Standards-Version: 3.8.0 +Build-Depends: debhelper (>= 5), quilt, fp-compiler (>= 2.0.4), fp-units-base, + fp-utils, mawk | awk, gs-common, libncurses5-dev, binutils, libreadline5-dev +Build-Depends-Indep: hevea +Vcs-Svn: https://bollin.googlecode.com/svn/fpc/trunk/ +Vcs-Browser: http://bollin.googlecode.com/svn/fpc/trunk/ +Homepage: http://www.freepascal.org/ + +Package: fpc +Architecture: all +Pre-Depends: dpkg (>= 1.10.24) +Depends: fp-units-rtl, fp-compiler, fp-units-base, fp-ide, fp-units-fcl, fp-units-fv, fp-units-gtk2, fp-units-db, fp-units-gfx, fp-units-net, fp-units-misc, fp-units-multimedia +Recommends: fp-utils +Suggests: lazarus, fp-docs (>= ${source:Upstream-Version}), fp-units-gnome1 +Description: Free Pascal Compiler - Meta Package + The Free Pascal Compiler is an object pascal compiler supporting both Delphi + and Turbo Pascal 7.0 dialects as well as Mac pascal dialects. + It provides a completely portable RunTime Library (RTL) available on many + platforms and compatible with Turbo Pascal, but also a platfrom independent + class based Free Component Library (FCL) adding many Delphi extensions and + interfacing many popular open source libraries. + . + Some extensions are added to the language, like function overloading. Shared + libraries can be linked and created. Delphi language extentions like classes, + exceptions, ansi strings and open arrays are also supported. + . + This package contains dependency on all FPC packages provided on your + architecture. Experienced users may want to install only packages they need, + and can skip installing this metapackage. + +Package: fpc-source +Section: devel +Architecture: all +Pre-Depends: dpkg (>= 1.10.24) +Description: Free Pascal Compiler - Source Code + The Free Pascal Compiler is an object pascal compiler supporting both Delphi + and Turbo Pascal 7.0 dialects as well as Mac pascal dialects. + It provides a completely portable RunTime Library (RTL) available on many + platforms and compatible with Turbo Pascal, but also a platfrom independent + class based Free Component Library (FCL) adding many Delphi extensions and + interfacing many popular open source libraries. + . + This package contains Free Pascal's own source code. It is meant to be used by + the Lazarus IDE. + +Package: fp-compiler +Architecture: i386 powerpc sparc amd64 arm +Pre-Depends: dpkg (>= 1.10.24) +Depends: fp-units-rtl (= ${binary:Version}) +Suggests: fp-utils, fp-docs (>= ${source:Upstream-Version}) +Description: Free Pascal - Compiler + The Free Pascal Compiler is an object pascal compiler supporting both Delphi + and Turbo Pascal 7.0 dialects as well as Mac pascal dialects. + It provides a completely portable RunTime Library (RTL) available on many + platforms and compatible with Turbo Pascal, but also a platfrom independent + class based Free Component Library (FCL) adding many Delphi extensions and + interfacing many popular open source libraries. + . + Some extensions are added to the language, like function overloading. Shared + libraries can be linked and created. Delphi language extentions like classes, + exceptions, ansi strings and open arrays are also supported. + . + This package contains the command line compiler. + +Package: fp-ide +Architecture: i386 powerpc sparc amd64 arm +Pre-Depends: dpkg (>= 1.10.24) +Depends: fp-units-rtl (= ${binary:Version}), ${shlibs:Depends} +Suggests: fp-utils, fp-docs (>= ${source:Upstream-Version}) +Description: Free Pascal - IDE + The Free Pascal Compiler is an object pascal compiler supporting both Delphi + and Turbo Pascal 7.0 dialects as well as Mac pascal dialects. + It provides a completely portable RunTime Library (RTL) available on many + platforms and compatible with Turbo Pascal, but also a platfrom independent + class based Free Component Library (FCL) adding many Delphi extensions and + interfacing many popular open source libraries. + . + Some extensions are added to the language, like function overloading. Shared + libraries can be linked and created. Delphi language extentions like classes, + exceptions, ansi strings and open arrays are also supported. + . + This package contains the Integrated Development Environment (IDE). The IDE + has an internal compiler. + +Package: fp-utils +Architecture: i386 powerpc sparc amd64 arm +Pre-Depends: dpkg (>= 1.10.24) +Recommends: fp-compiler (= ${binary:Version}) +Description: Free Pascal - Utils + The Free Pascal Compiler is an object pascal compiler supporting both Delphi + and Turbo Pascal 7.0 dialects as well as Mac pascal dialects. + It provides a completely portable RunTime Library (RTL) available on many + platforms and compatible with Turbo Pascal, but also a platfrom independent + class based Free Component Library (FCL) adding many Delphi extensions and + interfacing many popular open source libraries. + . + This package contains some handy utils for usage with the Free Pascal + Compiler: + - ppumove Place multiple units in a shared library + - ppufiles Show needed files for units + - ppudump Dump the information stored in a .ppu (unit) file + - fpcmake Create Makefile from Makefile.fpc + - h2pas Convert .h files to pascal units + - ppdep Create a dependency file which can be used with Makefiles + - ptop Source beautifier + - data2inc Convert binary/text data to include files + - plex/pyacc Pascal Lex/Yacc implementation + +Package: fp-docs +Section: doc +Architecture: all +Pre-Depends: dpkg (>= 1.10.24) +Description: Free Pascal - Documentation + The Free Pascal Compiler is an object pascal compiler supporting both Delphi + and Turbo Pascal 7.0 dialects as well as Mac pascal dialects. + It provides a completely portable RunTime Library (RTL) available on many + platforms and compatible with Turbo Pascal, but also a platfrom independent + class based Free Component Library (FCL) adding many Delphi extensions and + interfacing many popular open source libraries. + . + This package provides documentation for the Free Pascal Compiler in HTML + format. + +Package: fp-units-rtl +Architecture: i386 powerpc sparc amd64 arm +Pre-Depends: dpkg (>= 1.10.24) +Recommends: fp-compiler (= ${binary:Version}) +Provides: fpc-abi-${source:Upstream-Version} +Description: Free Pascal - Runtime Library + The Free Pascal Compiler is an object pascal compiler supporting both Delphi + and Turbo Pascal 7.0 dialects as well as Mac pascal dialects. + It provides a completely portable RunTime Library (RTL) available on many + platforms and compatible with Turbo Pascal, but also a platfrom independent + class based Free Component Library (FCL) adding many Delphi extensions and + interfacing many popular open source libraries. + . + This package contains the Runtime Libraries for the Free Pascal Compiler. + +Package: fp-units-base +Architecture: i386 powerpc sparc amd64 arm +Pre-Depends: dpkg (>= 1.10.24) +Depends: fp-units-rtl (= ${binary:Version}) +Description: Free Pascal - base units + The Free Pascal Compiler is an object pascal compiler supporting both Delphi + and Turbo Pascal 7.0 dialects as well as Mac pascal dialects. + It provides a completely portable RunTime Library (RTL) available on many + platforms and compatible with Turbo Pascal, but also a platfrom independent + class based Free Component Library (FCL) adding many Delphi extensions and + interfacing many popular open source libraries. + . + This package contains Free Pascal units for common libraries. Some of these + units are also required by the Free Component Library: + - X11 (Xlib, Xutil) + - NCurses + - ZLib + +Package: fp-units-fcl +Architecture: i386 powerpc sparc amd64 arm +Pre-Depends: dpkg (>= 1.10.24) +Depends: fp-units-rtl (= ${binary:Version}), fp-units-base (= ${binary:Version}) +Description: Free Pascal - Free Component Library + The Free Pascal Compiler is an object pascal compiler supporting both Delphi + and Turbo Pascal 7.0 dialects as well as Mac pascal dialects. + It provides a completely portable RunTime Library (RTL) available on many + platforms and compatible with Turbo Pascal, but also a platfrom independent + class based Free Component Library (FCL) adding many Delphi extensions and + interfacing many popular open source libraries. + . + This package contains the Free Component Library for the Free Pascal Compiler. + +Package: fp-units-fv +Architecture: i386 powerpc sparc amd64 arm +Pre-Depends: dpkg (>= 1.10.24) +Depends: fp-units-rtl (= ${binary:Version}) +Description: Free Pascal - Free Vision units + The Free Pascal Compiler is an object pascal compiler supporting both Delphi + and Turbo Pascal 7.0 dialects as well as Mac pascal dialects. + It provides a completely portable RunTime Library (RTL) available on many + platforms and compatible with Turbo Pascal, but also a platfrom independent + class based Free Component Library (FCL) adding many Delphi extensions and + interfacing many popular open source libraries. + . + This package contains the Free Vision units for the Free Pascal Compiler. + +Package: fp-units-gtk +Architecture: i386 powerpc sparc amd64 arm +Pre-Depends: dpkg (>= 1.10.24) +Depends: fp-units-rtl (= ${binary:Version}), fp-units-fcl (= ${binary:Version}) +Suggests: libgtk1.2-dev +Description: Free Pascal - GTK+ 1.2 units + The Free Pascal Compiler is an object pascal compiler supporting both Delphi + and Turbo Pascal 7.0 dialects as well as Mac pascal dialects. + It provides a completely portable RunTime Library (RTL) available on many + platforms and compatible with Turbo Pascal, but also a platfrom independent + class based Free Component Library (FCL) adding many Delphi extensions and + interfacing many popular open source libraries. + . + This package contains Free Pascal units and examples to create + programs with GTK+ 1.2. + +Package: fp-units-gtk2 +Architecture: i386 powerpc sparc amd64 arm +Pre-Depends: dpkg (>= 1.10.24) +Depends: fp-units-rtl (= ${binary:Version}), fp-units-fcl (= ${binary:Version}), libgtk2.0-dev +Description: Free Pascal - GTK+ 2.x units + The Free Pascal Compiler is an object pascal compiler supporting both Delphi + and Turbo Pascal 7.0 dialects as well as Mac pascal dialects. + It provides a completely portable RunTime Library (RTL) available on many + platforms and compatible with Turbo Pascal, but also a platfrom independent + class based Free Component Library (FCL) adding many Delphi extensions and + interfacing many popular open source libraries. + . + This package contains Free Pascal units and examples to create + programs with GTK+ 2.x. + +Package: fp-units-gnome1 +Architecture: i386 powerpc sparc amd64 arm +Pre-Depends: dpkg (>= 1.10.24) +Depends: fp-units-rtl (= ${binary:Version}), fp-units-gtk (= ${binary:Version}) +Description: Free Pascal - GNOME 1 units + The Free Pascal Compiler is an object pascal compiler supporting both Delphi + and Turbo Pascal 7.0 dialects as well as Mac pascal dialects. + It provides a completely portable RunTime Library (RTL) available on many + platforms and compatible with Turbo Pascal, but also a platfrom independent + class based Free Component Library (FCL) adding many Delphi extensions and + interfacing many popular open source libraries. + . + This package contains Free Pascal units and examples to create + programs for GNOME 1. + +Package: fp-units-db +Architecture: i386 powerpc sparc amd64 arm +Pre-Depends: dpkg (>= 1.10.24) +Depends: fp-units-rtl (= ${binary:Version}) +Description: Free Pascal - database libraries units + The Free Pascal Compiler is an object pascal compiler supporting both Delphi + and Turbo Pascal 7.0 dialects as well as Mac pascal dialects. + It provides a completely portable RunTime Library (RTL) available on many + platforms and compatible with Turbo Pascal, but also a platfrom independent + class based Free Component Library (FCL) adding many Delphi extensions and + interfacing many popular open source libraries. + . + This package contains Free Pascal units with bindings for: + - MySQL + - Interbase + - PostgreSQL + - Oracle + - ODBC + - GDBM + - SQLite + +Package: fp-units-gfx +Architecture: i386 powerpc sparc amd64 arm +Pre-Depends: dpkg (>= 1.10.24) +Depends: fp-units-rtl (= ${binary:Version}), fp-units-base (= ${binary:Version}) +Description: Free Pascal - graphics libraries units + The Free Pascal Compiler is an object pascal compiler supporting both Delphi + and Turbo Pascal 7.0 dialects as well as Mac pascal dialects. + It provides a completely portable RunTime Library (RTL) available on many + platforms and compatible with Turbo Pascal, but also a platfrom independent + class based Free Component Library (FCL) adding many Delphi extensions and + interfacing many popular open source libraries. + . + This package contains Free Pascal units with bindings for: + - opengl :OpenGL + - forms : Forms 0.88 + - svgalib : Svgalib + - ggi : General Graphical Interface + - libgd + - libpng + - graph + - openal + - cairo + +Package: fp-units-net +Architecture: i386 powerpc sparc amd64 arm +Pre-Depends: dpkg (>= 1.10.24) +Depends: fp-units-rtl (= ${binary:Version}) +Description: Free Pascal - networking units + The Free Pascal Compiler is an object pascal compiler supporting both Delphi + and Turbo Pascal 7.0 dialects as well as Mac pascal dialects. + It provides a completely portable RunTime Library (RTL) available on many + platforms and compatible with Turbo Pascal, but also a platfrom independent + class based Free Component Library (FCL) adding many Delphi extensions and + interfacing many popular open source libraries. + . + This package contains Free Pascal units for creating network tools: + - netdb : NetDB unit for TCP/IP handling + - libasync : LibAsync unit for easy Asynchronous IO + - libcurl + - dbus: D-Bus + - httpd-1.3 + - httpd-2.0 + - httpd-2.2 + - ldap + - openssl : Open SSL + - pcap + +Package: fp-units-misc +Architecture: i386 powerpc sparc amd64 arm +Pre-Depends: dpkg (>= 1.10.24) +Depends: fp-units-rtl (= ${binary:Version}) +Description: Free Pascal - miscellaneous units + The Free Pascal Compiler is an object pascal compiler supporting both Delphi + and Turbo Pascal 7.0 dialects as well as Mac pascal dialects. + It provides a completely portable RunTime Library (RTL) available on many + platforms and compatible with Turbo Pascal, but also a platfrom independent + class based Free Component Library (FCL) adding many Delphi extensions and + interfacing many popular open source libraries. + . + This package contains Free Pascal miscellaneous units for: + - Utmp + - PasZLib (Pascal-only zlib implementation) + +Package: fp-units-multimedia +Architecture: i386 powerpc sparc amd64 arm +Pre-Depends: dpkg (>= 1.10.24) +Depends: fp-units-rtl (= ${binary:Version}), libogg-dev, libvorbis-dev, a52dec-dev, libdts-dev, libmad0-dev, libmodplug-dev +Description: Free Pascal - miscellaneous units + The Free Pascal Compiler is an object pascal compiler supporting both Delphi + and Turbo Pascal 7.0 dialects as well as Mac pascal dialects. + It provides a completely portable RunTime Library (RTL) available on many + platforms and compatible with Turbo Pascal, but also a platfrom independent + class based Free Component Library (FCL) adding many Delphi extensions and + interfacing many popular open source libraries. + . + This package contains Free Pascal multimedia interfacing units for: + - oggvorbis + - a52 + - dts + - mad + - modplug + +Package: fp-units-i386 +Architecture: i386 +Pre-Depends: dpkg (>= 1.10.24) +Depends: fp-units-rtl (= ${binary:Version}) +Description: Free Pascal - miscellaneous units + The Free Pascal Compiler is an object pascal compiler supporting both Delphi + and Turbo Pascal 7.0 dialects as well as Mac pascal dialects. + It provides a completely portable RunTime Library (RTL) available on many + platforms and compatible with Turbo Pascal, but also a platfrom independent + class based Free Component Library (FCL) adding many Delphi extensions and + interfacing many popular open source libraries. + . + This package contains Free Pascal specific units for the i386 architecture: + - libc: used for compatibility with kylix, deprecated. --- fpc-2.2.4.orig/debian/fp-docs.install.in +++ fpc-2.2.4/debian/fp-docs.install.in @@ -0,0 +1 @@ +/usr/share/doc/fp-docs --- fpc-2.2.4.orig/debian/fp-units-db.install.in +++ fpc-2.2.4/debian/fp-units-db.install.in @@ -0,0 +1,10 @@ +/usr/share/doc/fp-units-db + +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/mysql +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/ibase +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/postgres +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/oracle +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/odbc +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/gdbm +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/sqlite +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/pxlib --- fpc-2.2.4.orig/debian/fp-compiler.postinst.in +++ fpc-2.2.4/debian/fp-compiler.postinst.in @@ -0,0 +1,16 @@ +#! /bin/sh + +set -e + +FPCDIR=/usr/lib/fpc/%{fpcversion} + +# add alternative +update-alternatives \ + --install /usr/bin/pc pc /usr/bin/fpc 20 \ + --slave /usr/share/man/man1/pc.1.gz pc.1.gz /usr/share/man/man1/fpc.1.gz + +# create link +ln -sf $FPCDIR/%{ppcbin} /usr/bin/%{ppcbin} + +# Debhelper code +#DEBHELPER# --- fpc-2.2.4.orig/debian/fpc-depends.in +++ fpc-2.2.4/debian/fpc-depends.in @@ -0,0 +1,65 @@ +#!/usr/bin/perl + +# Copyright (c) 2005 Rafael Laboissiere +# +# This program 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 program 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 program; if not, write to the Free Software Foundation, +# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +=head1 NAME + +fpc-depends - calculates free pascal dependencies + +=cut + +use strict; +use warnings; +use Debian::Debhelper::Dh_Lib; + +=head1 SYNOPSIS + +B [S>] + +=head1 DESCRIPTION + +fpc-depends is a debhelper-like program that is responsible for +generating the ${fpc-abi:Depends} substitutions and adding them to +substvars files. + +If you use this program, your package must build-depend on fp-compiler +(>= 2.2.0-3). + + +=cut + +init (); + +foreach my $package (@{$dh{DOPACKAGES}}) { + delsubstvar($package, "fpc-abi:Depends"); + addsubstvar($package, "fpc-abi:Depends", "fpc-abi-%{fpcversion}"); +} + +=head1 SEE ALSO + +L + +This program is not part of debhelper. + +=head1 AUTHOR + +Torsten Werner + +Most ideas borrowed from octave-depends by Rafael Laboissiere +. + +=cut --- fpc-2.2.4.orig/debian/README.Debian.in +++ fpc-2.2.4/debian/README.Debian.in @@ -0,0 +1,47 @@ +The Free Pascal Compiler for Debian +----------------------------------- + +The source tree was checked out from the subversion repository at +svn.freepascal.org with + 'svn co http://svn.freepascal.org/svn/fpcbuild/tags/%{fpcsvnpath}' + +Only PDF docs are built as shipped. You may want to make the HTML files with +tex4ht by yourself and eventually adapt the doc-base file. + +To create a new config file for fpc (/etc/fpc.cfg) use the command: + /usr/lib/fpc/%{fpcversion}/samplecfg /usr/lib/fpc/%{fpcversion} +However, you should be aware that said file (/etc/fpc.cfg) is +declared as a conffile since version 1.0.2. + +And, yes - this is a i386/amd64/powerpc/sparc/arm only package currently. + + +Web site and download information: +---------------------------------- + +The Original site is + http://www.freepascal.org/ + ftp://ftp.freepascal.org/ + +HTTP Mirrored at + http://www.nl.freepascal.org/ + http://www.de.freepascal.org/ + http://www.freepascal.sk/ + http://gd.tuwien.ac.at/languages/pascal/fpc/www/ + http://www.atlasz.com/freepascal/ + +FTP Mirrored at + http://fpc.planetmirror.com/pub/fpc/ + ftp://gd.tuwien.ac.at/languages/pascal/fpc/ + ftp://ftp.hu.freepascal.org/pub/fpc/ + ftp://ftp.uni-erlangen.de/pub/mirrors/freepascal/ + http://mirror.mirimar.net/freepascal/ + http://cdn.mirror.garr.it/mirrors/freepascal/ + ftp://ftpsv1.u-aizu.ac.jp/pub/lang/pascal/freepascal/ + ftp://ftp.nl.freepascal.org/pub/fpc/ + ftp://freepascal.stack.nl/pub/fpc/ + ftp://ftp.no.freepascal.org/pub/fpc/ + ftp://ftp.chg.ru/pub/lang/pascal/fpc/ + ftp://ftp.us.freepascal.org/pub/fpc/ + + -- Varun Hiremath , Sat, 20 Jan 2007 01:28:28 +0530 --- fpc-2.2.4.orig/debian/fp-units-misc.install.in +++ fpc-2.2.4/debian/fp-units-misc.install.in @@ -0,0 +1,17 @@ +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/chm +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/iconvenc +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/utmp +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/pthreads +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/zlib +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/tcl +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/cdrom +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/bfd +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/syslog +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/gdbint +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/unzip +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/newt +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/fftw +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/aspell +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/users +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/numlib +/usr/share/doc/fp-units-misc --- fpc-2.2.4.orig/debian/compat +++ fpc-2.2.4/debian/compat @@ -0,0 +1 @@ +5 --- fpc-2.2.4.orig/debian/fp-units-multimedia.install.in +++ fpc-2.2.4/debian/fp-units-multimedia.install.in @@ -0,0 +1,8 @@ +/usr/share/doc/fp-units-multimedia + +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/oggvorbis +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/a52 +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/dts +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/mad +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/modplug +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/sdl --- fpc-2.2.4.orig/debian/fp-units-net.install.in +++ fpc-2.2.4/debian/fp-units-net.install.in @@ -0,0 +1,10 @@ +/usr/share/doc/fp-units-net + +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/libcurl +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/dbus +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/httpd13 +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/httpd20 +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/httpd22 +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/ldap +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/openssl +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/pcap --- fpc-2.2.4.orig/debian/fp-units-gnome1.install.in +++ fpc-2.2.4/debian/fp-units-gnome1.install.in @@ -0,0 +1,4 @@ +/usr/share/doc/fp-units-gnome1 + +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/imlib +/usr/lib/fpc/%{fpcversion}/units/%{fpctarget}/gnome1 --- fpc-2.2.4.orig/debian/patches/manpages.diff +++ fpc-2.2.4/debian/patches/manpages.diff @@ -0,0 +1,184 @@ +fixes various errors in the man pages and adds missing ones. + +Index: fpc-2.2.2/install/man/man1/fp.1 +=================================================================== +--- fpc-2.2.2.orig/install/man/man1/fp.1 2006-07-16 20:06:14.000000000 +0200 ++++ fpc-2.2.2/install/man/man1/fp.1 2008-08-12 23:34:27.000000000 +0200 +@@ -57,8 +57,8 @@ + + No help files are provided by default. The user must download the Free Pascal documentation + in HTML format and install it into the IDE using the Help->Files menu. Turbo Pascal .tph +-files can also be installed in this menu and can be usefull for source code that ships with +-.tph files as documentation. ++files can also be installed in this menu and can be usefull for source code that ships ++with .tph files as documentation. + + .SH Character sets + +Index: fpc-2.2.2/install/man/man1/h2paspp.1 +=================================================================== +--- fpc-2.2.2.orig/install/man/man1/h2paspp.1 2005-05-30 21:05:23.000000000 +0200 ++++ fpc-2.2.2/install/man/man1/h2paspp.1 2008-08-12 23:34:27.000000000 +0200 +@@ -16,8 +16,8 @@ + .TP + .I #define symbol + Defines the new symbol +-.I symbol +-. Note that macros are not supported. ++.I symbol. ++Note that macros are not supported. + .TP + .I #if symbol + The text following this directive is included if +@@ -69,8 +69,8 @@ + .TP + .B \-ooutfile + If this option is given, the output will be written to a file named +-.I outfile +-. Note that only one output file can be given. ++.I outfile. ++Note that only one output file can be given. + + .SH SEE ALSO + .IP +Index: fpc-2.2.2/install/man/man1/plex.1 +=================================================================== +--- fpc-2.2.2.orig/install/man/man1/plex.1 2005-05-30 21:05:23.000000000 +0200 ++++ fpc-2.2.2/install/man/man1/plex.1 2008-08-12 23:34:27.000000000 +0200 +@@ -23,12 +23,12 @@ + + .SH DESCRIPTION + +-TP Lex is a program generator that is used to generate the Turbo Pascal source ++Lex is a program generator that is used to generate the Turbo Pascal source + code for a lexical analyzer subroutine from the specification of an input + language by a regular expression grammar. + +-TP Lex parses the source grammar contained in lex-file (with default suffix +-.l) and writes the constructed lexical analyzer subroutine to the specified ++Lex parses the source grammar contained in lex-file (with default suffix .l) ++and writes the constructed lexical analyzer subroutine to the specified + output-file (with default suffix .pas); if no output file is specified, output + goes to lex-file with new suffix .pas. If any errors are found during + compilation, error messages are written to the list file (lex-file with new +Index: fpc-2.2.2/install/man/man1/postw32.1 +=================================================================== +--- fpc-2.2.2.orig/install/man/man1/postw32.1 2005-05-30 21:05:23.000000000 +0200 ++++ fpc-2.2.2/install/man/man1/postw32.1 2008-08-12 23:34:27.000000000 +0200 +@@ -35,9 +35,9 @@ + .TP + .B \-m subsystem + Set the subsystem (the application type) to either +-.i gui ++.I gui + or +-.i console ++.I console. + Note that a gui application which writes to the command-line will cause an + error. This option is a short notation for the + .B \-\-subsystem +Index: fpc-2.2.2/install/man/man1/ppdep.1 +=================================================================== +--- fpc-2.2.2.orig/install/man/man1/ppdep.1 2005-05-30 21:05:23.000000000 +0200 ++++ fpc-2.2.2/install/man/man1/ppdep.1 2008-08-12 23:34:27.000000000 +0200 +@@ -11,8 +11,8 @@ + .B ppdep + dumps the dependencies of a unit in a format that can be + understood by GNU +-.B make +-. It writes these dependencies to standard ++.B make. ++It writes these dependencies to standard + output. It takes care of dependencies both in the interface and + implementation section of the unit, and it can handle conditional defines. + +Index: fpc-2.2.2/install/man/man5/fpcmake.5 +=================================================================== +--- fpc-2.2.2.orig/install/man/man5/fpcmake.5 2005-05-30 21:05:23.000000000 +0200 ++++ fpc-2.2.2/install/man/man5/fpcmake.5 2008-08-12 23:48:09.000000000 +0200 +@@ -51,9 +51,9 @@ + argument to GNU + .I configure + It is used for the installation of programs and units. By default, this is +-. /usr ++.B /usr + on linux, and +-. /pp ++.B /pp + on all other platforms. + .TP + .I dirbase +@@ -118,7 +118,7 @@ + the makefile rules that are generated by fpcmake, but + .I before + the general configuration rules. +-. In it, you cannot use variables that are defined by fpcmake rules, but you ++In it, you cannot use variables that are defined by fpcmake rules, but you + can define additional rules and configuration variables. + .TP + .B presettings +Index: fpc-2.2.2/install/man/man1/grab_vcsa.1 +=================================================================== +--- fpc-2.2.2.orig/install/man/man1/grab_vcsa.1 2006-07-16 20:06:14.000000000 +0200 ++++ fpc-2.2.2/install/man/man1/grab_vcsa.1 2008-08-12 23:34:27.000000000 +0200 +@@ -11,8 +11,8 @@ + The + .I Linux + console allows text mode +-.I video buffer access +-. For each tty device ++.I video buffer access. ++For each tty device + (/dev/tty0..31) there exist two devices (/dev/vcs0..31) and (/dev/vcsa0..31). + These devices are two different representations of the content of the console. + +Index: fpcbuild/install/man/man1/chmcmd.1 +=================================================================== +--- fpc-2.2.2.orig/install/man/man1/chmcmd.1 ++++ fpc-2.2.2/install/man/man1/chmcmd.1 +@@ -0,0 +1,19 @@ ++.TH chmcmd 1 "29 December 2008" "Free Pascal" "HTML help file compression tool" ++.SH NAME ++chmcmd \- The FPC Pascal unit dependency tracking program. ++ ++.SH SYNOPSIS ++ ++\fBchmcmd\fP ++ ++.SH Description ++ ++.B chmcmd ++- creates a Compressed HTML help file (chm) using a XML file made ++with the TCHMProject class in the fpc unit chmfilewriter.pas ++ ++.SH SEE ALSO ++.IP ++.BR chmls (1) ++.BR fpc (1) ++.BR fpdoc (1) +Index: fpcbuild/install/man/man1/chmls.1 +=================================================================== +--- fpc-2.2.2.orig/install/man/man1/chmls.1 ++++ fpc-2.2.2/install/man/man1/chmls.1 +@@ -0,0 +1,21 @@ ++.TH chmls 1 "29 December 2008" "Free Pascal" "Compressed HTML help file content viewer" ++.SH NAME ++chmls \- The FPC Pascal unit dependency tracking program. ++ ++.SH SYNOPSIS ++ ++\fBchmls\fP [section number] ++ ++.SH Description ++ ++.B chmls ++- lists the complete contents of a chm file ++ ++The section number can be 0 or 1 and is a filter to show only files contained ++in the uncompressed section of a chm or the compressed section respectively. ++When not specified files from both sections are shown. ++.SH SEE ALSO ++.IP ++.BR chmcmd (1) ++.BR fpc (1) ++.BR fpdoc (1) --- fpc-2.2.4.orig/debian/patches/version.diff +++ fpc-2.2.4/debian/patches/version.diff @@ -0,0 +1,27 @@ +This patch adds Debian build version to compiler full version. + +--- fpc-2.2.4~/fpcsrc/compiler/version.pas ++++ fpc-2.2.4/fpcsrc/compiler/version.pas +@@ -78,6 +78,9 @@ + + implementation + ++const ++ FullVersionString={$INCLUDE version.inc}; ++ + function version_string:string; + begin + version_string := version_nr+'.'+release_nr+'.'+patch_nr; +@@ -86,11 +89,7 @@ + + function full_version_string:string; + begin +- full_version_string := version_nr+'.'+release_nr+'.'+patch_nr+minorpatch +-{$ifdef REVINC} +- +'-r'+{$i revision.inc} +-{$endif REVINC} +- ; ++ full_version_string := FullVersionString; + end; + + end. --- fpc-2.2.4.orig/debian/patches/powerpc.diff +++ fpc-2.2.4/debian/patches/powerpc.diff @@ -0,0 +1,44 @@ +This patch fixes wrong passing of function parameters for powerpc architecture. + +--- fpc-2.2.4~/fpcsrc/compiler/powerpc/cpupara.pas ++++ fpc-2.2.4/fpcsrc/compiler/powerpc/cpupara.pas +@@ -130,7 +130,12 @@ + result:=LOC_REGISTER; + classrefdef: + result:=LOC_REGISTER; +- procvardef, ++ procvardef: ++ if (target_info.abi = abi_powerpc_aix) or ++ (p.size = sizeof(aint)) then ++ result:=LOC_REGISTER ++ else ++ result:=LOC_REFERENCE; + recorddef: + if (target_info.abi<>abi_powerpc_aix) or + ((p.size >= 3) and +@@ -181,8 +186,24 @@ + variantdef, + formaldef : + result:=true; +- recorddef, ++ { regular procvars must be passed by value, because you cannot pass ++ the address of a local stack location when calling e.g. ++ pthread_create with the address of a function (first of all it ++ expects the address of the function to execute and not the address ++ of a memory location containing that address, and secondly if you ++ first store the address on the stack and then pass the address of ++ this stack location, then this stack location may no longer be ++ valid when the newly started thread accesses it. ++ ++ However, for "procedure of object" we must use the same calling ++ convention as for "8 byte record" due to the need for ++ interchangeability with the TMethod record type. ++ } + procvardef : ++ result:= ++ (target_info.abi <> abi_powerpc_aix) and ++ (def.size <> sizeof(aint)); ++ recorddef : + result := + (target_info.abi<>abi_powerpc_aix) or + ((varspez = vs_const) and --- fpc-2.2.4.orig/debian/patches/sysconst.diff +++ fpc-2.2.4/debian/patches/sysconst.diff @@ -0,0 +1,13 @@ +This patch fixes a typo in string constants. + +--- fpc-2.2.4~/fpcsrc/rtl/objpas/sysconst.pp 2009-03-09 22:00:33.000000000 +0100 ++++ fpc-2.2.4/fpcsrc/rtl/objpas/sysconst.pp 2009-03-09 22:01:00.000000000 +0100 +@@ -75,7 +75,7 @@ + SInvalidVarOpWithHResultWithPrefix = 'Invalid variant operation (%s%.8x)'+LineEnding+'%s'; + SNoError = 'No error.'; + SNoThreadSupport = 'Threads not supported. Recompile program with thread driver.'; +- SMissingWStringManager = 'Widestring manager not available. Recompile program with appropiate manager.'; ++ SMissingWStringManager = 'Widestring manager not available. Recompile program with appropriate manager.'; + SOSError = 'System error, (OS Code %d):'+LineEnding+'%s'; + SOutOfMemory = 'Out of memory'; + SOverflow = 'Floating point overflow'; --- fpc-2.2.4.orig/debian/patches/findfirst.diff +++ fpc-2.2.4/debian/patches/findfirst.diff @@ -0,0 +1,94 @@ +This patch fixes the FindFirst and FindGetFileInfo functions. + +--- fpc-2.2.4.orig/fpcsrc/rtl/unix/sysutils.pp 2008-11-29 17:27:25.000000000 +0100 ++++ fpc-2.2.4/fpcsrc/rtl/unix/sysutils.pp 2009-05-13 14:10:02.000000000 +0200 +@@ -416,8 +416,6 @@ var + UnixFindData : PUnixFindData; + Begin + UnixFindData:=PUnixFindData(f.FindHandle); +- if UnixFindData=nil then +- exit; + if UnixFindData^.SearchType=0 then + begin + if UnixFindData^.dirptr<>nil then +@@ -430,27 +428,31 @@ End; + + Function FindGetFileInfo(const s:string;var f:TSearchRec):boolean; + var +- st : baseunix.stat; +- WinAttr : longint; +- ++ st : baseunix.stat; ++ WinAttr : longint; ++ ResolvedPath : string; ++ LinkLen : ssize_t; ++ + begin + FindGetFileInfo:=false; + If Assigned(F.FindHandle) and ((((PUnixFindData(f.FindHandle)^.searchattr)) and faSymlink) > 0) then +- FindGetFileInfo:=(fplstat(pointer(s),st)=0) ++ FindGetFileInfo:=(fplstat(pointer(s),st)=0) + else + FindGetFileInfo:=(fpstat(pointer(s),st)=0); +- If not FindGetFileInfo then +- exit; ++ If not FindGetFileInfo then ++ exit; + WinAttr:=LinuxToWinAttr(PChar(pointer(s)),st); +- If (f.FindHandle = nil) or ((WinAttr and Not(PUnixFindData(f.FindHandle)^.searchattr))=0) Then ++ If ((WinAttr and Not(PUnixFindData(f.FindHandle)^.searchattr))=0) Then + Begin + f.Name:=ExtractFileName(s); + f.Attr:=WinAttr; + f.Size:=st.st_Size; + f.Mode:=st.st_mode; + f.Time:=UnixToWinAge(st.st_mtime); +- result:=true; +- End; ++ FindGetFileInfo:=true; ++ end ++ else ++ FindGetFileInfo:=false; + end; + + +@@ -469,7 +471,10 @@ Var + Begin + Result:=-1; + UnixFindData:=PUnixFindData(Rslt.FindHandle); +- if UnixFindData=nil then ++ { SearchSpec='' means that there were no wild cards, so only one file to ++ find. ++ } ++ if UnixFindData^.SearchSpec='' then + exit; + if (UnixFindData^.SearchType=0) and + (UnixFindData^.Dirptr=nil) then +@@ -519,6 +524,12 @@ Begin + fillchar(Rslt,sizeof(Rslt),0); + if Path='' then + exit; ++ { Allocate UnixFindData (we always need it, for the search attributes) } ++ New(UnixFindData); ++ FillChar(UnixFindData^,sizeof(UnixFindData^),0); ++ Rslt.FindHandle:=UnixFindData; ++ {We always also search for readonly and archive, regardless of Attr:} ++ UnixFindData^.SearchAttr := Attr or faarchive or fareadonly; + {Wildcards?} + if (Pos('?',Path)=0) and (Pos('*',Path)=0) then + begin +@@ -527,14 +538,8 @@ Begin + end + else + begin +- { Allocate UnixFindData } +- New(UnixFindData); +- FillChar(UnixFindData^,sizeof(UnixFindData^),0); +- Rslt.FindHandle:=UnixFindData; + {Create Info} + UnixFindData^.SearchSpec := Path; +- {We always also search for readonly and archive, regardless of Attr:} +- UnixFindData^.SearchAttr := Attr or faarchive or fareadonly; + UnixFindData^.NamePos := Length(UnixFindData^.SearchSpec); + while (UnixFindData^.NamePos>0) and (UnixFindData^.SearchSpec[UnixFindData^.NamePos]<>'/') do + dec(UnixFindData^.NamePos); --- fpc-2.2.4.orig/debian/patches/series +++ fpc-2.2.4/debian/patches/series @@ -0,0 +1,5 @@ +manpages.diff +version.diff +sysconst.diff +findfirst.diff +powerpc.diff --- fpc-2.2.4.orig/debian/overrides/fp-compiler +++ fpc-2.2.4/debian/overrides/fp-compiler @@ -0,0 +1,2 @@ +# Free pascal binaries are often statically linked. +fp-compiler binary: statically-linked-binary --- fpc-2.2.4.orig/debian/overrides/fp-utils +++ fpc-2.2.4/debian/overrides/fp-utils @@ -0,0 +1,6 @@ +# Free pascal binaries are often statically linked. +fp-utils binary: statically-linked-binary +# The Free Pascal Compiler does not properly support linking. Please +# see BTS #472304. The zlib functionality is provided without a proper +# way to turn it off. +fp-utils: embedded-zlib --- fpc-2.2.4.orig/debian/overrides/fp-units-gfx +++ fpc-2.2.4/debian/overrides/fp-units-gfx @@ -0,0 +1,2 @@ +# Free pascal binaries are often statically linked. +fp-units-gfx binary: statically-linked-binary --- fpc-2.2.4.orig/debian/overrides/fp-units-net +++ fpc-2.2.4/debian/overrides/fp-units-net @@ -0,0 +1,2 @@ +# The name of the unit is dbus not D-Bus. +fp-units-net binary: spelling-error-in-description dbus D-Bus --- fpc-2.2.4.orig/debian/overrides/fp-units-misc +++ fpc-2.2.4/debian/overrides/fp-units-misc @@ -0,0 +1,2 @@ +# Free pascal binaries are often statically linked. +fp-units-misc binary: statically-linked-binary --- fpc-2.2.4.orig/debian/overrides/fp-ide +++ fpc-2.2.4/debian/overrides/fp-ide @@ -0,0 +1,2 @@ +# Free pascal binaries are often statically linked. +fp-ide binary: statically-linked-binary --- fpc-2.2.4.orig/debian/overrides/fp-units-base +++ fpc-2.2.4/debian/overrides/fp-units-base @@ -0,0 +1,4 @@ +# The Free Pascal Compiler does not properly support linking. Please +# see BTS #472304. The zlib functionality is provided without a proper +# way to turn it off. +fp-units-base: embedded-zlib