From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2D85A158164 for ; Sun, 17 Nov 2024 18:29:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A4AC9E0F69; Sun, 17 Nov 2024 18:29:19 +0000 (UTC) Received: from paraboletancza.org (paraboletancza.org [IPv6:2a01:4f8:1c1b:d2f8::]) by pigeon.gentoo.org (Postfix) with ESMTP id A252BE0F5D for ; Sun, 17 Nov 2024 18:29:18 +0000 (UTC) Received: from paraboletancza.org (unknown [IPv6:2a00:f41:5812:9793:2a19:6e2f:570c:1fd1]) by paraboletancza.org (Postfix) with ESMTPSA id ED47436981E for ; Sun, 17 Nov 2024 18:29:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paraboletancza.org; s=default; t=1731868158; bh=em+7DxJjB5b23FOmHjM3vkHEmwENcYEJPi+BvmkdH5A=; h=Date:From:To:Subject:References:In-Reply-To:From; b=n2tS+iuwh22SvWgb8vHVsoxlXWUtm91qUJmWxSvxDbDl22PAm1YrHRclJtqzrzIKa ZjZV7wflAW3TPcIki/cD/upz8uolwR9IyKe6lASbVejmEG5MCtTjX+Lt87gTIv6SWP sDj/e3s3GJApIzwf17vSk/MFLs8jc84mQ4JRMWkM= Date: Sun, 17 Nov 2024 19:29:17 +0100 From: whiteman808 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] src_install: dobin failed while merging ebuild Message-ID: <42nze2a5md6xk6wdwbs37dlpnlsaubvte43s52mqhkzrlvpyjj@lk3g43oi4fwg> References: <8495056.NyiUUSuA9g@rogueboard> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="rkifh65sdcfkp7pz" Content-Disposition: inline In-Reply-To: <8495056.NyiUUSuA9g@rogueboard> X-Archives-Salt: 4c7a3cf3-3b4c-4cce-be67-6fbb45f9352f X-Archives-Hash: 9e5f5630961427aae402488bccc46513 --rkifh65sdcfkp7pz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey, On 17 Nov 2024, 15:12:57, Michael wrote: > On Sunday 17 November 2024 14:37:53 GMT whiteman808 wrote: > > Hello, > >=20 > > On 17 Nov 2024, 17:55:38, Matt Jolly wrote: > > > Hi, > > >=20 > > > On 17/11/24 17:22, whiteman808 wrote: > > > > I need help with writing ebuild. Ebuild fails to merge. > > > > Necessary information is located in attachments. > > >=20 > > > I haven't actually built this, but if dobin is failing after this ste= p: > > > > cp $WORK/b001/exe/a.out goimapnotify > > >=20 > > > Where is goimapnotify actually being copied to? If you run > > > `ebuild foo-1.2.3.ebuild compile` and inspect ${S} (the workdir) > > > where is this file? > > >=20 > > > dobin is relative to ${S}; you probably just need to adjust that path. > > >=20 > > > Let me know how you go with those hints. > > >=20 > > > Cheers, > > >=20 > > > Matt > >=20 > > Merging as non-root user with FEATURES=3D"fakeroot" works. But sudo eme= rge > > goimapnotify fails with: > >=20 > > =1B[32m * =1B[39;49;00mPackage: net-mail/goimapnotify-2.4:0 > > =1B[32m * =1B[39;49;00mRepository: whiteman808 > > =1B[32m * =1B[39;49;00mMaintainer: whiteman808@paraboletancza.org > > =1B[32m * =1B[39;49;00mUSE: abi_x86_64 amd64 elibc_glibc kernel_= linux > > systemd =1B[32m * =1B[39;49;00mFEATURES: network-sandbox preserve-libs > > sandbox userpriv usersandbox > > >>> Unpacking source... > > >>> Unpacking goimapnotify-2.4.tar.bz2 to > > >>> /var/tmp/portage/net-mail/goimapnotify-2.4/work > > go mod verify > > go: github.com/emersion/go-imap@v1.2.1: Get > > "https://proxy.golang.org/github.com/emersion/go-imap/@v/v1.2.1.mod": d= ial > > tcp: lookup proxy.golang.org on [2a00:f41:5812:9793::ba]:53: dial udp > > [2a00:f41:5812:9793::ba]:53: connect: network is unreachable=20 >=20 > It looks like you have a network problem and in particular DNS resolution= (UDP=20 > port 53). >=20 I have a working ebuild after spending hours on learning Gentoo ebuild-spec= ific syntax. Not sure if it is normal if I haven't yet written any ebuilds from scratch.= This is my first ebuild that I wrote by hand. I will be thankful for a code review of the my ebuild in the attachment. Thank you, whiteman808. --rkifh65sdcfkp7pz Content-Type: application/vnd.gentoo.ebuild Content-Disposition: attachment; filename="goimapnotify-2.4.ebuild" Content-Transfer-Encoding: quoted-printable # Copyright 1999-2024 Gentoo Authors=0A# Distributed under the terms of the= GNU General Public License v2=0A=0AEAPI=3D8=0A=0Ainherit go-module systemd= =0A=0ADESCRIPTION=3D"Execute scripts on IMAP mailbox changes using IDLE, go= lang version."=0AHOMEPAGE=3D"https://gitlab.com/shackra/goimapnotify"=0A=0A= if [[ ${PV} =3D=3D 9999* ]]; then=0A inherit git-r3=0A EGIT_REPO_URI=3D"htt= ps://gitlab.com/shackra/goimapnotify.git"=0Aelse=0A SRC_URI=3D"https://gitl= ab.com/shackra/goimapnotify/-/archive/${PV}/${P}.tar.bz2"=0A SRC_URI+=3D" h= ttps://git.paraboletancza.org/whiteman808/gentoo-distfiles/raw/branch/main/= ${P}-deps.tar.xz"=0A KEYWORDS=3D"~amd64"=0Afi=0A=0ALICENSE=3D"GPL-3+"=0ASLO= T=3D"0"=0A=0AIUSE=3D"systemd"=0ARESTRICT=3D"test strip"=0ADEPEND=3D"dev-lan= g/go"=0ABDEPEND=3D"${DEPEND}"=0ARDEPEND=3D"systemd? ( sys-apps/systemd )"= =0A=0Asrc_unpack() {=0A if [[ ${PV} =3D=3D 9999* ]]; then=0A git-r3_src_un= pack=0A git-r3_checkout=0A go-module_live_vendor=0A else=0A go-module_sr= c_unpack=0A fi=0A}=0A=0Asrc_compile() {=0A ego build=0A}=0A=0Asrc_install()= {=0A dobin "${PN}"=0A systemd_douserunit "${FILESDIR}"/goimapnotify@.servi= ce=0A}=0A --rkifh65sdcfkp7pz Content-Type: application/vnd.gentoo.ebuild Content-Disposition: attachment; filename="goimapnotify-9999.ebuild" Content-Transfer-Encoding: quoted-printable # Copyright 1999-2024 Gentoo Authors=0A# Distributed under the terms of the= GNU General Public License v2=0A=0AEAPI=3D8=0A=0Ainherit go-module systemd= =0A=0ADESCRIPTION=3D"Execute scripts on IMAP mailbox changes using IDLE, go= lang version."=0AHOMEPAGE=3D"https://gitlab.com/shackra/goimapnotify"=0A=0A= if [[ ${PV} =3D=3D 9999* ]]; then=0A inherit git-r3=0A EGIT_REPO_URI=3D"htt= ps://gitlab.com/shackra/goimapnotify.git"=0Aelse=0A SRC_URI=3D"https://gitl= ab.com/shackra/goimapnotify/-/archive/${PV}/${P}.tar.bz2"=0A SRC_URI+=3D" h= ttps://git.paraboletancza.org/whiteman808/gentoo-distfiles/raw/branch/main/= ${P}-deps.tar.xz"=0A KEYWORDS=3D"~amd64"=0Afi=0A=0ALICENSE=3D"GPL-3+"=0ASLO= T=3D"0"=0A=0AIUSE=3D"systemd"=0ARESTRICT=3D"test strip"=0ADEPEND=3D"dev-lan= g/go"=0ABDEPEND=3D"${DEPEND}"=0ARDEPEND=3D"systemd? ( sys-apps/systemd )"= =0A=0Asrc_unpack() {=0A if [[ ${PV} =3D=3D 9999* ]]; then=0A git-r3_src_un= pack=0A git-r3_checkout=0A go-module_live_vendor=0A else=0A go-module_sr= c_unpack=0A fi=0A}=0A=0Asrc_compile() {=0A ego build=0A}=0A=0Asrc_install()= {=0A dobin "${PN}"=0A systemd_douserunit "${FILESDIR}"/goimapnotify@.servi= ce=0A}=0A --rkifh65sdcfkp7pz Content-Type: text/xml; charset=us-ascii Content-Disposition: attachment; filename="metadata.xml" whiteman808@paraboletancza.org whiteman808 shackra/goimapnotify --rkifh65sdcfkp7pz--