OpenSearch: [BUG] OpenSearch Core 1.3.0 including `ja` in JDK man pages
In rpm assemble through build repo code, we will extract the files from core rpm.
It failed with this error once we switch from 14 to 11 on JDK for 1.3.0.
cpio: cannot make directory `./usr/share/opensearch/jdk/man/ja': No such file or directory
cpio: ./usr/share/opensearch/jdk/man/ja/man1: Cannot mkdir: No such file or directory
Root cause:
jdk14:
opensearch-1.2.4/jdk/man
drwxr-x--- 2 <> 4096 Jan 14 03:42 man1
jdk11:
opensearch-1.3.0/jdk/man
lrwxrwxrwx 1 <> 11 Mar 15 19:28 ja -> ja_JP.UTF-8
drwxr-x--- 3 <> 4096 Jan 1 1970 ja_JP.UTF-8
drwxr-x--- 2 <> 4096 Jan 1 1970 man1
There is a new folder ja_JP.UTF-8 and a new symlink ja which caused cpio to fail as it tries to treat symlink as a folder here.
General question on why this folder is needed as a result. And whether we need to make changes on cpio to omit this error.
Thanks.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (16 by maintainers)
Commits related to this issue
- Exclude man page symlink in distribution This is a short-term solution to unblock the build process for the 1.3 release. A tool used in that process (cpio) is failing on a symlink in the JDK man page... — committed to andrross/OpenSearch by andrross 2 years ago
- Exclude man page symlink in distribution (#2602) This is a short-term solution to unblock the build process for the 1.3 release. A tool used in that process (cpio) is failing on a symlink in the JD... — committed to opensearch-project/OpenSearch by andrross 2 years ago
- Exclude man page symlink in distribution (#2602) This is a short-term solution to unblock the build process for the 1.3 release. A tool used in that process (cpio) is failing on a symlink in the JD... — committed to peterzhuamazon/OpenSearch by andrross 2 years ago
@CEHENKLE @saratvemulapalli This is blocking RPM builds. Can you please prioritize it?
@dblock @saratvemulapalli This PR #2602 is raised to resolve this issue temporarily. @xuezhou25 is working on resolving #2571 on a separate PR.
Thanks.