Cătălin George Feștilă <mythcat(a)fedoraproject.org> 于2021年1月24日周日 上午2:44写道:
[mythcat@desk SPECS]$ sudo rpmbuild --undefine=_disable_source_fetch
-ba
krita.spec
Don't do that, you do not need root permission to build a rpm package.
[sudo] password for mythcat:
warning: Downloading
https://download.kde.org/stable/krita/4.4.2/krita-4.4.2.tar.gz to
/root/rpmbuild/SOURCES/krita-4.4.2.tar.gz
curl: (23) Failure writing output to destination
I don't know the reason for this failure, just retry without sudo?
error: Couldn't download
https://download.kde.org/stable/krita/4.4.2/krita-4.4.2.tar.gz
[mythcat@desk SPECS]$ rpmbuild --undefine=_disable_source_fetch -ba
krita.spec
setting SOURCE_DATE_EPOCH=1611360000
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Z7ah5Y
+ umask 022
+ cd /home/mythcat/rpmbuild/BUILD
+ cd /home/mythcat/rpmbuild/BUILD
+ rm -rf krita-4.2.2
+ /usr/bin/gzip -dc /home/mythcat/rpmbuild/SOURCES/krita-4.4.2.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd krita-4.2.2
/var/tmp/rpm-tmp.Z7ah5Y: line 39: cd: krita-4.2.2: No such file or
directory
error: Bad exit status from /var/tmp/rpm-tmp.Z7ah5Y (%prep)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.Z7ah5Y (%prep)
_______________________________________________
users mailing list -- users(a)lists.fedoraproject.org
To unsubscribe send an email to users-leave(a)lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org