You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2022/08/23 08:08:23 UTC
[GitHub] [couchdb] konrad-ohms opened a new issue, #4154: RHEL 9 Support for CouchDB
konrad-ohms opened a new issue, #4154:
URL: https://github.com/apache/couchdb/issues/4154
## Summary
CouchDB v3.2.2 does not provide RPM packages for Red Hat Enterprise Linux 9 at the moment, https://docs.couchdb.org/en/3.2.2/install/unix.html does not list RHEL 9 as supported as well. The [couchdb.repo](https://couchdb.apache.org/repo/couchdb.repo) file points to <https://apache.jfrog.io/artifactory/couchdb-rpm> which only has el7 and el8.
## Desired Behaviour
I would appreciate having RPM based precompiled packages for RHEL 9 hosts / ubi9-minimal container ([released in May 2022](https://www.redhat.com/en/about/press-releases/red-hat-defines-new-epicenter-innovation-red-hat-enterprise-linux-9)).
## Possible Solution
Compile on an additional OS during the project build, potentially new Jenkins workers are required (probably CentOS Stream 9 would work as well) or a build inside a container (I guess registry.access.redhat.com/ubi9/ubi might work).
## Additional context
I am building a custom CouchDB image based on ubi8-minimal and are planning to upgrade my other projects to ubi9-minimal soon.
CouchDB as of now would fail to install and I would like to have a common base os across my services.
Also, CouchDB on ubi8-minimal gets a lot of Twistlock findings which are not fixed by Red Hat any more (I can provide a scan if necessary).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] nickva commented on issue #4154: RHEL 9 Support for CouchDB
Posted by GitBox <gi...@apache.org>.
nickva commented on issue #4154:
URL: https://github.com/apache/couchdb/issues/4154#issuecomment-1322417637
One strange I noticed is that the above mozj91 doesn't seem to link to libicu. It turns out it was an earlier mozjs 91.2.0 version, the later versions started linking against it and requiring libicu
```
# wget https://kojipkgs.fedoraproject.org//packages/mozjs91/91.13.0/1.fc35/x86_64/mozjs91-91.13.0-1.fc35.x86_64.rpm
# rpm -i mozjs91-91.13.0-1.fc35.x86_64.rpm
error: Failed dependencies:
libicui18n.so.69()(64bit) is needed by mozjs91-91.13.0-1.fc35.x86_64
libicuuc.so.69()(64bit) is needed by mozjs91-91.13.0-1.fc35.x86_64
```
So if we want to stay current, we are back to building it ourselves and continuously maintaining the build or relying on the hidden polkit libmozjs-78.so version from polkit-libs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] nickva commented on issue #4154: RHEL 9 Support for CouchDB
Posted by GitBox <gi...@apache.org>.
nickva commented on issue #4154:
URL: https://github.com/apache/couchdb/issues/4154#issuecomment-1318895165
Fedora 35 version is probably a good bet
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] domstorey commented on issue #4154: RHEL 9 Support for CouchDB
Posted by GitBox <gi...@apache.org>.
domstorey commented on issue #4154:
URL: https://github.com/apache/couchdb/issues/4154#issuecomment-1321857685
With that dependency installed should we be able to build the couch binaries do you think on the ubi9 base? I noticed that we use runit too, https://packagecloud.io/imeyer/runit?page=2 to build and I couldnt get that too work on ubi9 wither :-(
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] konrad-ohms commented on issue #4154: RHEL 9 Support for CouchDB
Posted by GitBox <gi...@apache.org>.
konrad-ohms commented on issue #4154:
URL: https://github.com/apache/couchdb/issues/4154#issuecomment-1229759475
Okay, I see, that is unfortunate 😕
I guess the RHEL8 rpm will no longer work on RHEL9?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] nickva commented on issue #4154: RHEL 9 Support for CouchDB
Posted by GitBox <gi...@apache.org>.
nickva commented on issue #4154:
URL: https://github.com/apache/couchdb/issues/4154#issuecomment-1229126757
Looking at adding an Rockylinux 9 base image in https://github.com/apache/couchdb-pkg it looks like RHEL 9 and its clones do not include the mozjs (Spidermonkey i.e. our Javascript engine) any longer.
Related issue at Redhat https://bugzilla.redhat.com/show_bug.cgi?id=1958111
That would complicate and slow down supporting RHEL 9 clones as it seems we'd have to build and maintain our own mozjs RPM. There is a chance EPEL 9 might have it (but so far haven't found it there) or maybe we can find another RPM from Fedora or other RPM based distros which somehow are compatible with RHEL 9 clones.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] kun-lu20 commented on issue #4154: RHEL 9 Support for CouchDB
Posted by "kun-lu20 (via GitHub)" <gi...@apache.org>.
kun-lu20 commented on issue #4154:
URL: https://github.com/apache/couchdb/issues/4154#issuecomment-1647807733
Thanks @nickva ! I couldn't have done it without your help.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] konrad-ohms commented on issue #4154: RHEL 9 Support for CouchDB
Posted by GitBox <gi...@apache.org>.
konrad-ohms commented on issue #4154:
URL: https://github.com/apache/couchdb/issues/4154#issuecomment-1224755314
Thanks Nick,
that sounds good to me, having builds for CouchDB v3.x on a RHEL 9 compatible OS should be sufficient in order to package it up for ubi8-minimal. Is there an rough ETA for CouchDB v3.3 yet?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] nickva commented on issue #4154: RHEL 9 Support for CouchDB
Posted by GitBox <gi...@apache.org>.
nickva commented on issue #4154:
URL: https://github.com/apache/couchdb/issues/4154#issuecomment-1224296568
We use Rocky Linux for the RHEL 8 "clone" as we don't have access to RHEL paid licenses. It looks like there is a Rocky Linux 9 so we'll try to use that as the RHEL 9 "clone" base https://rockylinux.org/download.
Chances are it will happen for 3.3 only and not for 3.2.x series.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] nickva commented on issue #4154: RHEL 9 Support for CouchDB
Posted by GitBox <gi...@apache.org>.
nickva commented on issue #4154:
URL: https://github.com/apache/couchdb/issues/4154#issuecomment-1320531981
Since I mentioned polikit above here what I tried:
```
% docker run -it rockylinux/rockylinux:9
# yum install polkit-libs -y
# rpm -ql polkit-libs | grep mozjs
/usr/lib64/polkit-1/libmozjs-78.so
```
So mozjs78 is available there. Too much of a hack for the time being?
Installing mozjs91 from F35 seems to work as well:
```
% docker run -it rockylinux/rockylinux:9
# yum install wget
# wget https://kojipkgs.fedoraproject.org//packages/mozjs91/91.2.0/1.fc35/x86_64/mozjs91-91.2.0-1.fc35.x86_64.rpm
# rpm -i ./mozjs91-91.2.0-1.fc35.x86_64.rpm
# rpm -ql mozjs91
/usr/lib/.build-id
/usr/lib/.build-id/bc
/usr/lib/.build-id/bc/18c2125dbd7527a2f5423f2452df0ff29d9e2f
/usr/lib64/libmozjs-91.so.0
/usr/lib64/libmozjs-91.so.0.0.0
...
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] nickva commented on issue #4154: RHEL 9 Support for CouchDB
Posted by "nickva (via GitHub)" <gi...@apache.org>.
nickva commented on issue #4154:
URL: https://github.com/apache/couchdb/issues/4154#issuecomment-1646193709
Closing as fixed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] nickva closed issue #4154: RHEL 9 Support for CouchDB
Posted by "nickva (via GitHub)" <gi...@apache.org>.
nickva closed issue #4154: RHEL 9 Support for CouchDB
URL: https://github.com/apache/couchdb/issues/4154
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] konrad-ohms commented on issue #4154: RHEL 9 Support for CouchDB
Posted by "konrad-ohms (via GitHub)" <gi...@apache.org>.
konrad-ohms commented on issue #4154:
URL: https://github.com/apache/couchdb/issues/4154#issuecomment-1646899238
Thank you Nick, for adding the support 🙂
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] domstorey commented on issue #4154: RHEL 9 Support for CouchDB
Posted by GitBox <gi...@apache.org>.
domstorey commented on issue #4154:
URL: https://github.com/apache/couchdb/issues/4154#issuecomment-1318779575
Is there any outlook here for when couch will be supported on RHEL 9? We'd also like to move to ubi9 minimal here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] nickva commented on issue #4154: RHEL 9 Support for CouchDB
Posted by GitBox <gi...@apache.org>.
nickva commented on issue #4154:
URL: https://github.com/apache/couchdb/issues/4154#issuecomment-1318824042
Any chance mozjs91 or other version made their way into EPEL repos? Perhaps we can advise users to use that.
We could be slightly sneaky and depend on polkit and use its private moz78 instance, but that sound like a hack.
Otherwise, we'd have to bundle mozjs just for RHEL 9 (and its clones) and then maintain security patches for it. It might be the we go with eventually, but it's hard to justify spending time it currently.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] domstorey commented on issue #4154: RHEL 9 Support for CouchDB
Posted by GitBox <gi...@apache.org>.
domstorey commented on issue #4154:
URL: https://github.com/apache/couchdb/issues/4154#issuecomment-1323391720
mmm yes, not perfect. Too many hacks will make it difficult next time too and will complicate keeping security updates current on all the dependencies if we are pinned..
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] nickva commented on issue #4154: RHEL 9 Support for CouchDB
Posted by GitBox <gi...@apache.org>.
nickva commented on issue #4154:
URL: https://github.com/apache/couchdb/issues/4154#issuecomment-1323882838
Agree it's a hack. I think we'll have to return to building it ourselves like we did previously: https://github.com/apache/couchdb-pkg/tree/main/js
Another option is to embed a smaller JS execution engine like [QuickJS](https://bellard.org/quickjs) so we can just vendor it in.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] nickva commented on issue #4154: RHEL 9 Support for CouchDB
Posted by "nickva (via GitHub)" <gi...@apache.org>.
nickva commented on issue #4154:
URL: https://github.com/apache/couchdb/issues/4154#issuecomment-1646193583
Due to the generous support from IBM's Z open source support team (@kun-lu20) in https://github.com/apache/couchdb-ci/pull/54 we have RHEL9 (clone) support with the caveat that it depends on the EPEL repo.
I just uploaded the x86-64 3.3.2 centos-9 rpm to our artifactory
```
yum install couchdb
Last metadata expiration check: 0:01:36 ago on Fri Jul 21 16:00:37 2023.
Dependencies resolved.
=============================================================================================================================================================================================
Package Architecture Version Repository Size
=============================================================================================================================================================================================
Installing:
couchdb x86_64 3.3.2-1.el9 couchdb 36 M
Transaction Summary
=============================================================================================================================================================================================
Install 1 Package
Total download size: 36 M
Installed size: 87 M
Is this ok [y/N]: y
Downloading Packages:
couchdb-3.3.2-1.el9.x86_64.rpm 4.7 MB/s | 36 MB 00:07
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 4.7 MB/s | 36 MB 00:07
couchdb 50 kB/s | 3.8 kB 00:00
Importing GPG key 0x7A00258D:
Userid : "The Apache Software Foundation (Package repository signing key) <ro...@apache.org>"
Fingerprint: 390E F70B B1EA 12B2 7739 6295 0EE6 2FB3 7A00 258D
From : https://couchdb.apache.org/repo/keys.asc
Is this ok [y/N]: y
Key imported successfully
couchdb 32 kB/s | 3.9 kB 00:00
Importing GPG key 0x9657A78E:
Userid : "Nicolae Vatamaniuc <va...@apache.org>"
Fingerprint: 0BD7 A984 99C4 AB41 C910 EE65 FC04 DFBC 9657 A78E
From : https://couchdb.apache.org/repo/rpm-package-key.asc
Is this ok [y/N]: y
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: couchdb-3.3.2-1.el9.x86_64 1/1
Installing : couchdb-3.3.2-1.el9.x86_64 1/1
Running scriptlet: couchdb-3.3.2-1.el9.x86_64 1/1
Generating random cookie value.
Verifying : couchdb-3.3.2-1.el9.x86_64 1/1
Installed:
couchdb-3.3.2-1.el9.x86_64
Complete!
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] nickva commented on issue #4154: RHEL 9 Support for CouchDB
Posted by "nickva (via GitHub)" <gi...@apache.org>.
nickva commented on issue #4154:
URL: https://github.com/apache/couchdb/issues/4154#issuecomment-1646903215
The credit all goes to Kun Lu in this case. I just verified that it worked. :-)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] konrad-ohms commented on issue #4154: RHEL 9 Support for CouchDB
Posted by GitBox <gi...@apache.org>.
konrad-ohms commented on issue #4154:
URL: https://github.com/apache/couchdb/issues/4154#issuecomment-1223715805
Not sure if you are still the right contact for that matter, but tagging @wohali as you kindly helped me out last time as well (thanks for that :slightly_smiling_face:)
(https://github.com/apache/couchdb/issues/2231)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] nickva commented on issue #4154: RHEL 9 Support for CouchDB
Posted by GitBox <gi...@apache.org>.
nickva commented on issue #4154:
URL: https://github.com/apache/couchdb/issues/4154#issuecomment-1322391254
`ubi9` seems to work as far as installing and resolving dependencies at least:
```
% docker pull redhat/ubi9
# yum install wget ...
# ldd /usr/lib64/libmozjs-91.so.0
linux-vdso.so.1 (0x00007fffa9778000)
libz.so.1 => /lib64/libz.so.1 (0x00007f068cb09000)
libm.so.6 => /lib64/libm.so.6 (0x00007f068ca2e000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f068c807000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f068c7ec000)
libc.so.6 => /lib64/libc.so.6 (0x00007f068c5e3000)
/lib64/ld-linux-x86-64.so.2 (0x00007f068e79e000)
```
Not sure about runit. I guess we could use any other daemon supervisor thing instead.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] domstorey commented on issue #4154: RHEL 9 Support for CouchDB
Posted by GitBox <gi...@apache.org>.
domstorey commented on issue #4154:
URL: https://github.com/apache/couchdb/issues/4154#issuecomment-1318874444
Does look like mozjs-91 is out there in some forms: https://www.google.com/search?q=mozjs-91&rlz=1C1VDKB_enGB1008GB1008&oq=mozjs-91&aqs=chrome..69i57.3463j0j7&sourceid=chrome&ie=UTF-8
eg. https://src.fedoraproject.org/rpms/mozjs91 & https://ubuntu.pkgs.org/22.04/ubuntu-updates-main-arm64/libmozjs-91-dev_91.10.0-0ubuntu1_arm64.deb.html & http://rpms.remirepo.net/rpmphp/zoom.php?rpm=mozjs91
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org