Skip to content

Native stubbing, multiple versions of a package #32

@jheiss

Description

@jheiss

If you attempt to install two versions of the same package which both depend on native packages then the stubbing code collides with itself. It should incorporate the version of the tpkg in the name or version of the native package to avoid this conflict.

% tpkg -q python
python-2.7.2-1-redhat6-x86_64.tpkg

% tpkg -i python=3.2.2
Executing with sudo
The following packages will be installed:
python-3.2.2-1-redhat6-x86_64.tpkg
Confirm? [Y/n]
Skipping bzip2, already installed
Skipping gdbm, already installed
Processing files: stub_for_python-1-1.noarch
Checking for unpackaged file(s): /usr/lib/rpm/check-files /tmp/rpmbuild20120910-8230-164886d-0/BUILDROOT/stub_for_python-1-1.x86_64
Wrote: /tmp/rpmbuild20120910-8230-164886d-0/RPMS/noarch/stub_for_python-1-1.noarch.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.fRKBcR

  • umask 022
  • cd /tmp/rpmbuild20120910-8230-164886d-0/BUILD
  • /bin/rm -rf /tmp/rpmbuild20120910-8230-164886d-0/BUILDROOT/stub_for_python-1-1.x86_64
  • exit 0
    package stub_for_python-1-1.noarch is already installed
    Warning: Failed to install native stub package for python

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions