Bug 28982 - CentOS 8 的 pinentry 包包含 postinstall 和 preuninstall 脚本,用于在安装/卸载时将 pinentry.info 文档注册/注销到系统 info 目录索引中。Anolis OS 8.8 的 pinentry 包缺失这些脚本。
Summary: CentOS 8 的 pinentry 包包含 postinstall 和 preuninstall 脚本,用于在安装/卸载时将 pinentry.inf...
Status: NEW
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: BaseOS Packages (show other bugs) BaseOS Packages
Version: 8.8
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Jacob
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-29 21:25 UTC by djjjjj
Modified: 2025-12-29 21:25 UTC (History)
0 users

See Also:


Attachments
用于复现问题的 Dockerfile (2.61 KB, application/octet-stream)
2025-12-29 21:25 UTC, djjjjj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description djjjjj 2025-12-29 21:25:16 UTC
Created attachment 1455 [details]
用于复现问题的 Dockerfile

Description of problem:
Anolis OS 8.8 的 pinentry 包缺失 postinstall 和 preuninstall 脚本。CentOS 8 的 pinentry 包包含这些脚本,用于在安装时将 pinentry.info 文档注册到系统 info 目录索引,以及在卸载时注销该文档。Anolis OS 8.8 缺失这些脚本导致与 CentOS 8 行为不一致。

Version-Release number of selected component (if applicable):
pinentry(Anolis OS 8.8 默认版本)

How reproducible:
每次必现

Steps to Reproduce:
在 Anolis OS 8.8 系统中执行 rpm -q --scripts pinentry
在 CentOS 8 系统中执行 rpm -q --scripts pinentry
对比两个系统的输出结果

Actual results:
Anolis OS 8.8 的 pinentry 包无任何安装/卸载脚本输出
Expected results:
应包含 postinstall 和 preuninstall 脚本,与 CentOS 8 保持一致:
postinstall scriptlet (using /bin/sh):
if [ -f /usr/share/info/pinentry.info ]; then
/sbin/install-info /usr/share/info/pinentry.info /usr/share/info/dir ||:
fi
preuninstall scriptlet (using /bin/sh):
if [ $1 -eq 0 -a -f /usr/share/info/pinentry.info ] ; then
/sbin/install-info --delete /usr/share/info/pinentry.info /usr/share/info/dir ||:
fi

Additional info:
该问题影响 GNU info 文档系统的索引功能。安装 pinentry 后用户可能无法通过 info pinentry 命令正确访问文档。建议在 pinentry 包的 spec 文件中添加相应的 postinstall 和 preuninstall 脚本以保持与 CentOS 8 的兼容性。