485 Commits
Author SHA1 Message Date
Matthew Johnson e621984478 Release v1.0.2
Allow users to specify requires that are not dropped during existence
detection and os-packages list checking.

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
v1.0.2
2017-10-10 14:41:21 -07:00
William Douglas fa1e7951fe Allow manual override of requires
Allow developers to specify Requres that will not be dropped during
existence detection normally done for auto-detecting runtime
requirements.
2017-10-10 14:40:50 -07:00
Matthew Johnson ba58a1fd70 Release v1.0.1
Officially release all changes since 1.0.0 to begin regular release
cadence.

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
v1.0.1
2017-10-06 14:44:29 -07:00
Matthew Johnson 46445fb3ed Deprecate use of Python 3.6 style format strings
Several platforms are using Python 3.5 or lower. Replace the new f"..."
style strings with the traditional "...".format() style strings.

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2017-10-06 14:10:22 -07:00
William Douglas e2b9e04981 Add slang config test
Add slang-dev when packages are probing for slang.h.
2017-10-03 15:27:37 -07:00
Matthew Johnson 7f39ff646b Code style fix: remove extra line
Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2017-10-02 11:14:58 -07:00
Ben Allen aebec79340 Set config.os_packages to an empty set instead of None 2017-10-02 09:05:00 -07:00
Arjan van de Ven ce439d8c93 autorequire python 2017-10-01 16:41:13 +00:00
Arjan van de Ven bd1b079a94 add python workaround 2017-10-01 16:36:17 +00:00
Arjan van de Ven 469563f638 Merge branch 'master' of git://kojiclear.jf.intel.com/projects/autospec 2017-10-01 14:06:57 +00:00
Arjan van de Ven 1b9ce5236f two more failed_commands 2017-10-01 14:06:50 +00:00
Arjan van de Ven b0fca15f47 -fno-common breaks for now 2017-10-01 14:06:32 +00:00
Arjan van de Ven 0f541cf3f9 print only interesting test results to be more concise 2017-10-01 14:06:18 +00:00
Matthew Johnson 5704872032 Add "Dual" to license_blacklist
For "Dual GPL/BSD/CPL" in DAPL package.

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2017-09-29 10:27:59 -07:00
Matthew Johnson 7477d54978 Only add archive basename to upstream
Fixes #14

Instead of adding the entire URL to the upstream file, only add the
archive basename after the sha1.

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2017-09-28 12:32:45 -07:00
Matthew Johnson a09ea7005e Skip two more trouble tests in Travis
Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2017-09-26 15:38:23 -07:00
Matthew Johnson adaea4202a Skip problem tests on Travis CI only
These tests regularly fail in Travis for unknown reasons. Skip them
until the tests can be rewritten.

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2017-09-26 15:30:45 -07:00
Matthew Johnson 0e8dd48ab0 Update travis.yml to call unittests target
Instead of calling each test target individually, call the unittest
target to run all available tests in the test directory.

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2017-09-26 15:30:34 -07:00
Matthew Johnson 2552c9786f Move test generators out of name guard
This allows python3 unittest to properly generate the tests when running
all the tests in the tests directory.

Also adds a fix to test_test.py to reset buildpattern.default_pattern
every test. This was a bug introduced by running all tests at once -
this was not being cleared correctly.

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2017-09-26 15:30:34 -07:00
William Douglas 6a6ee3ddbd Add travis status to the readme 2017-09-26 14:24:37 -07:00
William Douglas fc17f898ac Remove asciidoc from failed_commands
Asciidoc being in the configure log should not cause it to be added to
the build requires automatically. This is also intended to enable
asciidoc to be removed from use entirely.
2017-09-22 15:21:02 -07:00
William Douglas d5db022992 Don't ignore all hidden files 2017-09-22 15:20:17 -07:00
William Douglas de97576f4e Cleanups for make check to pass 2017-09-22 15:20:17 -07:00
William Douglas 57280362e0 Add travis config 2017-09-22 15:20:17 -07:00
William Douglas 9b39e2b5cb Add runtime requirements in pip installable format 2017-09-22 15:20:17 -07:00
William Douglas 3f9738c958 Remove config from lib dependencies
The lib submodule requiring the config submodule was an artifact of
how autospec used to work before the stateless implementation in Clear
Linux. config is now mostly used for systemd configuration and unit
files which do not need to be pulled in for library use cases. So to
avoid having lib pull in systemd units that need the bin submodule,
stop having lib require config.
2017-09-22 15:17:50 -07:00
Simental Magana, Marcos 8fa0e30b29 add pidgin gpg key Gary Kramlich (grim) 2017-09-22 10:17:32 -05:00
Simental Magana, Marcos 861b8ed8c3 add one more filaed patter for meson builds 2017-09-18 09:57:20 -05:00
Arjan van de Ven b9cacaee54 fix R test pattern 2017-09-17 19:06:43 +00:00
Arjan van de Ven 2b63e66bcd add bin/haswell support 2017-09-16 18:33:21 +00:00
Arjan van de Ven 5f959a8979 install avx2 before normal 2017-09-16 18:20:22 +00:00
Simental Magana, Marcos e4e394ba48 use a more greedy pattern for docbook-xml 2017-09-13 17:36:31 -05:00
Simental Magana, Marcos 688909108c add some failed build patterns 2017-09-13 17:10:13 -05:00
Simental Magana, Marcos ecb89eef12 import meson_options.txt into package tree 2017-09-13 11:03:27 -05:00
Matthew Johnson 91ab690815 Gracefully handle pycurl errors and exit
Instead of throwing an exception when pycurl errors are encountered
(such as timeouts), gracefully handle the error and exit. This helps
calling processes understand the error it is seeing and either retry or
continue without interruption.

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2017-09-13 08:57:42 -07:00
Simental Magana, Marcos 801a7b26af Add configure options to meson build pattern
Signed-off-by: Simental Magana, Marcos <marcos.simental.magana@intel.com>
2017-09-13 10:52:33 -05:00
Simental Magana, Marcos 9bd94ec016 add failed command for g-ir-scanner
when g-ir-scanner is required, gobject-introspection
will be added as build requirement.

gobject-introspection-dev is not pulled because we
require the binary and not source files in gobject-introspection.
Aditionally, gobject-introspection requires glibc-bin to use 'ldd'
(which is required by g-ir-scanner at some point).

Signed-off-by: Simental Magana, Marcos <marcos.simental.magana@intel.com>
2017-09-12 17:25:01 -05:00
Simental Magana, Marcos 17e93c9460 Add failed patterns used by meson build pattern
Signed-off-by: Simental Magana, Marcos <marcos.simental.magana@intel.com>
2017-09-12 17:25:01 -05:00
Simental Magana, Marcos 5242514807 Add meson build pattern
initial support for meson builds, this pattern will be
used if 'meson.build' file is found in project to be
packaged.

Signed-off-by: Simental Magana, Marcos <marcos.simental.magana@intel.com>
2017-09-12 17:24:54 -05:00
Gabi Beyer 3eaf96b86f Bug fixes for repoquery queryformat
Remove leading space character before queryformat command.
Remove newline, since repoquery seems to automatically
include them, and remove double quotes since they are
printed in the output.

Signed-off-by: Gabi Beyer <gabrielle.n.beyer@intel.com>
2017-09-12 13:48:29 -07:00
Gabi Beyer b87b75f46d Add check to whatrequires
Due to pkg_scan being informational as opposed to functional,
do not run pkg_scan file if it would cause breakage.

If /var/lib/rpm does not exist, skip whatrequires execution.
Also, added try statements around both commands in pkg_scan
file. If they reach the except, return from the function and
continue with autospec as normal.

Signed-off-by: Gabi Beyer <gabrielle.n.beyer@intel.com>
2017-09-12 12:42:27 -07:00
Arjan van de Ven d06547e461 put more stuff in fast cflags 2017-09-12 14:59:43 +00:00
Arjan van de Ven 1e55d0dbaf put -fno-common in fast cflags 2017-09-12 14:58:47 +00:00
Arjan van de Ven a215676a54 python rename for legacy packages 2017-09-10 00:36:27 +00:00
Arjan van de Ven b5fc71d857 remove invalid warning print 2017-09-10 00:36:12 +00:00
Matthew Johnson 28b70302eb Wrap tarball inspection in try-except block
Wrap tar -tf command in try-except to print meaningful error message and
exit when tarball is malformed. Error message includes tarball file type
to help with debug.

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2017-09-06 10:55:36 -07:00
Alex Jaramillo 8978e6cf5b Fix for pypi domain verification bug
Some packages that are verified using their MD5 hash in the
pypi index (last resort option) will fail the split by regex
function and will return more than the two expected tockens,
with this change the regex will return at most two tokens.
2017-09-06 17:28:45 +00:00
Gabi Beyer c19d2d4741 Add "whatrequires" files for package
The file contains packages that require capabilities of the
specified package using the repoquery --whatrequires command.

This includes the recursive option to query for all packages,
and the archlist=src to specify only SRPMS. To use the
repoquery command a yum.conf file is required; the location
of this is specified in the autospec.conf file. If a path
is not provided, the path is set to the common location of
the yum.conf file in clear.

This file is informational and can be used by other tooling
and package maintainers to identify which packages need to be
rebuilt when this package is updated. It can also be used to
track dependent packages and versions over time by inspecting
git history.

Signed-off-by: Gabi Beyer <gabrielle.n.beyer@intel.com>
2017-09-05 10:49:37 -07:00
Gabi Beyer 2e716c17cf update package requirements note in readme
Run time requirements are not assumed to be build time requirements.
If a package has the same build and run time requirement it must be
added to both buildreq_add and requires_add.

Signed-off-by: Gabi Beyer <gabrielle.n.beyer@intel.com>
2017-09-05 08:38:02 -07:00
Arjan van de Ven 5c7e56d018 Split off a python 2.x subpackage as a step towards python 2 deprecation 2017-09-03 16:28:49 +00:00