View previous topic :: View next topic |
Author |
Message |
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6656 Location: The soundosphere
|
Posted: Fri Feb 03, 2023 12:12 am Post subject: ebuild has no permission to write to /usr/local/bin |
|
|
Been working on bringing an older ebuild up to snuff. Currently, it fails because it has no permission to write to /usr/local/bin. How do I fix that?
Code: |
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Audio file utility programs"
HOMEPAGE="https://www-mmsp.ece.mcgill.ca/Documents/Downloads/AFsp/index.html"
SRC_URI="https://gentoostudio.org/src/pkgs/${P}.tar.gz"
LICENSE="AFsp"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
RDEPEND=""
DEPEND="${RDEPEND}"
S="${WORKDIR}/AFsp-v10r4a"
src_compile() {
# Yes, the -j1 is necessary, compile fails otherwise.
emake -j1
}
src_install() {
rm -r "${S}"/bin/{Cygwin,Linux} || die
emake DESTDIR=${D} install
dodoc Notes.txt README.txt
}
|
_________________ decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 2002
|
Posted: Fri Feb 03, 2023 12:18 am Post subject: |
|
|
Patch the Makefile to respect DESTDIR and, optionally, drop local from the prefix. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|