Giter VIP home page Giter VIP logo

mate-common's Introduction

This directory contains sample files that should be in pretty much every
MATE application.

-----------------------------------------------------------------------------

To make this work both for MATE Applications inside and outside the
MATE repository tree I did the following:

* There is an `INSIDE_MATE_COMMON' automake conditional which is defined
  in two places:

  - macros/aclocal-includes.m4 defines this to always be false.

  - mate-common/configure.in does not include anything from macros and
    defines this to be true.

* We use this automake conditional in the macros/Makefile.am to install
  $(MACROS), autogen.sh, mate-common.m4 and a newly created mate-macros.dep
  in `$(datadir)/aclocal/mate'.

  Since aclocal doesn't look in subdirectories we can safely install them
  there even when compiling from the repository.

  Also, there is no need to make any change to any existing application
  in the MATE repository tree - really fine...

* When we're outside the MATE repository tree, we simply need to tell aclocal
  that it should also look in `$(datadir)/aclocal/mate' and it will find all
  the macros.

  There is a `mate-skel' module in the repository that can be used as a
  starting point when writing a new MATE application that should be used
  outside the repository.

February 4, 1999,
Martin Baulig <[email protected]>

mate-common's People

Contributors

clefebvre avatar flexiondotorg avatar glensc avatar infirit avatar monsta avatar oz123 avatar perberos avatar raveit65 avatar rbuj avatar sc0w avatar stefano-k avatar szesch avatar yetist avatar zhuyaliang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mate-common's Issues

Debian Unstable: "shift" error in mate-autogen stops configuration

Any attempt to configure a mate package other than mate-common (which can't use mate-autogen as it may not be installed yet) got this error after my latest round of Debian Unstable updates:

./autogen.sh: 80: shift: can't shift that many

Configuration stops at that point, changing the shell used by the script to bash (pretty sure dash is default) had no effect.

I was able to get past this for now by commenting lines 79-84, the entire loop containing "shift" used in version checking. I won't get a any notice of a missing/too old package this way (just build errors) but at least I can still build the MATE packages until either Debian finds a problem with one of their packages or a fix for this is found here, possibly by comparing to GNOME's version.

Somewhere between July 16 and July 28 Debian Unstable got an update that changed what is presumably shell behavior and breaks something in the usage of the shift command in /usr/bin/mate-autogen . The superficially similar gnome-autogen.sh did not seem to be affected, I was able to configure Nautilus without issue.

Sorry about the big gap between Debian updates, I don't have landline service at home and can only update packages from machines set up elsewhere or over public access wifi. I do not control the house and cannot set up any kind of utilities.

mate-desktop's autogen.sh fails with latest mate-common

When I try to run autogen.sh in a mate-desktop working-copy with the latest version of mate-common installed, it fails with these errors:

./configure: line 13405: MATE_COMMON_INIT: command not found
./configure: line 13406: MATE_DEBUG_CHECK: command not found
./configure: line 13407: syntax error near unexpected token `maximum'
./configure: line 13407: `MATE_COMPILE_WARNINGS(maximum)'

If I go to my mate-common working-copy, revert to an older commit and then redo autogen.sh && make && sudo make install, the problem goes away and I can run autogen.sh in my mate-desktop working copy without any problems
jay@invincible:/usr/local/src/mate/mate-common$ git checkout 185a8813fec72f8c541192f59e93caca50e4ce68

(I'm not sure if that's actually the last good revision, I just chose it because it's the most recent one before friday)

mate-common: bash-term-in-posix-shell [usr/bin/mate-autogen:42] '`echo 'x\c''

Expected behaviour

No warning about bashism in mate-autogen.

Actual behaviour

Debian's lintian tool complains about a bashism in mate-autogen

N:
I: mate-common: bash-term-in-posix-shell [usr/bin/mate-autogen:42] '`echo 'x\c''
N: 
N:   This script is marked as running under /bin/sh, but it seems to use a feature found in
N:   bash but not in the SUSv3 or POSIX shell specification.
N:   
N:   Some examples are:
N:   
N:   - == in a test, it should use = instead - read without a variable in the argument -
N:   function to define a function - source instead of . - . command args, passing arguments
N:   to commands via source is not supported - {foo,bar} instead of foo bar - [[ test ]]
N:   instead of [ test ] (requires a Korn shell) - type instead of which or command -v
N: 
N:   Visibility: info
N:   Show-Always: no
N:   Check: shell/non-posix/bash-centric
N: 
N:

Steps to reproduce the behaviour

Build mate-common 1.26.0-1 from Debian (coming soon) and run Debian unstable's lintian 2.111.0 over the resulting package.

MATE general version

1.26

Package version

1.26.0-1

Linux Distribution

Debian

Link to bugreport of your Distribution (requirement)

none

rename configure.in to configure.ac

autoconf 1.12 warns about it, and it has always been configure.ac that should be used.

aclocal-1.12: warning: autoconf input should be named 'configure.ac', not 'configure.in'

attached links to 11 projects needed the patch
use git am /path/to/patch.patch to apply

checked that the patches are correct with oneliner:

$ for a in *.patch; do cd $(basename $a .patch) && git reset --hard origin/master && git clean -f && patch < ../$a && ./autogen.sh && cd ..; done

and their configure passed

  1. http://carme.pld-linux.org/~glen/mate-common-6/libmatekbd.patch
  2. http://carme.pld-linux.org/~glen/mate-common-6/libmatekeyring.patch
  3. http://carme.pld-linux.org/~glen/mate-common-6/libmateweather.patch
  4. http://carme.pld-linux.org/~glen/mate-common-6/mate-backgrounds.patch
  5. http://carme.pld-linux.org/~glen/mate-common-6/mate-common.patch
  6. http://carme.pld-linux.org/~glen/mate-common-6/mate-dialogs.patch
  7. http://carme.pld-linux.org/~glen/mate-common-6/mate-doc-utils.patch
  8. http://carme.pld-linux.org/~glen/mate-common-6/mate-file-manager.patch
  9. http://carme.pld-linux.org/~glen/mate-common-6/mate-keyring.patch
  10. http://carme.pld-linux.org/~glen/mate-common-6/mate-themes.patch
  11. http://carme.pld-linux.org/~glen/mate-common-6/mate-window-manager.patch

mate-note applet hides notes arbitrarily

I didn't know where to report this so I report it here. The mate-note applet hides notes arbitrarily. It never used to do it before mate-note-1.4.0-0101.fc17.i686

[All packages] Handling of building documentation

In earlier versions of mate, a fork of gnome-doc-utils was used. This provided an autoconf macro would call mate-doc-common and then generated a configure option to toggle building the docs. Since mate-doc-utils was dropped, we've replaced that with an env variable in autogen.sh (which triggers a call in mate-autogen) and docs are only built in make distcheck. This is much less portable and makes building documentation infeasible for regular users. As such, I'd like to recommend that we recreate an autoconf macro to initialize documentation with mate-doc-common (see GTK_DOC_CHECK) and add configure options to toggle the building of the documentation (see --enable/disable-gtk-doc).

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/33026016-all-packages-handling-of-building-documentation?utm_campaign=plugin&utm_content=tracker%2F1554281&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1554281&utm_medium=issues&utm_source=github).

mate-common: Uses deprecated gnome-common macros/variables

Forwarding Debian bug 829920 (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=829920):

gnome-common did a cleanup upstream and deprecated quite a few macros
and variables.

gnome-doc-utils removal

The gnome-doc-utils build infrastructure was removed completely along
with the following macros:

 GNOME_DOC_INIT [1]
 GNOME_COMMON_INIT [2]

deprecated variables

The following variables used in gnome-autogen.sh have been declared
deprecated [3]:

 REQUIRED_GNOME_DOC_UTILS_VERSION
 REQUIRED_DOC_COMMON_VERSION
 USE_COMMON_DOC_BUILD
 FORBIDDEN_M4MACROS
 GNOME2_DIR
 GNOME2_PATH
 USE_GNOME2_MACROS

deprecated macros

The following macros have also been declared deprecated:

 GNOME_COMPILE_WARNINGS [4]
 GNOME_CXX_WARNINGS [5]

Upstream has documentation at [6] with how you can fix your package and
why those particular changes were made.

According to codesearch.d.n your package mate-common uses one of the macros or
variables so might be affected, especially once you run autoreconf. Please
update your package accordingly and forward it to upstream if possible.

If you have further question, please don't hesitate to ask.

Regards,
Michael

[1] https://git.gnome.org/browse/gnome-common/commit/?id=6684e2fa5
[2] https://git.gnome.org/browse/gnome-common/commit/?id=1f60e9536
[3] https://git.gnome.org/browse/gnome-common/commit/?id=4c8d8ad93
[4] https://git.gnome.org/browse/gnome-common/commit/?id=b57bae0be
[5] https://git.gnome.org/browse/gnome-common/commit/?id=2bffd7e1u
[6] https://wiki.gnome.org/Projects/GnomeCommon/Migration

The timeout after entering sudo password isn't being honored.

As stated, after entering the sudo password, I used to be able to get ~30s-1min of time to do other such things. But with mate(not gnome 2 standard) it's sudo for every single instance that I'm about to use anything that requires sudo. I'm part of the sudo group and this wasn't part of ubuntu 11.04(back when I tried that) with gnome 2 thus the linux mint team's/mate package is the one that's messed up

Pressing power button and then selecting "restart" causes the system to hang then crash.

It does this under the following OSes, Debian 7, Linux Mint 15, LMDE, they all do this. With MATE, when using XDM, or LightDM they do it. Pressing power button then restarting does not restart. it just crashes I have no idea why this is happening but it is continually happening and doesn't seem to have gotten fixed at all and just is getting worse as time goes on.

Also when pressing "shut down" then pressing "cancel" doesn't cancel it. It just shuts down anyway. It also when doing this shut down, it first off seems to go back to the default MATE theme, and then it kills itself. I don't know why that is happening but it keeps on happening.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.