Maybe no one is facing a similar problem, or I couldn't find any direct information.
Extract the source, edit / modify the SPEC file in UTF8, archive it again, and rpmbuild as before
--Environment where CentOS 8 was selected and installed on Sakura VPS at the time of writing the article --FD-3.01j (maybe past versions too)
# uname -a
Linux ${HOSTNAME} 4.18.0-193.28.1.el8_2.x86_64 #1 SMP Thu Oct 22 00:20:22 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
When I do rpmbuild, I get this message and the build is not completed.
# rpmbuild -tb --clean ./FD-3.01j.tar.gz
warning: bogus date in %changelog: Tue Jul 7 2004 Takashi SHIRAI <[email protected]>
warning: bogus date in %changelog: Tue Sep 17 2003 Takashi SHIRAI <[email protected]>
warning: Package FDclone: invalid utf-8 encoding in Description: FDclone is a file& directory maintenance tool for the UNIX
based OS. It is a clone of "FD" for MS-DOS, made by Mr.
A.Idei <[email protected]> in 1989.
%description(ja)
FDclone �ϡ�1989ǯ�� A.Idei <[email protected]> ����
���ˤ��ä� MS-DOS �Ѥ˺������줿�أƣġ٤��Ϥ�����UNIX �١�
���� OS ���ѤΥե����� & �ǥ��쥯�ȥ������ġ����Ǥ��� - Invalid or incomplete multibyte orwide character
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.oWoPi3
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD
Omission
RPM build errors:
bogus date in %changelog: Tue Jul 7 2004 Takashi SHIRAI <[email protected]>
bogus date in %changelog: Tue Sep 17 2003 Takashi SHIRAI <[email protected]>
Package FDclone: invalid utf-8 encoding in Description: FDclone is a file & directory maintenance tool for the UNIX
based OS. It is a clone of "FD" for MS-DOS, made by Mr.
A.Idei <[email protected]> in 1989.
%description(ja)
FDclone �ϡ�1989ǯ�� A.Idei <[email protected]> ����
���ˤ��ä� MS-DOS �Ѥ˺������줿�أƣġ٤��Ϥ�����UNIX �١�
���� OS ���ѤΥե����� & �ǥ��쥯�ȥ������ġ����Ǥ��� - Invalid or incomplete multibyte orwide character
Empty %files file /root/rpmbuild/BUILD/FD-3.01j/debugsourcefiles.list
It's a false day of the week. If the date for Tue Jul 7 2004 is correct, it's Wednesday, so it's Wed, not Tue. 6 if the day of the week is correct. If the date on Tue Sep 17 2003 is correct, it's Wednesday, so it's Wed, not Tue. 16 if the day of the week is correct.
It seems that the SPEC file of rpmbuild is written in UTF-8, but fd.spec was written in EUC.
error: Empty %files file /root/rpmbuild/BUILD/FD-3.01j/debugsourcefiles.list When I googled, I was able to get useful information. It seems that it can be avoided by not creating debugsourcefiles.list.
Bug # 4555: RPM build errors: Empty% files file ... https://www.openrtm.org/redmine/issues/4555
--Extract the source file
tar zxvf .FD-3.01j.tar.gz
--Edit ./FD-3.01j/fd.spec in UTF8
% global debug_package% {nil} must be before% prep and% setup.
Delete 3 lines from the 29th line ...
FDclone ?ϡ?1989ǯ?Hi A.Idei <[email protected]> ?Akiho
?Heihi?Sword?Ni MS-DOS heme?˺ 鋿????줿?أƣġ٤Ϥ?????UNIX ?١?
???OS Ninihem?Υե????・& ?ǥ??쥯?ȥ ・ Nohe?ġ??・ Nu????
Added 5 lines.
FDclone was published in 1989..Idei <[email protected]>Mr.
MS by hand-UNIX base that imitates "FD" created for DOS
OS general-purpose files&A directory management tool.
%global debug_package %{nil}
Corrected the day of the week around line 173 (at the end of the update history) From Tue ...
* Tue Jul 7 2004 Takashi SHIRAI <[email protected]>
* Tue Sep 17 2003 Takashi SHIRAI <[email protected]>
To Wed
* Wed Jul 7 2004 Takashi SHIRAI <[email protected]>
* Wed Sep 17 2003 Takashi SHIRAI <[email protected]>
Archive again
tar czvf FD-3.01j.tar.gz ./FD-3.01j
After that, as usual, rpmbuild and install the completed rpm package.
that's all.
Recommended Posts