[Server-devel] Testing rpm dependencies of XSCE ansible version using a virtual package
Miguel González
migonzalvar at activitycentral.com
Wed Oct 30 15:47:50 EDT 2013
To test hidden dependencies in current ansible implementation I've built a
**virtual package called xsce-virtual.rpm** [1] that includes a `Provides`
rule:
```
Provides: xs-config xs-tools
```
Installing it in the target machine, it is possible to install XSCE from
source with ansible assuring that actual xs-config and xs-tools packages
won't be installed.
```
$ sudo yum localinstall xsce-virtual-0.0-1479_g3ad13d3.noarch.rpm
[...]
Complete!
$ yum whatprovides xs-config xs-tools
xsce-virtual-0.0-1479_g3ad13d3.noarch : XSCE virtual package to isolate
xs-config and xs-tool dependencies
Repo : @/xsce-virtual-0.0-1479_g3ad13d3.noarch
Matched from:
Provides : xs-config
xsce-virtual-0.0-1479_g3ad13d3.noarch : XSCE virtual package to isolate
xs-config and xs-tool dependencies
Repo : @/xsce-virtual-0.0-1479_g3ad13d3.noarch
Matched from:
Provides : xs-tools
$ sudo yum install -y git ansible
$ git clone https://github.com/XSCE/xsce
$ cd xsce/
$ sudo ./runansible
[...]
$ yum list installed|grep ^xs
xs-rsync.noarch 0.6.12.gabc8f49-1.fc17
@xs-extra
xsce-virtual.noarch 0.0-1479_g3ad13d3
@/xsce-virtual-0.0-1479_g3ad13d3.noarch
$
```
----
Related with this, I cleaned dxs.spec from DXS branch and sent a pull
request [2]:
- include xsce.yml
- substitute DXS for XSCE in paths and texts
- add `Provides: ` directive for xs-config and xs-tools.
To test, please install the rpm in the target machine and run ansible:
```
sudo yum localinstall xsce-server-0.0-1480_gb42a1de.noarch.rpm
sudo runansible
```
See https://sugardextrose.org/issues/4827 for the rpm packages.
Of course, packages can be built using ``rpmbuild -bb xsce-server.spec``.
1: https://gist.github.com/migonzalvar/7238367
2: https://github.com/XSCE/xsce/pull/22
--
<https://github.com/XSCE/xsce/pull/22>
Miguel González
Activity Central: <https://github.com/XSCE/xsce/pull/22>
http://www.activitycentral.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.laptop.org/pipermail/server-devel/attachments/20131030/da832375/attachment.html>
More information about the Server-devel
mailing list