Attached is an ebuild for Interchange, an open-source shopping cart and much more. Initial installation is pretty straightforward, but webapp.eclass is not currently used, as web-related files are installed per catalog. See also http://forums.gentoo.org/viewtopic.php?t=189336 Comments/improvements encouraged.
Created attachment 36638 [details] interchange-5.2.0.ebuild
Getting this error: emerge: there are no masked or unmasked ebuilds to satisfy "dev-perl/Safe-Hole".
Created attachment 36672 [details] dev-perl/Safe-Hole-0.10.ebuild
Getting this error: emerge: there are no masked or unmasked ebuilds to satisfy "dev-perl/ShadowHash".
same error also for 'dev-perl/IniConf' and 'dev-perl/Business-FedEx-DirectConnect' NOTE FOR USERS: comment them in ebuild file and use CPAN shell to install perl modules before emerge interchange # perl -MCPAN -e shell cpan> install Tie::ShadowHash cpan> install IniConf cpan> install Business::FedEx::DirectConnect # ACCEPT_KEYWORDS=~x86 emerge -av interchange if you get an error like 'Can't locate DBI.PM in @INC (@INC contains: ....' then install DBI and emerge again # perl -MCPAN -e shell cpan> install DBI # ACCEPT_KEYWORDS=~x86 emerge -av interchange
There is a bundle of Perl modules called Bundle::InterchangeKitchenSink that should take care of these errors. I think it installs just about everything you need for Interchange except DBI and DBD.
My apologies, I forgot to attach the Perl deps. I'll do it this weekend when I get back.
I should also mention that Interchange absolutely will not work unless Perl is installed with threads disabled.
Created attachment 37674 [details] dev-perl/Business-FedEx-DirectConnect-0.19.ebuild
Created attachment 37675 [details] dev-perl/Business-UPS-1.13.ebuild
Created attachment 37676 [details] dev-perl/IniConf-1.03.ebuild
Created attachment 37677 [details] dev-perl/ShadowHash-0.07.ebuild
Business-FedEx-DirectConnect: missing a dep for Tie-StrictHash (which also needs a skeleton ebuild) Business-UPS: DESCRIPTION="A UPS Interface Module" IniConf: DESCRIPTION="A Module for reading .ini-style configuration files" Last time I'll say this (since this is the last of the set you asked me to look at): KEYWORDS ~arch for platforms you can confirm, not for every platform available ;)
Ok, I looked at the ebuild again, and I'm not committing it in its current state. Per our policy, ebuilds can't install in /usr/local. /usr/lib is clearly not the right place for it either, and it doesn't obey the /usr hierarchy either. Reassigning to webapps-request. I'll be happy to look at it again if someone fixes the locations.
Can you tell me more about what you mean? I can take this issue to the IC mailing list and hopefully get some help with it.
First of all, ebuilds can't install into /usr/local, per FHS. Secondly, try installing it into its default location, /usr/local/interchange, and examine the contents of that directory. You'll see that even if you could do --prefix=/usr, it does not conform to the /usr hierarchy. Of course, they don't use autotools, so you can't specify where you want it to install (well, you can specify the root directory, but that's not enough). Ideally, there should be a way to specify where to place individual subdirectories, which, AFAIK, is not possible ATM.
I am told you should have a look at the RPM or Debian build of Interchange. They don't install to /usr/local .
Ok, thanks for investigating. I'll take a look when I have time.
I would like to help finish this ebuild if there's anything I can do.
Is anyone willing to finish this on a paid basis?
Created attachment 39820 [details] interchange-5.2.0.ebuild now installs into /usr/local
Created attachment 39821 [details] Business-FedEx-DirectConnect-0.19.ebuild
Created attachment 39822 [details] IniConf-1.03.ebuild
Created attachment 39823 [details] Business-UPS-1.13.ebuild
Created attachment 39824 [details] Safe-Hole-0.10.ebuild
Created attachment 39825 [details] ShadowHash-0.07.ebuild
Created attachment 39826 [details] Tie-StrictHash-1.0.ebuild
Created attachment 40352 [details] interchange-5.2.0.ebuild Added SQL-Statement dep, minor fixes.
Created attachment 40353 [details] Business-FedEx-DirectConnect-0.19.ebuild Fixed SRC_URI (thanks to Grant)
Created attachment 40354 [details] SQL-Statement-1.09.ebuild Apparently, this is needed with USE="mysql". Would be interesting to know if postgres needs it as well (don't see why not).
Perl modules are all in the tree now. Just waiting on a verdict for the interchange ebuild itself.
I'd like to revive this. Is anyone listening? - Grant
Heya, Apologies for the lack of response. :) I'm going to get this ebuild working with the webapp eclass and get it into portage. Watch this space. :) Best, Elfyn
Nice! Please let me know if there is anything I can do to help. Also, I hate to ask this, but when do you think it might be done? I need to install Gentoo on a new server and I'm wondering if this ebuild will be done in time. - Grant
I'm looking to have this in the portage tree late this evening, so within the next ~6 hours or so. :) If you could help testing it out, that would be great ! :)
Oh man, that would be awesome. I can definitely test it. :) - Grant
There is a daemon with the Interchange package. It would be cool if that was in /etc/init.d/ but that might be hard. I just don't know. - Grant
Hi, I'm just looking for any kind of an ETA for this package. I'm actually installing my new Gentoo server right now and I'm getting very close to needing to make the decision between the Interchange ebuild posted here and a cleaned-up one of your's in portage. Thanks for working on this! - Grant
Sorry for the delay, been having a few webapp-config problems wrt getting this in. Due to this, I've gone ahead and added it to the tree as-is, and will get the remaining webapp issues fixed asap. It's now in the tree package.mask'd (as I anticipate making a lot of changes to the install that would likely break upgrades) and will come out as soon once it's been webapp'ised and I'm happy it's stable. Will keep this bug updated as soon as I have any news.
Thanks Elfyn, this seems to be a tricky one to ebuild. I'm really familiar with it, but not with making ebuilds. Let me know if there's something I might be able to help with. I'm on the Interchange mailing list: http://www.icdevgroup.org/mailman/listinfo/interchange-users so that could help too. I'm emerging right now and I'll let you know how it goes. Thanks again! - Grant
Damn, no-go. All of the dependencies installed smoothly but I get this from interchange at the very beginning of the emerge: Unknown option: prefix Unknown option: host Unknown option: mandir Unknown option: infodir Unknown option: datadir Unknown option: sysconfdir Unknown option: localstatedir Bad option get make: *** No targets specified and no makefile found. Stop. make: *** No rule to make target `test'. Stop. - Grant
I just emerged with the interchange ebuild attached here and it works great. I propose the one in portage is replaced by the one attached here. - Grant
Does the interchange ebuild in portage emerge successfully for anyone? The one attached here works great for me but the one in portage fails. It would be nice to get the working one in the official tree. - Grant
I did not realize beu put the ebuild in the tree. It's broken in many exciting ways, including installing things into /usr/local.
package.mask'ed
Removed from the tree by beu a while ago
I plan on having a go at getting a real ebuild written for Interchange. I've never written one before, so can anyone comment on what kinds of problems I might have writing this one? We seem to be 0/2 so far and I'm curious as to what makes this particular ebuild so tough to write.
It's got a weird interactive build system that is documented poorly and incorrectly. You may want to ask the perl folks for advice as it uses makemaker.