Bug#870314: Does not properly clean up /usr/share/meson/mesonbuild/ on purge
Hi, Attached is a patch that seems to fix the problem in this bug. The patch does mainly two things: * Enable support for compiling and cleaning up the .pyc files. * Remove pkg_resources dependency from /usr/bin/meson launcher. (This is also related to bug #909440.) Both changes improve the meson startup time significantly in my system, which was my main motivation for these changes. Uncommenting ${python3:Depends} in the control file enables .pyc handling, handles the /usr/bin/python3.*/ directory renaming, and fixes the following build error. E: dh_python3 dh_python3:176: no package to act on (python3-foo or one with ${python3:Depends} in Depends) The ${shlibs:Depends} dependency seems unnecessary and was removed. There is a new install file that takes care of debcrossgen and zsh/_meson installation, and overwrites the /usr/share/meson launcher with __main__.py that does not depend on pkg_resources. With these changes the override_dh_install is not needed anymore and can be removed from the rules. Note that the patch also removes the override_dh_clean rule, which may be incorrect. I only tested with a "nocheck" build, so I do not know if the full build with tests will run correctly. Thank you and best regards, Lasse diff -Nru _org/debian/control _new/debian/control --- _org/debian/control 2019-10-30 06:48:25.0 +0900 +++ _new/debian/control 2019-11-20 21:18:34.0 +0900 @@ -8,6 +8,7 @@ Rules-Requires-Root: no Build-Depends: debhelper (>= 12), python3:any (>= 3.5), + dh-exec, dh-python, python3-setuptools, ninja-build (>= 1.6), @@ -88,11 +89,10 @@ Package: meson Architecture: all Multi-Arch: foreign -Depends: ${shlibs:Depends}, ${misc:Depends}, -# ${python3:Depends}, +Depends: + ${misc:Depends}, + ${python3:Depends}, ninja-build(>=1.6), - python3, - python3-pkg-resources, Description: high-productivity build system Meson is a build system designed to increase programmer productivity. It does this by providing a fast, simple and easy to diff -Nru _org/debian/install _new/debian/install --- _org/debian/install 1970-01-01 09:00:00.0 +0900 +++ _new/debian/install 2019-11-20 21:18:34.0 +0900 @@ -0,0 +1,4 @@ +#!/usr/bin/dh-exec +__main__.py => /usr/bin/meson +debian/debcrossgen /usr/share/meson/ +data/shell-completions/zsh/_meson /usr/share/zsh/vendor-completions diff -Nru _org/debian/rules _new/debian/rules --- _org/debian/rules 2019-10-30 05:34:27.0 +0900 +++ _new/debian/rules 2019-11-20 21:18:34.0 +0900 @@ -18,26 +18,3 @@ override_dh_auto_test: ./run_tests.py endif - -override_dh_clean: - dh_clean - rm -f meson-test-run.txt meson-test-run.xml - rm -rf __pycache__ - rm -rf mesonbuild/__pycache__ - rm -rf mesonbuild/*/__pycache__ - -override_dh_install: -# Helper script to autogenerate cross files. - dh_install - mkdir -p $$(pwd)/debian/meson/usr/share/meson - cp debian/debcrossgen $$(pwd)/debian/meson/usr/share/meson - mkdir -p $$(pwd)/debian/meson/usr/share/zsh/vendor-completions - cp data/shell-completions/zsh/_meson $$(pwd)/debian/meson/usr/share/zsh/vendor-completions - rm -rf $$(pwd)/debian/meson/usr/lib/python*/dist-packages/mesonbuild/__pycache__ - rm -rf $$(pwd)/debian/meson/usr/lib/python*/dist-packages/mesonbuild/*/__pycache__ - rm -rf $$(pwd)/debian/meson/usr/lib/python*/dist-packages/mesonbuild/*/*/__pycache__ -# For some reason Debian helpers install the files in the wrong -# directory, i.e. /usr/lib/python3.6 instead of /usr/lib/python3. I -# don't know why or how to fix it, since we just call the default -# tools with default parameters. Fix manually. - mv $$(pwd)/debian/meson/usr/lib/python3.* $$(pwd)/debian/meson/usr/lib/python3
Bug#294853: dialog: Bad performance with large menus.
Package: dialog Version: 1.0-20050206-1 Severity: minor To reproduce the problem set LC_ALL to some locale (not C or POSIX) and execute: dialog --menu text 0 0 0 $(seq 1 1000) Scroll down by pressing the down arrow key. The scrolling is extremely slow and consumes a lot of CPU. Increase the "1000" in the command to see the effect better. It seems that the cache_list in the inputstr.c module scales very badly. Below is a part of the gprof output: Each sample counts as 0.01 seconds. % cumulative self self total time seconds secondscalls s/call s/call name 51.35126.42 126.4245341 0.00 0.00 load_cache 48.37245.49 119.0745341 0.00 0.00 save_cache -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.9 Locale: LANG=C, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8) Versions of packages dialog depends on: ii debianutils 2.11.2 Miscellaneous utilities specific t ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an ii libncursesw55.4-4Shared libraries for terminal hand -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#315466: xcscope.el: Disabling of fuzzy matching does not work
Package: cscope Version: 15.5-1.1 Severity: minor Tags: patch When searching for functions called by the current function and selecting a result in the *cscope* buffer, the cursor often jumps to a wrong line in the source code buffer. This happens because the cscope-adjust variable is set to true and emacs tries to search the name of the _calling_ function near the line reported by cscope. The cscope-find-* functions try to disable or enable the fuzzy matching feature by setting the cscope-adjust variable to nil or true. However, the cscope-adjust is set inside (let), which does not work outside the find function. The attached patch fixes the problem by setting the cscope-adjust globally with (setq). There is also a related patch in the upstream: http://sourceforge.net/tracker/index.php?func=detail&aid=482960&group_id=4664&atid=304664 -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.9 Locale: LANG=C, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8) Versions of packages cscope depends on: ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an ii libncurses5 5.4-7Shared libraries for terminal hand cscope recommends no packages. -- no debconf information --- /usr/share/emacs/site-lisp/xcscope.el 2002-06-20 18:48:59.0 +0300 +++ xcscope.el 2005-06-22 21:52:24.386650679 +0300 @@ -2307,8 +2307,9 @@ (interactive (list (cscope-prompt-for-symbol "Find this symbol: " nil) )) - (let ( (cscope-adjust t) );; Use fuzzy matching. -(setq cscope-symbol symbol) + (let () +(setq cscope-symbol symbol + cscope-adjust t) ;; Use fuzzy matching. (cscope-call (format "Finding symbol: %s" symbol) (list "-0" symbol) nil 'cscope-process-filter 'cscope-process-sentinel) @@ -2320,8 +2321,9 @@ (interactive (list (cscope-prompt-for-symbol "Find this global definition: " nil) )) - (let ( (cscope-adjust t) );; Use fuzzy matching. -(setq cscope-symbol symbol) + (let () +(setq cscope-symbol symbol + cscope-adjust t) ;; Use fuzzy matching. (cscope-call (format "Finding global definition: %s" symbol) (list "-1" symbol) nil 'cscope-process-filter 'cscope-process-sentinel) @@ -2331,9 +2333,9 @@ (defun cscope-find-global-definition-no-prompting () "Find a symbol's global definition without prompting." (interactive) - (let ( (symbol (cscope-extract-symbol-at-cursor nil)) -(cscope-adjust t) ) ;; Use fuzzy matching. -(setq cscope-symbol symbol) + (let ( (symbol (cscope-extract-symbol-at-cursor nil)) ) +(setq cscope-symbol symbol + cscope-adjust t) ;; Use fuzzy matching. (cscope-call (format "Finding global definition: %s" symbol) (list "-1" symbol) nil 'cscope-process-filter 'cscope-process-sentinel) @@ -2346,8 +2348,9 @@ (cscope-prompt-for-symbol "Find functions called by this function: " nil) )) - (let ( (cscope-adjust nil) ) ;; Disable fuzzy matching. -(setq cscope-symbol symbol) + (let () +(setq cscope-symbol symbol + cscope-adjust nil) ;; Disable fuzzy matching. (cscope-call (format "Finding functions called by: %s" symbol) (list "-2" symbol) nil 'cscope-process-filter 'cscope-process-sentinel) @@ -2360,8 +2363,9 @@ (cscope-prompt-for-symbol "Find functions calling this function: " nil) )) - (let ( (cscope-adjust t) );; Use fuzzy matching. -(setq cscope-symbol symbol) + (let () +(setq cscope-symbol symbol + cscope-adjust t) ;; Use fuzzy matching. (cscope-call (format "Finding functions calling: %s" symbol) (list "-3" symbol) nil 'cscope-process-filter 'cscope-process-sentinel) @@ -2373,8 +2377,9 @@ (interactive (list (cscope-prompt-for-symbol "Find this text string: " nil) )) - (let ( (cscope-adjust t) );; Use fuzzy matching. -(setq cscope-symbol symbol) + (let () +(setq cscope-symbol symbol + cscope-adjust t) ;; Use fuzzy matching. (cscope-call (format "Finding text string: %s" symbol) (list "-4" symbol) nil 'cscope-process-filter 'cscope-process-sentinel) @@ -2387,8 +2392,9 @@ (let (cscope-no-mouse-prompts) (cscope-prompt-for-symbol "Find this egrep pattern: " nil)) )) - (let ( (cscope-adjust t) );; Use fuzzy matching. -(setq cscope-symbol symbol) + (let () +(setq cscope-symbol symbol + cscope-adjust t) ;; Use fuzzy matching. (cscope-call (format "Finding egrep pattern: %s" symbol)
Bug#388630: xserver-xorg-video-mga: xserver always starts in a wrong resolution - G400 experiences
Hello, I also encountered some problems with the 1:1.4.1.dfsg.1-4 version of the mga driver and xorg 7.1. I reverted back to the mga driver 1:1.2.1.3.dfsg.1-2 and xorg 7.0 from testing which work correctly. (These notes are from my memory so they might not be accurate or helpful. Unfortunately, I am not currently able to debug the problem further.) I noticed the following problems with the new version: * The frequency reported by the OSD of my monitor was different from the one shown by xrandr. For example: - xrandr: 85Hz monitor: ~95Hz - xrandr: 75Hz monitor: ~105Hz ??? * Playing videos with mplayer with '-vo xv' showed 'noise' patterns in the right side of the picture. With '-vo xvidix' the 'noise' was even more visible. '-vo x11' showed a correct picture. Also xine showed the same kind of noise as "mplayer -vo xv". * OpenGL did not seem to work. Applications hang when they were started. For example glxinfo printed one line of text and hang. The applications could be killed with CTRL-C. Disabling OpenGL by removing the 'glx' module from xorg.conf did not solve any problems except the hanging of applications. card: Matrox Graphics, Inc. MGA G400 AGP kernel: 2.6.17-2-k7 #1 SMP Wed Sep 13 17:18:46 UTC 2006 i686 GNU/Linux -- Lasse Kantola -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#378367: It seems to be a bug in gtk filechooser
Hi, I also experience a long timeout at the startup because of my sftp:// bookmark to a host that is often off-line. I found a couple of GNOME bugzilla bugs that seem to be related to this problem: http://bugzilla.gnome.org/show_bug.cgi?id=319532 http://bugzilla.gnome.org/show_bug.cgi?id=332641 -- Lasse Kantola -- [EMAIL PROTECTED] -- http://www.iki.fi/Lasse.Kantola/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]