I download this Package util-linux-2.23.2-65.el7_9.1.src.rpm
and extract it
rpm2cpio ./util-linux-2.23.2-65.el7_9.1.src.rpm | cpio -idmv
Among the files used there is a file named util-linux-2.23.2.tar.xz
I have extract this file and Editing one of the files login.c
Then I compressed the files once using the command
tar -cJvf util-linux-2.23.2.tar.xz util-linux-2.23.2/
Now when I try to compress files to rpm file I have this with the command
rpmbuild -ba ~/rpmbuild/SOURCES/util-linux.spec
I have this error:
tch
+ /usr/bin/patch -p1 -s
+ /usr/bin/cat /root/rpmbuild/SOURCES/0143-lsmem-make-split-optional-follow-output-by-default.patch
+ /usr/bin/patch -p1 -s
+ /usr/bin/cat /root/rpmbuild/SOURCES/0144-libmount-fix-access-utab-write-test.patch
+ /usr/bin/patch -p1 -s
+ /usr/bin/cat /root/rpmbuild/SOURCES/0145-login-add-LOGIN_PLAIN_PROMPT-to-login.defs.patch
+ /usr/bin/patch -p1 -s
1 out of 2 hunks FAILED -- saving rejects to file login-utils/login.c.rej
error: Bad exit status from /var/tmp/rpm-tmp.GN6oqO (%prep)
RPM build errors:
bogus date in %changelog: Thu Oct 10 2012 Karel Zak <kzak@redhat.com> 2.22.1-1
bogus date in %changelog: Thu Feb 07 2012 Karel Zak <kzak@redhat.com> 2.21-0.1
bogus date in %changelog: Fri Aug 2 2011 Karel Zak <kzak@redhat.com> 2.20-0.1
bogus date in %changelog: Thu Jan 8 2010 Karel Zak <kzak@redhat.com> 2.17-1
bogus date in %changelog: Wed Dec 14 2006 Karel Zak <kzak@redhat.com> 2.13-0.46
bogus date in %changelog: Wed Mar 9 2006 Jesse Keating <jkeating@redhat.com> 2.13-0.20
bogus date in %changelog: Wed Mar 9 2006 Jesse Keating <jkeating@redhat.com> 2.13-0.19
bogus date in %changelog: Sun Mar 13 2004 <SteveD@RedHat.com>
bogus date in %changelog: Mon Jun 14 2003 Elliot Lee <sopwith@redhat.com> 2.11y-20
bogus date in %changelog: Tue Jan 28 2002 Bill Nottingham <notting@redhat.com> 2.11n-4
Bad exit status from /var/tmp/rpm-tmp.GN6oqO (%prep)
[root@vps8865 ~]# ^C