aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/rpm.py
AgeCommit message (Collapse)AuthorFilesLines
2019-12-05rpm: update for host machine compiler API changeMichael Hirsch, Ph.D1-1/+1
2019-05-20Use dependency cacheDylan Baker1-1/+1
2019-04-25Don't use len() to test for container emptinessDylan Baker1-3/+3
I ran the numbers once before (it's in the meson history) but it's *much* faster to *not* use len for testing if a container is empty or not.
2019-01-10rpm: Bring RPM module back in to a working stateAlistair Thomas1-47/+57
2018-04-16Merge pull request #3218 from mesonbuild/findoverriderJussi Pakkanen1-2/+2
Make it possible to override find_program [skip ci]
2018-04-15Updated all modules to work with the new API.Jussi Pakkanen1-2/+2
2018-03-19Added Elbrus lcc compilers support as inheritance from gcc onesmakise-homura1-0/+7
2017-09-21flake8: Clean up complained-about unused importsLuke Shumaker1-1/+1
This also adds a "# noqa: F401" comment on an unused "import lzma", which we are using it in a try/except block that is being used to check if the lzma module is importable; of course it is unused. v2: This turned out to be a little tricky. mesonbuild/modules/__init__.py had the "unused" import: from ..interpreterbase import permittedKwargs, noKwargs However, that meant that the various modules could do things like: from . import noKwargs # "." is "mesonbuild.modules" Which breaks when you remove __init__.py's "unused" import. I could have tagged that import with "# noqa: F401", but instead I chose to have each of the module import directly from "..interpreterbase" instead of ".".
2017-06-26Fixed the remaining modules.Jussi Pakkanen1-0/+2
2017-02-20rpm: Fix missing parenthesis and quotation markNirbheek Chauhan1-1/+1
Pointed out by Mike Sinkovsky
2017-02-19rpm: We no longer provide the full path to a libraryNirbheek Chauhan1-3/+4
Ever since we changed how we do library searching, the full path to the library has not been available under `.fullpath`. This has been broken for at least a year...
2017-02-19find_program: Fix implementation of .path()Nirbheek Chauhan1-1/+1
And actually test that prog.path() works. The earlier test was just running the command without checking if it succeeded. Also make everything use prog.get_command() or get_path() instead of accessing the internal member prog.fullpath directly.
2017-01-09There are two different kinds of extensions: modules that create newJussi Pakkanen1-1/+2
objects directly and snippets that just call into interpreter methods.
2017-01-09Fix Gnome module.Jussi Pakkanen1-0/+2
2016-12-22Fix shared library symlink aliasing on installNirbheek Chauhan1-1/+1
Set the rules for the symlinking on the target itself, and then reuse that information while generating aliases during the build, and then pass it to the install script too.
2016-12-19fix some of pylint's undefined-variableIgor Gnatenko1-1/+1
************* Module mesonbuild.modules.rpm E:106,29: Unsupported format character '{' (0x7b) at index 16 (bad-format-character) ************* Module mesonbuild.modules E: 12,14: Undefined variable 'MesonException' (undefined-variable) ************* Module mesonbuild.modules.gnome E:699,69: Undefined variable 'sargs' (undefined-variable) ************* Module mesonbuild.wrap.wrap E:103,25: Undefined variable 'checkoutdir' (undefined-variable) ************* Module mesonbuild.backend.backends E: 83,16: Undefined variable 'mlog' (undefined-variable) ************* Module mesonbuild.backend.ninjabackend E:254,105: Undefined variable 't' (undefined-variable) Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-15Allow all code to access module target classesNirbheek Chauhan1-3/+3
It is often useful to be able to check if a specific object is of a type defined in a module. To that end, define all such targets in modules/__init__.py so that everyone can refer to them without poking into module-specific code.
2016-12-13Use dict for self.build.compilers instead of listNirbheek Chauhan1-1/+1
Everywhere we use this object, we end up iterating over it and comparing compiler.get_language() with something. Using a dict is the obvious choice and simplifies a lot of code.
2016-11-08rpm: Fix trivial typo in BuildRequiresNirbheek Chauhan1-1/+1
coredata.deps is keyed with a tuple; we want the first element of that (the pkg-config dependency name) here. See: https://fedoraproject.org/wiki/Packaging:PkgConfigBuildRequires Closes https://github.com/mesonbuild/meson/issues/955
2016-11-08Implement mlog.warning and use it everywhere for warningsNirbheek Chauhan1-7/+6
Prepends the string with 'WARNING:' in ANSI yellow. Closes https://github.com/mesonbuild/meson/issues/961
2016-10-08rpm: couple of improvements and fixesIgor Gnatenko1-15/+7
* Don't hardcode /usr/bin, use %{_bindir} * Implement %meson_build / %meson_install / %meson_test * Automatic handling of out-of-tree builds Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-08-27Use context manager for file I/O.Elliott Sales de Andrade1-71/+76
There are a few cases where a context manager cannot be used, such as the logger.
2016-04-05Removed no longer used attribute from rpm generator. Closes #502.Jussi Pakkanen1-2/+0
2016-04-04Import fix. Closes #498.Jussi Pakkanen1-2/+2
2016-01-17Fix rpm imports.Jussi Pakkanen1-2/+3
2016-01-16Renamed meson package to mesonbuild so that we can have a script named meson ↵Jussi Pakkanen1-0/+163
in the same toplevel dir.