> On Wednesday, November 10, 2021, 02:47:17 PM CST, Artur Frenszek-Iwicki 
> <s...@fedoraproject.org> wrote: 
>> ./mkinstalldirs /usr/bin
>> make: ./mkinstalldirs: Permission denied
> This sounds like "mkinstalldirs" is not executable, perhaps a simple "chmod 
> +x mkinstalldirs" will be enough?

Thanks very much!

Ah!

So, I don't know if this is the right thing to  do, but I added the following 
in the spec file:


.....

%configure
%make_build

%install $RPM_BUILD_ROOT%{_bindir}
chmod +x mkinstalldirs

%{make_install}
%find_lang %{name}

%{?ldconfig_scriptlets}

%files
%defattr(-,root,root,-)
%doc ChangeLog README
%{_bindir}/%{name}
%license LICENSE

%clean
rm -rf %{buildroot}




However, I still get some errors. here is what I get:


....
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.fOH3ae
+ umask 022
+ cd /home/rpmbuild/BUILD
+ '[' /home/rpmbuild/BUILDROOT/gbuffy-0.2.6-1.fc35.x86_64 '!=' / ']'
+ rm -rf /home/rpmbuild/BUILDROOT/gbuffy-0.2.6-1.fc35.x86_64
++ dirname /home/rpmbuild/BUILDROOT/gbuffy-0.2.6-1.fc35.x86_64
+ mkdir -p /home/rpmbuild/BUILDROOT
+ mkdir /home/rpmbuild/BUILDROOT/gbuffy-0.2.6-1.fc35.x86_64
+ cd gbuffy-0.2.6
+ /home/rpmbuild/BUILDROOT/gbuffy-0.2.6-1.fc35.x86_64/usr/bin
/var/tmp/rpm-tmp.fOH3ae: line 36: 
/home/rpmbuild/BUILDROOT/gbuffy-0.2.6-1.fc35.x86_64/usr/bin: No such file or 
directory
error: Bad exit status from /var/tmp/rpm-tmp.fOH3ae (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.fOH3ae (%install)





Is the $RPM_BUILD_ROOT incorrect? What should it be then?

Thanks again!!
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@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/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to