Open andypost opened 3 years ago
I'm not much familiar with perl so not clear how to move forward with packaging for Alpinelinux
@mnunberg is there any hope of reviving this project and getting it working with libcouchbase3?
@mnunberg is there any hope of reviving this project and getting it working with libcouchbase3?
I wrote a new Couchbase perl XS module (actually developed in C++ converted to XS) for libcouchbase3 with support for K/V operations, batch operations, collections, N1QL queries, transactions and async operations. I also developed an ORM to compose N1QL statements in an object-oriented manner. We have been using these modules in production for about 6 months now, they are not perfect and there is still a lot of work to be done especially on error handling, but they are stable. All this material was developed for our company's internal needs, but with a little effort I can publish our Couchbase perl framework on CPAN. I am currently a bit busy with a release of one of our products, but I believe that in two or three weeks I will be able to publish a general purpose version on CPAN. Of course, I would also be happy to have active cooperation from other Perl/XS developers in the maintenance and development of the Couchbase 3 framework that I will publish.
@annibale-x In the eternal words of Homer Simpson, "Your ideas are intriguing to me and I wish to subscribe to your newsletter."
Meanwhile, I am using libcouchbase2 (with compat-openssl10 - openssl compatibility library, ancient), and build perl-Couchbase on Alma 9. Quick how-to:
You need cpan2rpm:
git clone https://github.com/ekkis/cpan2rpm
cd cpan2rpm
git log > Changes
./cpan2rpm --mk-rpm-dirs=~/rpm
perl Makefile.PL
make
make dist
./cpan2rpm --no-sign --no-prfx --source cpan2rpm-2.032.tar.gz .
yum install -y ~/rpm/RPMS/noarch/cpan2rpm-2.032-1.noarch.rpm
wget https://rpmfind.net/linux/centos/8-stream/AppStream/x86_64/os/Packages/compat-openssl10-1.0.2o-4.el8.x86_64.rpm
yum install -u ./compat-openssl10-1.0.2o-4.el8.x86_64.rpm
wget -O /etc/yum.repos.d/couchbase.repo http://packages.couchbase.com/rpm/couchbase-centos62-x86_64.repo
yum install -y libcouchbase-devel libcouchbase2-core
yum install -y perl-JSON-MaybeXS
cpan2rpm --mk-rpm-dirs=~/rpm
Dependency:
wget https://cpan.metacpan.org/authors/id/M/MN/MNUNBERG/Constant-Generate-0.17.tar.gz
cpan2rpm --no-sign --make-no-test --provides 'perl(Constant::Generate)' \
--source Constant-Generate-0.17.tar.gz Constant-Generate-0.17.tar.gz
yum install -y ~/rpm/RPMS/noarch/perl-Constant-Generate-0.17-1.noarch.rpm
Build it:
wget https://cpan.metacpan.org/authors/id/M/MN/MNUNBERG/Couchbase-2.0.3.tar.gz
tar zxvf Couchbase-2.0.3.tar.gz
cd Couchbase-2.0.3
cpan2rpm --no-sign --make-no-test --no-requires 'perl(Log::Fu)' --no-requires 'perl(Dir::Self)' \
--no-requires 'perl(Test::Class)' --requires 'perl(JSON::MaybeXS)' \
--release 1.el9 \
--source ~/Couchbase-2.0.3.tar.gz .
yum install -y ~/rpm/RPMS/x86_64/perl-Couchbase-2.0.3-1.el9.x86_64.rpm
Trying to build with libcouchbase 3.0.7 I'm getting compilation report because
api3.h
is missing in 3.xIs there a way to fix it?