Package: motif / 2.3.8-2

Metadata

Package Version Patches format
motif 2.3.8-2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
fix autoconf.patch | (download)

configure.ac | 15 7 + 8 - 0 !
1 file changed, 7 insertions(+), 8 deletions(-)

 update build system to satisfy latest automake/autoconf
 This is part of the patch submitted by Adam Sampson,
 so we can build without having to provide AUTHORS and NEWS files
 .
 Adam licensed his patch under MIT license (whatever that means ;) )
fix format security.patch | (download)

lib/Mrm/Mrmhier.c | 4 2 + 2 - 0 !
lib/Mrm/Mrmicon.c | 4 2 + 2 - 0 !
lib/Mrm/Mrmlread.c | 2 1 + 1 - 0 !
lib/Mrm/Mrmwcrw.c | 4 2 + 2 - 0 !
tools/wml/wmlouth.c | 118 59 + 59 - 0 !
tools/wml/wmloutkey.c | 10 5 + 5 - 0 !
tools/wml/wmloutmm.c | 8 4 + 4 - 0 !
7 files changed, 75 insertions(+), 75 deletions(-)

 fix unsafe uses of fprintf and sprintf
 prevent 'format not a string literal and no format arguments' errors
add debian menu structure to system.mwmrc menu.patch | (download)

clients/mwm/system.mwmrc | 6 6 + 0 - 0 !
1 file changed, 6 insertions(+)

 add debian menu structure to system.mwmrc-menu
multiarch specialcase libdir X11.patch | (download)

configure.ac | 6 4 + 2 - 0 !
1 file changed, 4 insertions(+), 2 deletions(-)

 relocate non-libs from /usr/lib/x11
 For multiarch support, we change libdir to /usr/lib/$(DEB_HOST_MULTIARCH).
 However, we do not want to do this to /usr/lib/X11 yet.
 .
 Note that XMBINDDIR_FALLBACK should really be set to /usr/share/X11/bindings
 since the files are platform-independent. We postpone moving them until a
 decision has been reached on libmotif-common.
 .
 The configure.ac fixes are minimal and only suitable for Debian/Ubuntu
 packaging. For upstream one might want to add a command line option.
 .
 Sergio Gelato, 2012-05-20.
 .
 Allow the MWM resources and fallback bindings directories to be customized
 with the --with-mwmrcdir and --xmbinddir configure options respectively.
 Now we can relocate non-library files from /usr/lib/X11 to /usr/share/X11
 (bindings) and /etc/X11/mwm (MWM resources) in debian/rules, allowing us to
 split motif into architecture-dependent and architecture-independent packages.
 .
 Graham Inggs, 2013-03-12.
Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=673690
cast size_t to int.patch | (download)

tools/wml/wmloutkey.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 to prevent build failure during building with hardening options
 enabled due to "format '%d' expects argument of type 'int', but argument 5 has
 type 'size_t'", the fifth argument is cast to integer on the input.
fix_lintian_reported_manpage_typos.patch | (download)

doc/man/man1/mwm.1 | 2 1 + 1 - 0 !
doc/man/man3/VendorShell.3 | 2 1 + 1 - 0 !
doc/man/man3/XmComboBox.3 | 2 1 + 1 - 0 !
doc/man/man3/XmFontListEntryLoad.3 | 2 1 + 1 - 0 !
doc/man/man3/XmFontSelector.3 | 2 1 + 1 - 0 !
doc/man/man3/XmFrame.3 | 2 1 + 1 - 0 !
doc/man/man3/XmGetPixmap.3 | 2 1 + 1 - 0 !
doc/man/man3/XmGetPixmapByDepth.3 | 2 1 + 1 - 0 !
doc/man/man3/XmHierarchyGetChildNodes.3 | 4 2 + 2 - 0 !
doc/man/man3/XmIconButton.3 | 2 1 + 1 - 0 !
doc/man/man3/XmLabel.3 | 2 1 + 1 - 0 !
doc/man/man3/XmManager.3 | 2 1 + 1 - 0 !
doc/man/man3/XmNotebook.3 | 2 1 + 1 - 0 !
doc/man/man3/XmPrimitive.3 | 2 1 + 1 - 0 !
doc/man/man3/XmPrintSetup.3 | 2 1 + 1 - 0 !
doc/man/man3/XmPrintShell.3 | 2 1 + 1 - 0 !
doc/man/man3/XmRendition.3 | 2 1 + 1 - 0 !
doc/man/man3/XmSlideContext.3 | 2 1 + 1 - 0 !
doc/man/man3/XmStringGetNextComponent.3 | 2 1 + 1 - 0 !
doc/man/man3/XmStringToXmStringTable.3 | 2 1 + 1 - 0 !
doc/man/man3/XmTabStack.3 | 2 1 + 1 - 0 !
doc/man/man3/XmTabStackXYToWidget.3 | 2 1 + 1 - 0 !
doc/man/man4/mwmrc.4 | 2 1 + 1 - 0 !
doc/man/man5/UIL.5 | 2 1 + 1 - 0 !
24 files changed, 25 insertions(+), 25 deletions(-)

 lintian reports several typos in manpages. this patch fixes those
 reported
fix_hyphen_in_man_pages.patch | (download)

doc/man/man1/mwm.1 | 8 4 + 4 - 0 !
doc/man/man3/XmFontList.3 | 8 4 + 4 - 0 !
doc/man/man3/XmGetPixmapByDepth.3 | 4 2 + 2 - 0 !
doc/man/man3/XmList.3 | 2 1 + 1 - 0 !
doc/man/man3/XmScreen.3 | 2 1 + 1 - 0 !
doc/man/man3/XmTabListCopy.3 | 2 1 + 1 - 0 !
doc/man/man3/XmTabListInsertTabs.3 | 2 1 + 1 - 0 !
doc/man/man4/mwmrc.4 | 2 1 + 1 - 0 !
doc/man/man5/UIL.5 | 4 2 + 2 - 0 !
9 files changed, 17 insertions(+), 17 deletions(-)

 lintian reports hyphen misuse in manpages. this patch fixes those
 reported.
fix_typo_in_libxm.patch | (download)

lib/Xm/FontS.c | 4 2 + 2 - 0 !
lib/Xm/Messages.c | 2 1 + 1 - 0 !
2 files changed, 3 insertions(+), 3 deletions(-)

 lintian reports a typo in libxm. this patch fixes it.
fix_manpage has bad whatis entry.patch | (download)

doc/man/man3/XmColorSelector.3 | 2 1 + 1 - 0 !
doc/man/man3/XmExt18List.3 | 2 1 + 1 - 0 !
doc/man/man3/XmFontSelector.3 | 2 1 + 1 - 0 !
doc/man/man3/XmIconButton.3 | 2 1 + 1 - 0 !
4 files changed, 4 insertions(+), 4 deletions(-)

 lintian reports bad whatis entries in manpages. fixing here
fix_underlinking.patch | (download)

clients/mwm/Makefile.am | 2 1 + 1 - 0 !
clients/uil/Makefile.am | 4 2 + 2 - 0 !
clients/xmbind/Makefile.am | 2 1 + 1 - 0 !
demos/doc/programGuide/ch05/Scale/Makefile.am | 2 1 + 1 - 0 !
demos/doc/programGuide/ch06/combo_box/Makefile.am | 2 1 + 1 - 0 !
demos/doc/programGuide/ch06/spin_box/Makefile.am | 2 1 + 1 - 0 !
demos/doc/programGuide/ch08/Container/Makefile.am | 2 1 + 1 - 0 !
demos/doc/programGuide/ch08/Notebook/Makefile.am | 2 1 + 1 - 0 !
demos/doc/programGuide/ch16/Makefile.am | 2 1 + 1 - 0 !
demos/doc/programGuide/ch17/simple_drag/Makefile.am | 2 1 + 1 - 0 !
demos/doc/programGuide/ch17/simple_drop/Makefile.am | 2 1 + 1 - 0 !
demos/lib/Exm/wml/Makefile.am | 2 1 + 1 - 0 !
demos/lib/Xmd/Makefile.am | 2 1 + 1 - 0 !
demos/programs/ButtonBox/Makefile.am | 2 1 + 1 - 0 !
demos/programs/ColorSel/Makefile.am | 2 1 + 1 - 0 !
demos/programs/Column/Makefile.am | 2 1 + 1 - 0 !
demos/programs/Combo2/Makefile.am | 2 1 + 1 - 0 !
demos/programs/Exm/app_in_c/Makefile.am | 2 1 + 1 - 0 !
demos/programs/Exm/simple_app/Makefile.am | 5 3 + 2 - 0 !
demos/programs/Ext18List/Makefile.am | 2 1 + 1 - 0 !
demos/programs/FontSel/Makefile.am | 2 1 + 1 - 0 !
demos/programs/IconB/Makefile.am | 2 1 + 1 - 0 !
demos/programs/Outline/Makefile.am | 2 1 + 1 - 0 !
demos/programs/Paned/Makefile.am | 2 1 + 1 - 0 !
demos/programs/TabStack/Makefile.am | 2 1 + 1 - 0 !
demos/programs/Tree/Makefile.am | 2 1 + 1 - 0 !
demos/programs/airport/Makefile.am | 2 1 + 1 - 0 !
demos/programs/animate/Makefile.am | 2 1 + 1 - 0 !
demos/programs/drag_and_drop/Makefile.am | 2 1 + 1 - 0 !
demos/programs/draw/Makefile.am | 2 1 + 1 - 0 !
demos/programs/earth/Makefile.am | 2 1 + 1 - 0 !
demos/programs/filemanager/Makefile.am | 2 1 + 1 - 0 !
demos/programs/fileview/Makefile.am | 2 1 + 1 - 0 !
demos/programs/getsubres/Makefile.am | 2 1 + 1 - 0 !
demos/programs/hellomotif/Makefile.am | 2 1 + 1 - 0 !
demos/programs/hellomotifi18n/Makefile.am | 2 1 + 1 - 0 !
demos/programs/i18ninput/Makefile.am | 2 1 + 1 - 0 !
demos/programs/panner/Makefile.am | 2 1 + 1 - 0 !
demos/programs/periodic/Makefile.am | 2 1 + 1 - 0 !
demos/programs/piano/Makefile.am | 2 1 + 1 - 0 !
demos/programs/popups/Makefile.am | 2 1 + 1 - 0 !
demos/programs/sampler2_0/Makefile.am | 2 1 + 1 - 0 !
demos/programs/setdate/Makefile.am | 2 1 + 1 - 0 !
demos/programs/todo/Makefile.am | 2 1 + 1 - 0 !
demos/programs/tooltips/Makefile.am | 2 1 + 1 - 0 !
demos/programs/workspace/Makefile.am | 2 1 + 1 - 0 !
demos/unsupported/aicon/Makefile.am | 2 1 + 1 - 0 !
demos/unsupported/dainput/Makefile.am | 2 1 + 1 - 0 !
demos/unsupported/dogs/Makefile.am | 2 1 + 1 - 0 !
demos/unsupported/hellomotif/Makefile.am | 2 1 + 1 - 0 !
demos/unsupported/motifshell/Makefile.am | 2 1 + 1 - 0 !
demos/unsupported/xmapdef/Makefile.am | 2 1 + 1 - 0 !
demos/unsupported/xmfonts/Makefile.am | 2 1 + 1 - 0 !
demos/unsupported/xmforc/Makefile.am | 2 1 + 1 - 0 !
demos/unsupported/xmform/Makefile.am | 2 1 + 1 - 0 !
tools/wml/Makefile.am | 2 1 + 1 - 0 !
56 files changed, 59 insertions(+), 58 deletions(-)

 fix underlinking of libxt, libxext and libx11
 Recent changes to default linker behaviour prevent shared libraries from being
 indirectly linked, resulting in FTBFS in Ubuntu Raring.
 .
 This patch fixes this by explicitly linking libXt, libXext and libX11 wherever
 necessary.  Demos are patched even though they are not built for distribution.
fix_hardcoded_x11rgb_path.patch | (download)

configure.ac | 4 4 + 0 - 0 !
lib/Xm/ColorS.c | 6 5 + 1 - 0 !
lib/Xm/Makefile.am | 1 1 + 0 - 0 !
3 files changed, 10 insertions(+), 1 deletion(-)

 fix hardcoded path to /usr/lib/x11/rgb.txt in lib/xm/colors.c
 LibXm is hardcoded to read rgb.txt from /usr/lib/X11 but this file, provided
 by x11-common in Debian, is located in /etc/X11 and /usr/share/X11 via symlink.
 .
 This patch fixes this by allowing the directory in which rgb.txt resides to be
 customized by the --with-x11rgbdir=DIR configure option.
fix_ac_find_xft.patch | (download)

ac_find_xft.m4 | 30 21 + 9 - 0 !
1 file changed, 21 insertions(+), 9 deletions(-)

 fix ac_find_xft.m4
 ac_find_xft.m4 fails tests required to enable building with Xft anti-aliased fonts.
 We also need to add -lfontconfig to LIBS to prevent underlinking of libXm.
 .
 This patch fixes these.  Build-depends on libfontconfig1-dev, libfreetype6-dev and
 libxrender-dev can be dropped as they are all dependencies of libxft-dev.
link_uil_against_libuil.patch | (download)

clients/uil/Makefile.am | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 link the uil executable against libuil
 Linking the uil executable againt libUil instead of compiling with the libUil
 code results in a reduction in size of the uil executable from about 348KB
 to about 16KB.
 .
 This patch originates from Red Hat.
fix undefined use of sprintf.patch | (download)

lib/Xm/XmRenderT.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix undefined use of sprintf
 This patch fixes the undefined use of sprintf when the
 source and destination buffers overlap.
switch to system iswspace.patch | (download)

lib/Xm/DataF.c | 95 12 + 83 - 0 !
lib/Xm/TextF.c | 86 12 + 74 - 0 !
2 files changed, 24 insertions(+), 157 deletions(-)

 switch to system iswspace() function
 This patch replaces calls to _XmDataFieldIsWSpace() in lib/Xm/DataF.c
 and _XmTextFieldIsWSpace() in lib/Xm/TextF.c with calls to the system
 iswspace() function.
 .
 It fixes an array bounds error in lib/Xm/DataF.c where 
 _XmDataFieldIsWSpace() is called with num_entries = 3.
 .
 Updated to include wctype.h to avoid implicit declaration warnings.
 .
 For testing purposes, there is an XmTextField object that allows
 alphanumeric characters in demos/programs/i18ninput, and there
 are XmDataField objects in demos/programs/Column.
fix type inconsistencies.patch | (download)

demos/lib/Xmd/RegEdit.c | 2 1 + 1 - 0 !
lib/Xm/DataFSel.c | 4 2 + 2 - 0 !
lib/Xm/EditresComI.h | 2 1 + 1 - 0 !
lib/Xm/TabStack.c | 2 1 + 1 - 0 !
4 files changed, 5 insertions(+), 5 deletions(-)

 fix type inconsistencies
 This patch fixes various type inconsistencies reported by goto-cc
 from the cbmc package.
pass hardening flags.patch | (download)

demos/lib/Exm/wml/Makefile.am | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 pass hardening flags
revert fix 1617.patch | (download)

demos/programs/ColorSel/util-c.c | 12 6 + 6 - 0 !
demos/programs/Ext18List/util-c.c | 12 6 + 6 - 0 !
demos/programs/IconB/misc.c | 12 6 + 6 - 0 !
demos/programs/Paned/paned.c | 4 2 + 2 - 0 !
demos/programs/TabStack/bxutils.c | 14 7 + 7 - 0 !
demos/programs/Tree/bxutil-c.c | 12 6 + 6 - 0 !
6 files changed, 33 insertions(+), 33 deletions(-)

 revert fix for upstream bug #1617
 This patch reverts changes which caused TabStack demo
 to segfault when starting.
 https://sourceforge.net/p/motif/code/ci/2b90f83a51ac73b1238e7f9b64949667ddbdd8fe/
Bug: http://bugs.motifzone.net/show_bug.cgi?id=1661