Open hartzell opened 9 years ago
So, do you need libxml2-devel and expat-devel because you're building XML distributions? If so, you can include them in requires
or build_requires
, as appropriate, like I do for DBD::ODBC here.
Yes, I need them for the packages I'm building (my end result is a set of freshly minted postgresql rpms that depend on a set of freshly minted perl-5.18.4 rpms with a set of freshly minted CPAN distro rpms to support a plperl/plperlu-using application).
The handful of stuff that I use yum to install was from my early smack-it-with-a-big hammer phase, I could probably fine tune it.
I'll check the list of prereqs I was using cpanm
to install and see how I can trim that (it's on a machine that I don't have access to at the moment).
The dist file for my fork of rpmcpan is here.
I think that the only tricky thing that I didn't steal from you was the B-C patch.
g.
You can put those into the requires
and prereqs
keys for the distributions that need them, like I've done for DBD::ODBC here. You'd do something like:
"XML-Parser": { "build_requires": ["expat-devel"] },
"XML-LibXML": { "build_requires": ["libxml2-devel"] },
Oh, I see you already have those. So for basics, I think we need to document that these are required:
rpm-build gcc=c++
I don't think git is required, though, except to clone this repo, of course. :-)
Getting rpmcpan up into the air has been a bit of an awkward dance. I wonder if there's a better way, or if not then if a bit of docs would help.
I started with a simple virtualbox VM based on NREL's Centos 6.6 box.
After a bit of trial and error, I've learned to install these (some are things I need for my trimmed etc/dists.json):
Then I cloned my fork of the iovation rpmcpan repository.
When I tried to run bin/rpmcpan I was missing a double handful of prerequisites.
So I built a copy of cpanm for the system perl and used that to install the prereqs.
That let things run up until the point that rpmcpan relaunches itself using the perl that it built. That perl trips over the prereqs I built for the system perl and seems to need its own copy of them.
So I ended up building a cpanm and a set of prereqs for the new perl and that has let me proceed to assembling a set of rpms for the various distros I need.
In short, it looks like this:
Thanks!