Opened 8 years ago

Last modified 8 years ago

#51679 new defect

yum-createrepo @0.9.8_2 The createrepo command fails after installation

Reported by: aszostak-partner-eso-org Owned by: afb@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: yum-createrepo

Description

The createrepo command fails to run after a fresh install of the yum-createrepo port. See the error message below:

macosx-10-9:~ vagrant$ createrepo --help
Traceback (most recent call last):
  File "/opt/local/share/createrepo/genpkgmetadata.py", line 28, in <module>
    import createrepo
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/createrepo/__init__.py", line 22, in <module>
    import yumbased
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/createrepo/yumbased.py", line 19, in <module>
    import rpm
ImportError: No module named rpm

This is likely related to ticket #51678.

Change History (4)

comment:1 Changed 8 years ago by mf2k (Frank Schima)

Cc: afb@… removed
Owner: changed from macports-tickets@… to afb@…

comment:2 Changed 8 years ago by afb@…

Not sure it is worth it to maintain yum-createrepo any more. Can you use the "stable" rpm createrepo (0.4.11) instead ?

comment:3 Changed 8 years ago by aszostak-partner-eso-org

Well, what is the philosophy for this port? Does it have a special purpose for MacPorts, or is there to provide some of the tools as would be found on a RedHat/Fedora machine?

My assumption was the latter, in which case the newer version should be made available. But if that was not the purpose of this port (e.g. used for something specific to MacPorts), then you can argue that yum-createrepo should be dropped.

comment:4 Changed 8 years ago by afb@…

When MacPorts was still creating .rpm files, there could be a need to create repodata. But the Fedora version is only compatible with Fedora, and keeping it working on other platforms is a hassle. And since yum itself is obsolete, it seems even less worthwhile. Supposedly someone else _could_ update it to 0.10.4, if they find there is a need for it. After all, FreeBSD did find such a maintainer*. But there has been no interest in MacPorts for it - until now (?).

Note: See TracTickets for help on using tickets.