Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ebuild has no permission to write to /usr/local/bin
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Fri Feb 03, 2023 12:12 am    Post subject: ebuild has no permission to write to /usr/local/bin Reply with quote

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
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 2002

PostPosted: Fri Feb 03, 2023 12:18 am    Post subject: Reply with quote

Patch the Makefile to respect DESTDIR and, optionally, drop local from the prefix.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
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