Source-Changes-HG archive

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

[xsrc/trunk]: xsrc/external/mit/xprop/dist initial import of xprop-1.2.5



details:   https://anonhg.NetBSD.org/xsrc/rev/d8b2872dbaa1
branches:  trunk
changeset: 10684:d8b2872dbaa1
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Apr 27 01:21:09 2021 +0000

description:
initial import of xprop-1.2.5

diffstat:

 external/mit/xprop/dist/ChangeLog       |   113 +
 external/mit/xprop/dist/Makefile.in     |    90 +-
 external/mit/xprop/dist/README.md       |    17 +-
 external/mit/xprop/dist/aclocal.m4      |  2514 ++++++++++++++----------------
 external/mit/xprop/dist/compile         |    17 +-
 external/mit/xprop/dist/config.guess    |     8 +-
 external/mit/xprop/dist/config.sub      |     4 +-
 external/mit/xprop/dist/configure       |   299 ++-
 external/mit/xprop/dist/configure.ac    |     2 +-
 external/mit/xprop/dist/depcomp         |    10 +-
 external/mit/xprop/dist/install-sh      |    60 +-
 external/mit/xprop/dist/man/Makefile.in |    14 +-
 external/mit/xprop/dist/missing         |    16 +-
 external/mit/xprop/dist/xprop.c         |    92 +-
 14 files changed, 1713 insertions(+), 1543 deletions(-)

diffs (truncated from 4127 to 300 lines):

diff -r 8743ef3e5369 -r d8b2872dbaa1 external/mit/xprop/dist/ChangeLog
--- a/external/mit/xprop/dist/ChangeLog Tue Apr 27 01:21:06 2021 +0000
+++ b/external/mit/xprop/dist/ChangeLog Tue Apr 27 01:21:09 2021 +0000
@@ -1,3 +1,116 @@
+commit ec5aeaddddec4b4bdb532451f5a2bc8e3b7148a9
+Author: Keith Packard <keithp%keithp.com@localhost>
+Date:   Thu Nov 19 16:24:50 2020 -0800
+
+    xprop 1.2.5
+    
+    Signed-off-by: Keith Packard <keithp%keithp.com@localhost>
+
+commit 09f145bcf13a08a05daf85f75444741ffb78a2bb
+Author: Keith Packard <keithp%keithp.com@localhost>
+Date:   Tue Nov 17 15:22:49 2020 -0800
+
+    Check return value from ioctl(TIOCGWINSZ)
+    
+    Make sure the function succeeded before looking at the return value.
+    
+    Signed-off-by: Keith Packard <keithp%keithp.com@localhost>
+
+commit 95025ea167d87998ef0bd3ed25dfaa2c179cf712
+Author: Keith Packard <keithp%keithp.com@localhost>
+Date:   Tue Nov 17 15:19:46 2020 -0800
+
+    Correct icon buffer width computation for truecolor terminals
+    
+    Fix the test when computing size necessary for true color output to
+    use 'is_truecolor_term' instead of 'is_utf8_locale'. A non-utf8 locale
+    with a true color terminal would have under-allocated the
+    buffer. Also, check for truecolor first to match the output code.
+    
+    This doesn't fix the fact that this code over-allocates by a factor of
+    two in this case, but that at least won't cause memory corruption.
+    
+    Signed-off-by: Keith Packard <keithp%keithp.com@localhost>
+
+commit 706ed45e0b58219bc623b8c5f963777a120d2844
+Author: Keith Packard <keithp%keithp.com@localhost>
+Date:   Tue Nov 17 15:18:46 2020 -0800
+
+    Free string list returned from XmbTextPropertyToTextList
+    
+    Make sure we clean up after this call by using the XFreeStringList
+    function.
+    
+    Signed-off-by: Keith Packard <keithp%keithp.com@localhost>
+
+commit a30ed360fe56a556072e1fc551ffbe6797642227
+Author: Keith Packard <keithp%keithp.com@localhost>
+Date:   Tue Nov 17 15:16:00 2020 -0800
+
+    Make output with unknown width terminal the same as old code
+    
+    Auto-detecting the terminal width and eliding icons that are too wide
+    is a nice new feature, but we shouldn't change the behaviour when that
+    width is not detectable (e.g., when output to a file). Change the
+    default terminal width from 80 to 144 + 8 to get back to the previous
+    output format.
+    
+    Signed-off-by: Keith Packard <keithp%keithp.com@localhost>
+
+commit 2c753b5c1622afa662a4f4334dd947667f37a803
+Author: Pierre-Loup A. Griffais <git%plagman.net@localhost>
+Date:   Sat Jun 6 15:31:34 2020 -0700
+
+    Fix formatting of back-to-back not shown icons.
+    
+    Otherwise looks like this:
+    
+    Icon (48 x 48):
+    (not shown)     Icon (64 x 64):
+    (not shown)     Icon (128 x 128):
+    (not shown)
+
+commit d41b28bfa8f5bf5155082167fb004e3c709b52ae
+Author: Pierre-Loup A. Griffais <git%plagman.net@localhost>
+Date:   Sat Jun 6 15:19:10 2020 -0700
+
+    Support true color output for icons if the terminal advertises it.
+
+commit e25ae1d9b03a84c3ca825745156af2a7045f04e5
+Author: Pierre-Loup A. Griffais <git%plagman.net@localhost>
+Date:   Sat Jun 6 15:12:07 2020 -0700
+
+    Fix aspect ratio for icon display by using two characters per icon pixel.
+
+commit 33042c835583b77c31f38f33e5560e596a416662
+Author: Pierre-Loup A. Griffais <git%plagman.net@localhost>
+Date:   Sat Jun 6 15:03:08 2020 -0700
+
+    Break down memory allocation logic and fix overallocating for UTF8.
+    
+    We need up to 3 bytes per character in UTF8 mode, not 4.
+
+commit 540c5674722c1f569e9089db14ef07554ef48c16
+Author: Pierre-Loup A. Griffais <git%plagman.net@localhost>
+Date:   Sat Jun 6 14:45:25 2020 -0700
+
+    Don't display icons if they would line-wrap.
+    
+    Assuming we can query the terminal width.
+
+commit 632461227686bb31004fd9cf823bcf1645e7a563
+Author: Jason Nader <jason.nader%protonmail.com@localhost>
+Date:   Sat Apr 11 22:29:47 2020 +0900
+
+    Add missing `-help` function
+    
+    `-help` is mentioned in the manpages, but actually running `xprop -help`
+    results in xprop exiting with status 1 as it doesn't recognise the option.
+    This has been the source of major confusion here:
+    https://github.com/franciscolourenco/done/issues/77#issuecomment-612404448
+    
+    Signed-off-by: Jason Nader <jason.nader%protonmail.com@localhost>
+
 commit e81642bacc58388c223bc157f37c2311a7dbe070
 Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
 Date:   Sat Mar 9 20:31:09 2019 -0800
diff -r 8743ef3e5369 -r d8b2872dbaa1 external/mit/xprop/dist/Makefile.in
--- a/external/mit/xprop/dist/Makefile.in       Tue Apr 27 01:21:06 2021 +0000
+++ b/external/mit/xprop/dist/Makefile.in       Tue Apr 27 01:21:09 2021 +0000
@@ -1,7 +1,7 @@
-# Makefile.in generated by automake 1.15 from Makefile.am.
+# Makefile.in generated by automake 1.16.2 from Makefile.am.
 # @configure_input@
 
-# Copyright (C) 1994-2014 Free Software Foundation, Inc.
+# Copyright (C) 1994-2020 Free Software Foundation, Inc.
 
 # This Makefile.in is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -144,7 +144,9 @@
 am__v_at_1 = 
 DEFAULT_INCLUDES = -I.@am__isrc@
 depcomp = $(SHELL) $(top_srcdir)/depcomp
-am__depfiles_maybe = depfiles
+am__maybe_remake_depfiles = depfiles
+am__depfiles_remade = ./$(DEPDIR)/clientwin.Po ./$(DEPDIR)/dsimple.Po \
+       ./$(DEPDIR)/xprop.Po
 am__mv = mv -f
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
        $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
@@ -180,9 +182,9 @@
   $(RECURSIVE_CLEAN_TARGETS) \
   $(am__extra_recursive_targets)
 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
-       cscope distdir dist dist-all distcheck
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
-       $(LISP)config.h.in
+       cscope distdir distdir-am dist dist-all distcheck
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \
+       config.h.in
 # Read a list of newline-separated strings from the standard input,
 # and print each of them once, without duplicates.  Input order is
 # *not* preserved.
@@ -362,6 +364,7 @@
 prefix = @prefix@
 program_transform_name = @program_transform_name@
 psdir = @psdir@
+runstatedir = @runstatedir@
 sbindir = @sbindir@
 sharedstatedir = @sharedstatedir@
 srcdir = @srcdir@
@@ -411,8 +414,8 @@
            echo ' $(SHELL) ./config.status'; \
            $(SHELL) ./config.status;; \
          *) \
-           echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
-           cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
+           echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
+           cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
        esac;
 
 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
@@ -491,9 +494,15 @@
 distclean-compile:
        -rm -f *.tab.c
 
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/clientwin.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dsimple.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xprop.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/clientwin.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dsimple.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xprop.Po@am__quote@ # am--include-marker
+
+$(am__depfiles_remade):
+       @$(MKDIR_P) $(@D)
+       @echo '# dummy' >$@-t && $(am__mv) $@-t $@
+
+am--depfiles: $(am__depfiles_remade)
 
 .c.o:
 @am__fastdepCC_TRUE@   $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@@ -615,7 +624,10 @@
        -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
        -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
 
-distdir: $(DISTFILES)
+distdir: $(BUILT_SOURCES)
+       $(MAKE) $(AM_MAKEFLAGS) distdir-am
+
+distdir-am: $(DISTFILES)
        $(am__remove_distdir)
        test -d "$(distdir)" || mkdir "$(distdir)"
        @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
@@ -683,7 +695,7 @@
          ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
        || chmod -R a+r "$(distdir)"
 dist-gzip: distdir
-       tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+       tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
        $(am__post_remove_distdir)
 dist-bzip2: distdir
        tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
@@ -697,6 +709,10 @@
        tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
        $(am__post_remove_distdir)
 
+dist-zstd: distdir
+       tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst
+       $(am__post_remove_distdir)
+
 dist-tarZ: distdir
        @echo WARNING: "Support for distribution archives compressed with" \
                       "legacy program 'compress' is deprecated." >&2
@@ -708,7 +724,7 @@
        @echo WARNING: "Support for shar distribution archives is" \
                       "deprecated." >&2
        @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
-       shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
+       shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
        $(am__post_remove_distdir)
 
 dist-zip: distdir
@@ -726,7 +742,7 @@
 distcheck: dist
        case '$(DIST_ARCHIVES)' in \
        *.tar.gz*) \
-         GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
+         eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
        *.tar.bz2*) \
          bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
        *.tar.lz*) \
@@ -736,9 +752,11 @@
        *.tar.Z*) \
          uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
        *.shar.gz*) \
-         GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
+         eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
        *.zip*) \
          unzip $(distdir).zip ;;\
+       *.tar.zst*) \
+         zstd -dc $(distdir).tar.zst | $(am__untar) ;;\
        esac
        chmod -R a-w $(distdir)
        chmod u+w $(distdir)
@@ -850,7 +868,9 @@
 
 distclean: distclean-recursive
        -rm -f $(am__CONFIG_DISTCLEAN_FILES)
-       -rm -rf ./$(DEPDIR)
+               -rm -f ./$(DEPDIR)/clientwin.Po
+       -rm -f ./$(DEPDIR)/dsimple.Po
+       -rm -f ./$(DEPDIR)/xprop.Po
        -rm -f Makefile
 distclean-am: clean-am distclean-compile distclean-generic \
        distclean-hdr distclean-tags
@@ -898,7 +918,9 @@
 maintainer-clean: maintainer-clean-recursive
        -rm -f $(am__CONFIG_DISTCLEAN_FILES)
        -rm -rf $(top_srcdir)/autom4te.cache
-       -rm -rf ./$(DEPDIR)
+               -rm -f ./$(DEPDIR)/clientwin.Po
+       -rm -f ./$(DEPDIR)/dsimple.Po
+       -rm -f ./$(DEPDIR)/xprop.Po
        -rm -f Makefile
 maintainer-clean-am: distclean-am maintainer-clean-generic
 
@@ -919,22 +941,22 @@
 .MAKE: $(am__recursive_targets) all install-am install-strip
 
 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
-       am--refresh check check-am clean clean-binPROGRAMS \
-       clean-cscope clean-generic cscope cscopelist-am ctags ctags-am \
-       dist dist-all dist-bzip2 dist-gzip dist-hook dist-lzip \
-       dist-shar dist-tarZ dist-xz dist-zip distcheck distclean \
-       distclean-compile distclean-generic distclean-hdr \
-       distclean-tags distcleancheck distdir distuninstallcheck dvi \
-       dvi-am html html-am info info-am install install-am \
-       install-binPROGRAMS install-data install-data-am install-dvi \
-       install-dvi-am install-exec install-exec-am install-html \
-       install-html-am install-info install-info-am install-man \
-       install-pdf install-pdf-am install-ps install-ps-am \
-       install-strip installcheck installcheck-am installdirs \
-       installdirs-am maintainer-clean maintainer-clean-generic \
-       mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \
-       ps ps-am tags tags-am uninstall uninstall-am \
-       uninstall-binPROGRAMS



Home | Main Index | Thread Index | Old Index