Re: spec file error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 10, 2021 at 08:46:35PM -0000, Artur Frenszek-Iwicki wrote:
./mkinstalldirs /usr/bin
make: ./mkinstalldirs: Permission denied
This sounds like "mkinstalldirs" is not executable, perhaps a simple "chmod +x mkinstalldirs" will be enough?

It looks like the install target in Makefile.in in the source does not
honor DESTDIR.  Here's what Makefile.in looks like in the source:

install: gbuffy
        ./mkinstalldirs $(bindir)
        $(INSTALL) gbuffy $(bindir)

It's not using $(DESTDIR) anywhere, so the permission denied is that
it's failing to create /usr/bin

This is common practice in older projects.  You have a couple of options:

1) Patch Makefile.in to honor DESTDIR.  Make the install target look
like this:

install: gbuffy
        ./mkinstalldirs $(DESTDIR)$(bindir)
        $(INSTALL) gbuffy $(DESTDIR)$(bindir)

2) Try the older %makeinstall macro in %install in the spec file,
which drives over bindir and other typical path variables for
installation.  That _may_ work.

3) Just install by hand.  The install target is only installing the
executable and you likely also want to install the man page and
possibly an example config file, so you need install lines for those
anyway in the %install target.

--
David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat, Inc. | Boston, MA | EST5EDT
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux