On 6/25/20 10:08 AM, Pavel Raiskup wrote:
i'll change it in my spec in any case.
Good, just let me know it is OK.
with this spec
https://pastebin.com/raw/UG1ZGZGG
which atm includes,
%define _disable_source_fetch 0
local rpmbuild is OK,
rpmbuild --verbose -ba nginx.spec tree -L 2 ../*RPMS ../RPMS └── x86_64 ├── nginx-1.19.0.fc32.x86_64.rpm ├── nginx-debuginfo-1.19.0.fc32.x86_64.rpm └── nginx-debugsource-1.19.0.fc32.x86_64.rpm ../SRPMS └── nginx-1.19.0-git.src.rpm
as is local mock build,
mock \ -r /etc/mock/fedora-32-x86_64.cfg \ --rebuild ../SRPMS/nginx-1.19.0-git.src.rpm
... INFO: Results and/or logs in: /var/lib/mock/fedora-32-x86_64/result
ls -al /var/lib/mock/fedora-32-x86_64/root/builddir/build/SRPMS/nginx-1.19.0-git.src.rpm -rw-r--r-- 1 root mock 2.5M Jun 25 13:51 /var/lib/mock/fedora-32-x86_64/root/builddir/build/SRPMS/nginx-1.19.0-git.src.rpm
pushing the spec to COPR,
copr-cli build nginx-mainline \ /root/rpmbuild/SPECS/nginx.spec
now "succeeds",
https://copr.fedorainfracloud.org/coprs/pgfed/nginx-mainline/build/1504166/
and shows available via dnf
dnf info nginx ... Name : nginx Version : 1.19.0 Release : git Architecture : src Size : 2.4 M Source : None Repository : copr:copr.fedorainfracloud.org:pgfed:nginx-mainline Summary : nginx URL : https://github.com/nginx/nginx License : BSD Description : Nginx WebServer
but note the
"Architecture : src"
which doesn't look right.
and,
attempt to install
dnf install nginx Last metadata expiration check: 0:03:25 ago on Thu 25 Jun 2020 02:26:36 PM PDT. Dependencies resolved. ============================================================================================================================= Package Architecture Version Repository Size ============================================================================================================================= Installing: nginx x86_64 1:1.18.0-1.fc32 updates 571 k Installing dependencies: fedora-logos-httpd noarch 30.0.2-4.fc32 fedora 16 k gperftools-libs x86_64 2.7-7.fc32 fedora 307 k nginx-mimetypes noarch 2.1.48-7.fc32 fedora 19 k Downgrading: nginx-filesystem noarch 1:1.18.0-1.fc32 updates 10 k
Transaction Summary ============================================================================================================================= Install 4 Packages Downgrade 1 Package
Total download size: 923 k Is this ok [y/N]:
_still_ tries to install the 1.18 version nginx from 'updates'
again, build & install _locally_ has no issues with either rpmbuild or mock build.