#
# The format of this file is:
#

# -------- Options --------

PATCHPATH=.:../OOO_1_1

# -------- Functional sub-sets --------

Minimal : MinimalOnly, BuildBits, NoJava
Common : BuildBits, NoJava, IconRender, FontBits, FontConfig, i18n, SystemBits, Misc, MenuFixes, CalcFixes
DebianBase : DebianOnly, Common
Debian : DebianBase, XineramaPIC, SensibleBrowser
DebianWoody: DebianBase, OldLibArt
Ximian : XimianOnly, Common, GnomeVFS, GnomeCUPS, GlobalDesktopFiles, StartupNotification, ODKFixes
RedHatBase : Common, GnomeVFS, GnomeCUPS, StartupNotification, RedHatOnly, ODKFixes
RHFedora : RedHatBase, RHFedoraOnly
RHTaroon : RedHatBase, RHTaroonOnly, OldLibArt
RHShrike : RedHatBase, RHShrikeOnly, OldLibArt

# -------- [ Tag ], patch sets --------

[ BuildBits ]
# Use -O0 for the "no optimizations" case, so that "build debug=true" does the right thing  #17181
noopt-debug.diff

# don't touch a header unless it's really changed #8817
deliver-compare.diff

# do an optimizing link
build-optimized-link.diff

# fix stlport includes
stlport-includes-fixes.diff

# fix daft cut / paste mess. #24917
flash-compile-fix.diff

# help people get debugging
debug-helper.diff

# do not build extras for icu, workaround for http://bugs.debian.org/210608
icu-build-no-extras.diff

[ Misc ]
# Don't try to throw up graphical error log when running setup with -nogui
setup2.noguierror.diff

# fix atomic dec/inc for Sparc #15502 patch_to_boost_patch (also #14848)
build-sparc-boost.diff

# Use $(CC) for sparc assembler #26255
build-sparc-assembler.diff

# Fix alignment of long/doubles on Sparc #24059
bridges-sparc-alignment.diff

# Don't -DBUILD, -DBUILD_ID for our build system #12782: rc3
stlport-defeat-include.diff

# Some people are unbelievable ;-)
# spell-ximian.diff

# don't do hundreds of sched_yields; each taking 100ms on RH 9.0 #9277: dafter fix
thread-yield.diff

# Insert symbol defaults to the Symbol font - not a random one #15512: rc3
gui-sw-insert-symbol.diff

# Make list boxes clickable on the right of the text's bounds # 17182: rc3
list-box-click.diff

# Make cut and paste nicer #15509
gui-sc-paste.diff

# Make cursor two lines
gui-sc-cursor.diff

# use fork in tools/source/solar.c to make it work with 2.5/2.6 kernels, #17241
solar-use-fork.diff

# allow the user to force Gnome desktop detection #22061
gnome-desktop-force.diff

# speedup object movement
speed-lang-cache.diff

# Sensitize show in row/col depending on the selection.Fix move cursor defect  #24137 
sc-show-sensitize.diff

# Fix CAN-2004-0179, neon format string vuln #27789
neon.patch-CAN-2004-0179.diff

# this is so brain damaged - guess a number/bitfield ...
doc-defaults.diff

# Allow the document to be re-titled to "" in properties #22340
doc-retitle.diff

# be a bit helpful ... #8581
debug-appinit.diff

# tweak Gtk+ theming a little
gtk-themeing.diff

[ ODKFixes ]

# Fix ODK Java bits
odk-java-wizpanel.diff

[ IconRender ]

# add support for 32-bit bitmaps and icons.
bmp32.diff
# Transfer alpha masks around
icon-render.diff
# Make insensitive icons look pleasant
gui-insensitive.diff
# high quality interpolate for tbx button selector
gui-tbxcust.diff
# image loading needs to split off the alpha mask
gui-image-load.diff
# fix some broken icon compositing foo #20470
icon-masks.diff
# Compositing fixes for alpha bg's - some (functional) hacks
gui-icon-composite.diff
gui-tbx-ctrl-bg.diff
# Try to accelerate bitmap compositing #21107
speed-bitmap-render.diff
# Fix htmltoolbar image alpha
gui-alpha-hypertoolbar.diff

# replace uber-ugly symbols with corresponding images
# gui-symbol-replace.diff

# make the toolbox separators look saner, mouseover triangles
# resize & make set large icons as the default.
# Make tri-states look un-pressed - don't confuse the clients
# Don't draw uber-ugly prelight mess
gui-toolbox.diff
gui-toolbox-large-icons.diff
gui-toolbox-tristate.diff
gui-toolbox-prelight.diff

[ FontBits ]

# Make the font scaling sane, use Xft dpi setting #15507: rc3
gui-font-scale.diff
gui-font-antialias-size.diff
# undo some horrible mistake #16682
gui-font-size-unbreak.diff

# Default font size of 8pt is too small
gui-font-default-size.diff

# Get KDE font weight and size, and use menuFont for menus
gui-fonts-kde.diff

# These are not included in the OOO_STABLE_1 build
# - Use the new Freetype API
# - Use the hinting parameters that we use in the rest of the desktop
gui-ft-21-compat.patch
gui-ft-set-hint.patch

# Don't bloat the ruler et. al. at larger font sizes #22098
gui-scale-ruler.diff

[ Misc ]

# Fallback to the English help if we don't have a given language
help-fallback-en.diff

# Fix some keybindings
gui-keybindings.diff

# Don't clutter us with dialogs at startup
gui-startup-declutter.diff

# not perfect, but lots better
gui-autocomplete.diff

# Always throw up a new window when we ask for one,
# instead of brokenly re-using old ones #19712
# Don't do a 'raise' after load: #19976
# Disable for now - causes grief with multi-displays etc. pending #19976
# gui-appear.diff

# Try and make the installer slightly wise to [OO]DESTDIR # 12781
inst-destdir.diff

# Improve ergonomics of slide / sheet rename #21659
gui-rename-dlg.diff

# Make the default writer bullet larger #21829
sw-default-bullet.diff

# Fix MS bullet export code - back-port from HEAD
sw-ms-bullet-export.diff

# Stop beeping ! #26070
sw-dont-beep.diff

# Dramatically improve MS import / export cf. #8276 et. al.
ms-filter-convert.diff

# A bullet is not a field - at least in MS land it isn't #21916
sw-bullet-not-field.diff

# The world need not see that I can't spell #21440
sd-export-no-spell-check.diff

# Save as menuitem for image context menus in impress #13816 gnome #127556
sd-save-image-context-menu.diff

# call mozilla, not netscape...
nswrapper-mozilla-not-netscape.diff

# Knock 50ms+ off pagein time #23350
pagein-speedup.diff

[ GnomeVFS ]

# New VFS provider stuff ..
vfs-offapi.diff
vfs-provider.diff
vfs-content.diff
vfs-directory.diff
vfs-stream.diff
vfs-uno-register.diff
vfs-ucp-setup.diff
vfs-uno-uri.diff

[ Misc ]
# Some of the new help & other icons we need
gui-new-icons.diff

[ MenuFixes ]

# Fix menu bloat / icon rendering / layout issues #17937
gui-menu-fixes.diff
# Use rendered images for check boxes instead of ugly symbols
gui-menu-check-images.diff
gui-menu-check-render.diff
# Fix menu checkitems, disable rendering of icons when the items unchecked
gui-menu-checkitems.diff

[ Misc ]
# fix 'new' button sizing #15208
gui-tbx-new-size.diff

# accelerate our glyph cache by not wasting time #15237 - in cws for 1.1.1
glyph-cache-speedup.diff

# Dialog remembers file save path, type & stores type right #17967
print-dialog.diff

[ GnomeCUPS ]
# If we can't print to the generic device offer 'add printer'
print-generic-gui.diff

# Printing should go via CUPS not lpr
print-cups.diff
print-psprint-rehash.diff

# Push fonts into the ps stream always
print-type42.diff

# DebianOnly: can't do this while supporting non-CUPS systems
# Disable spadmin install
print-spadmin-disable.diff

[ FontConfig ]
# Use fontconfig to get font directories
print-fontconfig.diff

# Fix scale silly reported by Dan on gsl-list
print-scale-fix.diff

# disable font management dialog in padmin
padmin-nofontconfig.diff

# Make sure that the UI font can display chars from the current
# locale, when Use System UI Font is on
gui-i18n-default-font.diff

[ FontBits ]
# fix some brokenness with font sync settings #15507, #16683
gui-ft-pt-not-pixel.diff
gui-ft-use-system-font.diff

[ XimianOnly, RedHatOnly ]
# Disable custom staroffice printer admin thing & broken crashdialog bits
module-buildset.diff

[ GlobalDesktopFiles ]
# DebianOnly: we use the generated desktop files by moving them to
#         the right place in the filesystem
# RH: we also use generated KDE desktop files and mime-types
# don't install duff / ugly KDE/Gnome integration bits
user-desktop-install.diff

[ Misc ]
# Add support for the freedesktop.org ~/.recently-used spec. #24253
recent-files.diff

# stop the user having to fight ooimpress constantly
capitalization.diff

# warn the user about printer errors #17966
print-error.diff

# Add 'Word count' to the Tools menu - i18n issues ? #17964
word-count.diff

# Replace the Zoom icon with a Combo box in toolbars #11354
zoom-combobox.diff

# Hide the URI box
gui-toolbox-cleanup.diff

# Make the delete key happy again in starcalc #17965 - wontfix [!]
gui-sc-delete.diff

# Don't build simply huge language specific sets
build-lang-no-pack.diff

# Try to get the font mapping right
gui-metric-fonts.diff
# Use 'Andy' after comicsansms, before kidprint
font-andy.diff

# use 'COMPATIBLE' to turn on MS compatible export as default
app-compatible.diff

# correct typo in Options->HTML compatibility for sv #16437
spell-sv-HTML.diff

# Translate File->New, ->Wizard menus when using langpacks #20537
gui-menu-new-wizard-translations.diff

[ XimianOnly, MinimalOnly, RedHatOnly ]
build-instsetoo-lang.diff

[ DebianOnly ]
# Temporary until above patch adapted for DebianOnly's needs
build-instsetoo-langext.diff

[ XimianOnly ]
# DebianOnly: doesn't work here
# Bad : modifier in $ ($).
# Don't sod the (working) path up [!] #18132
config-get-correct-path.diff

[ i18n ]

# Use the environment to determine locale #21191
i18n-sal.diff
i18n-rehash.diff

#18157
i18n-cleanup.diff

# Fall back to any installed language resource instead of
# crashing if -en or -de is not installed, Debian bug#171623
i18n-search-all.diff

# add datasource entries for MySQL for several languages, #22065
datasources_types_add_mysql.diff

[ SystemBits ]

# Don't install vera fonts when they're on the system already #21921
system-vera-fonts.diff
# use system zlib #21921
system-zlib.diff
# use getopt of the system's glibc
system-getopt.diff
# Fix tempfile vulnerability in dmake #7800 
dmake-tempnam.diff
# use system db
system-db.diff
# use system nas
system-nas.diff
# use system freetype
system-freetype.diff
# use system curl
system-curl.diff
# use system sane.h
system-sane.diff
# use system myspell
system-myspell.diff
# use system altlinuxhyph
system-altlinuxhyph.diff
# use system neon
system-neon.diff
# use system unixODBC headers
system-unixodbc.diff
system-xrender.diff

[ BuildBits ]
# add --without-fonts, --with-python, --disable-rpath,
# --enable-mozilla, --enable-fontconfig, --with-system-{zlib,nas,db,freetype}
# config switches #21920
config-switches.diff

# add the grist of --enable-mozilla #21922
config-disable-mozilla.diff

# update aclocal, for AM_PATH_PYTHON
config-aclocal.diff

# allow --disable-symbols
config-nosymbols.diff

# disable system python, not yet complete
# system-python.diff

# Disable old installation language comparison when upgrading
setup-no-langcheck.diff

# Work around 'absolute programpath cannot be found.' error when running
# setup in a bind mount #20459
setup-in-bindmount.diff

# Fix silly crasher in rscpp #19403
rsc-no-crash.diff

# unpack zip's in dictionaries with unzip - not with jar....
use-unzip-not-jar.diff

# fix svtools build deps #21967
svtools-build-fix.diff

# set LC_MESSAGES to C for gcc parsing, #25997
set-locale-c.diff

[ Misc ]

# Icu was patched to include rpath - remove it.
icu-no-rpath.diff

# Improve the web bullet export / export to png not gif. #23353
sd-export-html-theme.diff
sd-export-html.diff
sd-export-html-descr.diff

# export 'no color' bg to doc #18671
sw-export-bg-style.diff

# Don't continually beep annoyingly ... #18440
gui-beep-less.diff

# Fix nasty bindings related crasher X#45971, #18773
crash-bindings.diff

# Fix the pop-down problem with (at least) metacity #19157
gui-vcl-fix-borders.diff

# Fix the nasty default palette sizing #19158
gui-tbx-palette.diff

# Don't die with some strange incoming scp #19496
crash-mapmode.diff

# Fix the splash to not screwup on redraw #19646
gui-splash-redraw.diff

# Don't let the splash screen take over
no-splash-takeover.patch

# back-port accelerated bootstrap behavior #8359
# speed-bootstrap-cache.diff

# Initialize some values
# cf. #20184 & back-ported from cws_src680_valgrind01
init-desktop.diff
valgrind-clean.diff

# Make valgrinding easier
valgrind-alloc.diff

# Make the scroll-wheel / page popup more sane #20826
gui-sw-scroll.diff

# Disable style-list popup on first startup
gui-startup-style.diff

# Evo addressbook data source fixes #20958
evo-i18n.diff

# Use 'utility' type for floaters - fixes click-on-panel-task-switch bug
wm-dialog-utility.diff

# Fix some incorrect assumptions about registers (x86-only)
asm-fixes.patch

# File->New->Spreadsheet freezes on some versions of GCC
svx-freeze-fix.patch

# Update build.pl to revision 1.93 which handles parallel builds more gracefully
parallel-build-fix.patch

# Fix a General I/O Error, #19381, from cws_srx645_softdist01 (also on HEAD)
ooo111-general-io-error-sxi.diff

# Optimize linkage of some xmlhelp libraries
xmlhelp-optimize-linkage.patch

[ StartupNotification ]

# Startup notification fixes #18970
startup-fix.diff

[ NoJava ]

# If java is disabled with --disable-java, don't look for a JDK, but do look
# for xsltproc, and set XSLTPROC in set_soenv.
allow-no-jdk.diff

# Set the SOLAR_JAVA variable conditionally with "*=".
solenv-set-solar-java-only-if-unset.diff

# Use xsltproc to replace java for xml transforms in readlicense_oo.
readlicense-oo-xsltproc.diff

# Use xsltproc to replace java for xml transforms in officecfg.
officecfg-xsltproc.diff

# If SOLAR_JAVA is not set, don't attempt to zip up the compiled java files,
# since they will not be built.
ridljar-handle-no-solar-java.diff

# Don't build jpipe with SOLAR_JAVA not set.
jurt-handle-no-solar-java.diff

# Don't build jvmaccess with SOLAR_JAVA not set.
jvmaccess-handle-no-solar-java.diff

# Don't build jni_uno with SOLAR_JAVA not set.
jni-uno-handle-no-solar-java.diff

# Don't build javaunohelper with SOLAR_JAVA not set
javaunohelper-handle-no-solar-java.diff

# Don't use jvmaccess to get JDK font path with SOLAR_JAVA not set.
psprint-handle-no-solar-java.diff

# When SOLAR_JAVA is not set, replace java applet support with stubs that
# throw an exception.
sj2-handle-no-solar-java.diff

# Don't build jvmsetup or use jvmaccess for java-related setup with SOLAR_JAVA
# not set.
setup2-handle-no-solar-java.diff

# Don't ship various java-related files that will no longer be built, but ship
# the stubbed out libj from sj2 because setup fails without it.
scp-handle-no-solar-java.diff

# Disable SVG import support with SOLAR_JAVA not set, since it depends on
# compile-time and run-time java support.
svg-handle-no-solar-java.diff

# Disable java components with SOLAR_JAVA not set.
xsltvalidate-handle-no-solar-java.diff

# Disable java components with SOLAR_JAVA not set.
xsltfilter-handle-no-solar-java.diff

# Don't build javaldx with SOLAR_JAVA not set, and check for javaldx in
# soffice.sh before using it.
desktop-handle-no-solar-java.diff

[ CalcFixes ]
# egregious calc bug fixes - #25883, #25890
sc-fn-eng.diff
# start of improved value compatibility - #25898
sc-xl-io.diff
# don't be silly with A1=B2:B2 - #25924
sc-singleton-intersect.diff

#######################################################
# Patches applied in limited cases

[ XineramaPIC ]
# use libXinerama_pic.a on all archs
xinerama-pic-on-all-archs.diff

[ MinimalOnly ]
# disable odk build since we removed it from the tarball
disable-odk-build.diff

[ RedHatOnly, XimianOnly ]

# don't export a load of crazy global symbols #17841
unzip-cleanup.diff

# Use bug buddy
bug-buddy.diff

# Patch ODK to not require Java either
odk-handle-no-solar-java.patch

[ XimianOnly, DebianOnly ]
# Bin nasty bitstream fonts from most (English) mappings
font-de-bitstreamize-en.diff

# save everything to ~/Documents by default
path-home-documents.diff

[ OldLibArt ]
# add missing libart functions for older backports
build-use-old-libart.diff

#######################################################

[ DebianOnly ]

# Don't statically link setup to libstlport
stlport-dynamic-link.diff

# set OOO_DEBUG to strace or gdb soffice.bin
debug-ooo.diff

# hack to disable GIF generation using patented LZW compression
disable-lzwc.diff

# compile msgbox-gnome every time (we have to support ppc, s390, ... too)
compile-msgbox-gnome.diff

# Debian splashscreen
debian-splash.diff

# disable odk build since we removed it from the tarball
disable-odk-build.diff

[ SensibleBrowser ]
# use sensible-browser
sensible-browser.diff

#######################################################

[ RedHatOnly ]
# Munge default fonts to match Red Hat-shipped ones
redhat-default-fonts.patch

# deal with some conflicts with system neon stuff (?)
redhat-neon-sysmacrosh.patch

# Patch to point gnome-vfs to correct RH OOo icons
redhat-nautilus-icons.patch

# Red Hat splash screen
redhat-splash.diff

#######################################################

# so far XimianOnly only, controversial patches etc.
[ XimianOnly ]

# Help -> support
help-support.diff

# Integrate external programs & evo. hacks
desktop-integration.diff

# Some branding action
ximian-splash.diff

[ TestGtkIntegration ]
# Glib / gtk+ integration
glib-integration.diff
gtk-integration-salinst.diff
gtk-integration-saldata.diff
gtk-integration-saldisp.diff

[ XimianOnly ]
# the beginnings of layout
gui-window-layout.diff
gui-control-layout.diff

[ TestLayout ]
# the ends of layout
layout-ids.diff
layout-rsc.diff
layout-vcl-layout.diff
layout-vcl-window.diff
layout-test.diff

PATCHPATH=.:../OOO_1_1:../gtk
GtkFoo : TestGtkToplevel
[ TestGtkToplevel ]
gtk-framework.diff
# gtk-scp.diff
gtk-solenv.diff
# gtk-vcl-main.diff
gtk-vcl-unx-dummy.diff
gtk-vcl-unx-gtkdata.diff
gtk-vcl-unx-gtk.diff
gtk-vcl-unx-gtkframe.diff
gtk-vcl-unx-gtkinst.diff
gtk-vcl-unx-gtkobject.diff
gtk-vcl-unx-gtksys.diff
# gtk-vcl-unx-inc.diff
# gtk-vcl-unx-make.diff
# gtk-vcl-unx-sal.diff
