[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][xorg-team/app/twm][debian-unstable] 14 commits: Do not try to extend the font-pattern with a wild-card.



Title: GitLab

Julien Cristau pushed to branch debian-unstable at X Strike Force / app / twm

Commits:

10 changed files:

Changes:

  • ChangeLog
    1
    +commit ca032d147824861b2451c5b0ff715429f055cfe1
    
    2
    +Author: Alan Coopersmith <alan.coopersmith@oracle.com>
    
    3
    +Date:   Tue Mar 6 23:09:04 2018 -0800
    
    4
    +
    
    5
    +    twm 1.0.10
    
    6
    +    
    
    7
    +    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
    
    8
    +
    
    9
    +commit 9703527df12caf896963a0f39db79e58f2ab2bfa
    
    10
    +Author: Mihail Konev <k.mvc@ya.ru>
    
    11
    +Date:   Thu Jan 26 14:00:20 2017 +1000
    
    12
    +
    
    13
    +    autogen: add default patch prefix
    
    14
    +    
    
    15
    +    Signed-off-by: Mihail Konev <k.mvc@ya.ru>
    
    16
    +
    
    17
    +commit d58f4564f5621ec6c0e7ea6ee9d647845ac11352
    
    18
    +Author: Emil Velikov <emil.l.velikov@gmail.com>
    
    19
    +Date:   Mon Mar 9 12:00:52 2015 +0000
    
    20
    +
    
    21
    +    autogen.sh: use quoted string variables
    
    22
    +    
    
    23
    +    Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent
    
    24
    +    fall-outs, when they contain space.
    
    25
    +    
    
    26
    +    Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
    
    27
    +    Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
    
    28
    +    Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
    
    29
    +
    
    30
    +commit ca0c7a4eee66c96e6d449a58742d749c20aa494d
    
    31
    +Author: Peter Hutterer <peter.hutterer@who-t.net>
    
    32
    +Date:   Tue Jan 24 10:32:07 2017 +1000
    
    33
    +
    
    34
    +    autogen.sh: use exec instead of waiting for configure to finish
    
    35
    +    
    
    36
    +    Syncs the invocation of configure with the one from the server.
    
    37
    +    
    
    38
    +    Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
    
    39
    +    Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
    
    40
    +
    
    41
    +commit c5abcb619eb0b01f074fd9acb9128f19af774834
    
    42
    +Author: Thomas Klausner <wiz@NetBSD.org>
    
    43
    +Date:   Wed Sep 23 20:53:24 2015 +0200
    
    44
    +
    
    45
    +    Adapt callers to ExpandFilename change.
    
    46
    +    
    
    47
    +    It now always allocates memory, so remove some unnecessary checks.
    
    48
    +    While here, improve handling of an error case.
    
    49
    +    
    
    50
    +    Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
    
    51
    +    Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
    
    52
    +
    
    53
    +commit cb5dc44303e8496450a649a97540e55887e1fe22
    
    54
    +Author: Christos Zoulas <christos@NetBSD.org>
    
    55
    +Date:   Wed Sep 23 10:57:44 2015 +0200
    
    56
    +
    
    57
    +    Add some const.
    
    58
    +    
    
    59
    +    Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
    
    60
    +    Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
    
    61
    +
    
    62
    +commit c644db2c3a1b6c9e5e99da130493a978a7d08010
    
    63
    +Author: Michael van Elst <mlelstv@NetBSD.org>
    
    64
    +Date:   Sun Jul 19 12:04:52 2015 +0200
    
    65
    +
    
    66
    +    Do not try to extend the font-pattern with a wild-card.
    
    67
    +    
    
    68
    +    This will almost always select the wrong fontset and use wrong metrics.
    
    69
    +    
    
    70
    +    Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
    
    71
    +    Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
    
    72
    +
    
    1 73
     commit b52e4041054b580bace70d9db5e7e3d90b33ad6d
    
    2 74
     Author: Alan Coopersmith <alan.coopersmith@oracle.com>
    
    3 75
     Date:   Thu Apr 16 22:36:31 2015 -0700
    

  • autogen.sh
    1 1
     #! /bin/sh
    
    2 2
     
    
    3
    -srcdir=`dirname $0`
    
    3
    +srcdir=`dirname "$0"`
    
    4 4
     test -z "$srcdir" && srcdir=.
    
    5 5
     
    
    6 6
     ORIGDIR=`pwd`
    
    7
    -cd $srcdir
    
    7
    +cd "$srcdir"
    
    8 8
     
    
    9 9
     autoreconf -v --install || exit 1
    
    10
    -cd $ORIGDIR || exit $?
    
    10
    +cd "$ORIGDIR" || exit $?
    
    11
    +
    
    12
    +git config --local --get format.subjectPrefix >/dev/null 2>&1 ||
    
    13
    +    git config --local format.subjectPrefix "PATCH app/twm"
    
    11 14
     
    
    12 15
     if test -z "$NOCONFIGURE"; then
    
    13
    -    $srcdir/configure "$@"
    
    16
    +    exec "$srcdir"/configure "$@"
    
    14 17
     fi

  • configure.ac
    ... ... @@ -22,7 +22,7 @@ dnl Process this file with autoconf to create configure.
    22 22
     
    
    23 23
     # Initialize Autoconf
    
    24 24
     AC_PREREQ([2.60])
    
    25
    -AC_INIT([twm], [1.0.9],
    
    25
    +AC_INIT([twm], [1.0.10],
    
    26 26
             [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [twm])
    
    27 27
     AC_CONFIG_SRCDIR([Makefile.am])
    
    28 28
     AC_CONFIG_HEADERS([config.h])
    

  • debian/README.source
    ... ... @@ -47,27 +47,3 @@ are involved:
    47 47
       case, it appears directly in the .diff.gz.
    
    48 48
     * Otherwise, the patch is added to debian/patches/ which is managed
    
    49 49
       with quilt as documented in /usr/share/doc/quilt/README.source.
    50
    -
    
    51
    -quilt is actually invoked by the Debian X packaging through a larger
    
    52
    -set of scripts called XSFBS. XSFBS brings some other X specific
    
    53
    -features such as managing dependencies and conflicts due to the video
    
    54
    -and input driver ABIs.
    
    55
    -XSFBS itself is maintained in a separate repository at
    
    56
    -  git://git.debian.org/pkg-xorg/xsfbs.git
    
    57
    -and it is pulled inside the other Debian X repositories when needed.
    
    58
    -
    
    59
    -The XSFBS patching system requires a build dependency on quilt. Also
    
    60
    -a dependency on $(STAMP_DIR)/patch has to be added to debian/rules
    
    61
    -so that the XSFBS patching occurs before the actual build. So the
    
    62
    -very first target of the build (likely the one running autoreconf)
    
    63
    -should depend on $(STAMP_DIR)/patch. It should also not depend on
    
    64
    -anything so that parallel builds are correctly supported (nothing
    
    65
    -should probably run while patching is being done). And finally, the
    
    66
    -clean target should depend on the xsfclean target so that patches
    
    67
    -are unapplied on clean.
    
    68
    -
    
    69
    -When the upstream sources contain some DFSG-nonfree files, they are
    
    70
    -listed in text files in debian/prune/ in the "debian-*" branch of
    
    71
    -the Debian repository. XSFBS' scripts then take care of removing
    
    72
    -these listed files during the build so as to generate a modified
    
    73
    -DFSG-free .orig.tar.gz tarball.

  • debian/changelog
    1
    -twm (1:1.0.9-2) UNRELEASED; urgency=medium
    
    1
    +twm (1:1.0.10-1) unstable; urgency=medium
    
    2 2
     
    
    3
    -  * Update Vcs-* control fields to use https.
    
    3
    +  * Team upload.
    
    4
    +  * Update Vcs-* control fields to point at salsa.
    
    4 5
       * Update www.gnu.org and xorg.freedesktop.org URLs in packaging to https.
    
    6
    +  * Delete XSFBS-related cruft from README.source.
    
    7
    +  * Update upstream git URL to point at gitlab.fdo.
    
    8
    +  * New upstream release
    
    5 9
     
    
    6
    - -- Julien Cristau <jcristau@debian.org>  Sun, 21 Aug 2016 18:11:41 +0200
    
    10
    + -- Julien Cristau <jcristau@debian.org>  Thu, 06 Sep 2018 15:16:24 +0200
    
    7 11
     
    
    8 12
     twm (1:1.0.9-1) unstable; urgency=medium
    
    9 13
     
    

  • debian/control
    ... ... @@ -16,8 +16,8 @@ Build-Depends:
    16 16
      xutils-dev (>= 1:7.5+4),
    
    17 17
      automake,
    
    18 18
     Standards-Version: 3.9.1
    
    19
    -Vcs-Git: https://anonscm.debian.org/git/pkg-xorg/app/twm.git
    
    20
    -Vcs-Browser: https://anonscm.debian.org/git/pkg-xorg/app/twm.git
    
    19
    +Vcs-Git: https://salsa.debian.org/xorg-team/app/twm.git
    
    20
    +Vcs-Browser: https://salsa.debian.org/xorg-team/app/twm
    
    21 21
     
    
    22 22
     Package: twm
    
    23 23
     Architecture: any
    

  • debian/watch
    1
    -#git=git://anongit.freedesktop.org/xorg/app/twm
    
    1
    +#git=https://gitlab.freedesktop.org/xorg/app/twm
    
    2 2
     version=3
    
    3 3
     opts="pgpsigurlmangle=s/$/.sig/" \
    
    4
    -https://xorg.freedesktop.orgreleases/individual/app/ twm-(.*)\.tar\.gz
    4
    +https://xorg.freedesktop.org/releases/individual/app/ twm-(.*)\.tar\.gz

  • src/menus.c
    ... ... @@ -2020,7 +2020,7 @@ ExecuteFunction(int func, const char *action, Window w, TwmWindow *tmp_win,
    2020 2020
     				 "%s:  unable to open cut file \"%s\"\n",
    
    2021 2021
     				 ProgramName, tmp);
    
    2022 2022
     		    }
    
    2023
    -		    if (ptr != tmp) free (ptr);
    
    2023
    +		    free (ptr);
    
    2024 2024
     		}
    
    2025 2025
     	    } else {
    
    2026 2026
     		XFree(ptr);
    
    ... ... @@ -2171,21 +2171,25 @@ ExecuteFunction(int func, const char *action, Window w, TwmWindow *tmp_win,
    2171 2171
     
    
    2172 2172
         case F_FILE:
    
    2173 2173
     	ptr = ExpandFilename(action);
    
    2174
    -	fd = open(ptr, O_RDONLY);
    
    2175
    -	if (fd >= 0)
    
    2176
    -	{
    
    2177
    -	    count = read(fd, buff, MAX_FILE_SIZE - 1);
    
    2178
    -	    if (count > 0)
    
    2179
    -		XStoreBytes(dpy, buff, count);
    
    2174
    +	if (ptr) {
    
    2175
    +	    fd = open(ptr, O_RDONLY);
    
    2176
    +	    if (fd >= 0)
    
    2177
    +	    {
    
    2178
    +		count = read(fd, buff, MAX_FILE_SIZE - 1);
    
    2179
    +		if (count > 0)
    
    2180
    +		    XStoreBytes(dpy, buff, count);
    
    2180 2181
     
    
    2181
    -	    close(fd);
    
    2182
    -	}
    
    2183
    -	else
    
    2184
    -	{
    
    2185
    -	    fprintf (stderr, "%s:  unable to open file \"%s\"\n",
    
    2186
    -		     ProgramName, ptr);
    
    2182
    +		close(fd);
    
    2183
    +	    }
    
    2184
    +	    else
    
    2185
    +	    {
    
    2186
    +		fprintf (stderr, "%s:  unable to open file \"%s\"\n",
    
    2187
    +			 ProgramName, ptr);
    
    2188
    +	    }
    
    2189
    +	    free(ptr);
    
    2190
    +	} else {
    
    2191
    +	    fprintf (stderr, "%s: error expanding filename\n", ProgramName);
    
    2187 2192
     	}
    
    2188
    -	if (ptr != action) free(ptr);
    
    2189 2193
     	break;
    
    2190 2194
     
    
    2191 2195
         case F_REFRESH:
    

  • src/util.c
    ... ... @@ -256,11 +256,11 @@ Zoom(Window wf, Window wt)
    256 256
      *  \param name  the filename to expand
    
    257 257
      */
    
    258 258
     char *
    
    259
    -ExpandFilename(char *name)
    
    259
    +ExpandFilename(const char *name)
    
    260 260
     {
    
    261 261
         char *newname;
    
    262 262
     
    
    263
    -    if (name[0] != '~') return name;
    
    263
    +    if (name[0] != '~') return strdup(name);
    
    264 264
     
    
    265 265
         newname = malloc (HomeLen + strlen(name) + 2);
    
    266 266
         if (!newname) {
    
    ... ... @@ -350,7 +350,7 @@ FindBitmap (const char *name, unsigned *widthp, unsigned *heightp)
    350 350
         pm = XmuLocateBitmapFile (ScreenOfDisplay(dpy, Scr->screen), bigname, NULL,
    
    351 351
     			      0, (int *)widthp, (int *)heightp, &HotX, &HotY);
    
    352 352
         if (pm == None && Scr->IconDirectory && bigname[0] != '/') {
    
    353
    -	if (bigname != name) free (bigname);
    
    353
    +	free (bigname);
    
    354 354
     	/*
    
    355 355
     	 * Attempt to find icon in old IconDirectory (now obsolete)
    
    356 356
     	 */
    
    ... ... @@ -367,7 +367,7 @@ FindBitmap (const char *name, unsigned *widthp, unsigned *heightp)
    367 367
     	    pm = None;
    
    368 368
     	}
    
    369 369
         }
    
    370
    -    if (bigname != name) free (bigname);
    
    370
    +    free (bigname);
    
    371 371
         if (pm == None) {
    
    372 372
     	fprintf (stderr, "%s:  unable to find bitmap \"%s\"\n",
    
    373 373
     		 ProgramName, name);
    
    ... ... @@ -589,17 +589,13 @@ GetFont(MyFont *font)
    589 589
         int ascent;
    
    590 590
         int descent;
    
    591 591
         int fnum;
    
    592
    -    char *basename2;
    
    593 592
     
    
    594 593
         if (use_fontset) {
    
    595 594
     	if (font->fontset != NULL){
    
    596 595
     	    XFreeFontSet(dpy, font->fontset);
    
    597 596
     	}
    
    598 597
     
    
    599
    -	basename2 = malloc(strlen(font->name) + 3);
    
    600
    -	if (basename2) sprintf(basename2, "%s,*", font->name);
    
    601
    -	else basename2 = font->name;
    
    602
    -	if( (font->fontset = XCreateFontSet(dpy, basename2,
    
    598
    +	if( (font->fontset = XCreateFontSet(dpy, font->name,
    
    603 599
     					    &missing_charset_list_return,
    
    604 600
     					    &missing_charset_count_return,
    
    605 601
     					    &def_string_return)) == NULL) {
    
    ... ... @@ -607,7 +603,6 @@ GetFont(MyFont *font)
    607 603
     			 ProgramName, font->name);
    
    608 604
     	    exit(1);
    
    609 605
     	}
    
    610
    -	if (basename2 != font->name) free(basename2);
    
    611 606
     	for(i=0; i<missing_charset_count_return; i++){
    
    612 607
     	    printf("%s: warning: font for charset %s is lacking.\n",
    
    613 608
     		   ProgramName, missing_charset_list_return[i]);
    

  • src/util.h
    ... ... @@ -64,7 +64,7 @@ in this Software without prior written authorization from The Open Group.
    64 64
     extern void MoveOutline ( Window root, int x, int y, int width, int height,
    
    65 65
     			  int bw, int th );
    
    66 66
     extern void Zoom ( Window wf, Window wt );
    
    67
    -extern char * ExpandFilename ( char *name );
    
    67
    +extern char * ExpandFilename ( const char *name );
    
    68 68
     extern void GetUnknownIcon ( const char *name );
    
    69 69
     extern Pixmap FindBitmap ( const char *name, unsigned int *widthp,
    
    70 70
     			   unsigned int *heightp );
    


  • Reply to: