Countermeasures for FDclone build failure on CentOS 8

Maybe no one is facing a similar problem, or I couldn't find any direct information.

Conclusion

Extract the source, edit / modify the SPEC file in UTF8, archive it again, and rpmbuild as before

environment

--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

phenomenon

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

What I looked up

Meaning of bogus date

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.

Character code related

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

What i did

--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

Countermeasures for FDclone build failure on CentOS 8
Build ffmpeg 4.3.1 on Ubuntu for Windows
I tried to build AdoptOpenjdk 11 on CentOS 7
OpenVPN on CentOS 8
Automatic DDNS update on CentOS8 (for MyDNS.JP only)
VSCode Java Debugger for Java Build failed Causes and countermeasures
Build debug environment for Phalcon + Vagrant + centos + xdebug + phpstorm
Docker installation on CentOS 6
Use perltidy on CentOS 8
Install Golang on CentOS 8
Try OpenLiteSpeed on CentOS8
Install Neo4j 4.1.3 on centOS
Tomcat v8 on CentOS7
Install Vertica 10.0 on CentOS 6.10
Zabbix 5 installation on CentOS 8
Use mod_auth_cas on CentOS 8
Countermeasures for Java OutOfMemoryError
Install PostgreSQL 12 on Centos8
Install nginx on centOS7
Centos7 setup (for softether setup)
Install Python 3 on CentOS 7
Install kuromoji on CentOS7
Build Growai with Centos7
Use bat on Centos.
Jetty v8 on CentOS7
OpenJDK installation on CentOS 7
Install Mattermost on CentOS 7
Install PostGIS 2.5.5 on CentOS7
Install jpndistrict on CentOS 7
Install Redmine 4.1.1 on CentOS 7
Smokeping Install on CentOS7
Build Zabbix on Ubuntu 20.04
Install PostgreSQL 13 on CentOS 7.5
Build a CentOS 8 virtual environment on your Mac with VirtualBox