Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] ebuild failing to handle redirects
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 130
Location: Lithuania

PostPosted: Tue Aug 31, 2021 9:17 pm    Post subject: [SOLVED] ebuild failing to handle redirects Reply with quote

Hey, I'm trying to add the sc-im ebuild to my overlay, but when I try to generate the manifest, it fails, why?

ebuild (sc-im-0.8.2.ebuild):
Code:

EAPI=6

inherit toolchain-funcs

if [[ ${PV} == 9999 ]]; then
   inherit git-r3
   EGIT_REPO_URI="https://github.com/andmarti1424/sc-im.git"
   EGIT_CHECKOUT_DIR="${WORKDIR}/${P}"
   EGIT_BRANCH="freeze"
   SRC_URI=""
   KEYWORDS=""
   S="${WORKDIR}/${P}"
else
   SRC_URI="https://github.com/andmarti1424/sc-im/archive/v${PV}.tar.gz"
   KEYWORDS="~amd64 ~x86"
   S="${WORKDIR}/${P}"
fi

DESCRIPTION="Spreadsheet Calculator Improvised"
HOMEPAGE="https://github.com/andmarti1424/sc-im"

SLOT="0"
LICENSE="BSD"
IUSE="docs lua gnuplot xls tmux xclip"
KEYWORDS="amd64 ppc sparc x86"

COMMON_DEPEND="
>=sys-libs/ncurses-5.2
"
DEPEND="
virtual/pkgconfig
"
RDEPEND="
${COMMON_DEPEND}
docs? ( app-doc/doxygen )
lua? ( dev-lang/lua )
gnuplot? ( sci-visualization/gnuplot )
xls? ( dev-libs/libxls dev-libs/libxlsxwriter dev-libs/libxml2 dev-libs/libzip )
tmux? ( app-misc/tmux )
xclip? ( x11-misc/xclip )
"

src_prepare() {
   default
   cd "${S}"/src
   sed -i "s|/usr/local|/usr|g" Makefile || die "Failed to set prefix in Makefile"

   if use gnuplot; then
      echo "Building with gnuplot support"
   else
      sed -i "/-DGNUPLOT/d" Makefile || die "Failed to disable GNUPLOT in Makefile"
   fi

   if use xls; then
      echo "Building with XLS write support"
   else
      sed -i "/-DXLSX/d" Makefile &&
         sed -i "/-lxlsxwriter/d" Makefile &&
         sed -i "/libs libxml-2.0 libzip/d" Makefile || die "Failed to disable XLS write support in Makefile"
   fi

   if use xclip; then
      sed -i 's/"tmux load-buffer"/"xclip -i -selection clipboard <"/g' Makefile &&
         sed -i 's/"tmux show-buffer"/"xclip -o -selection clipboard"/g' Makefile ||
         die "Failed to set xclip support in Makefile"
   fi


   eapply_user
}

src_compile() {
   cd "${S}"/src
   tc-export PKG_CONFIG
   # no autoconf
   emake prefix="${D}"/usr
}

src_install() {
   cd "${S}"/src
   dodir /usr/bin
   dodir /usr/$(get_libdir)/sc-im
   dodir /usr/share/man/man1

   emake DESTDIR="${D}" install

   doman sc-im.1
}


error:
Code:

ebuild sc-im-0.8.2.ebuild manifest
Appending /home/ari/Ari/coding/resources_/dinolay to PORTDIR_OVERLAY...
!!! No write access to '/var/cache/distfiles'
!!! No write access to '/var/cache/distfiles'
!!! File .layout.conf.mirror.aarnet.edu.au isn't fetched but unable to get it.
!!! File v0.8.2.tar.gz isn't fetched but unable to get it.
!!! Fetch failed for v0.8.2.tar.gz, can't update Manifest



gentoo.conf:
Code:

[DEFAULT]
main-repo = gentoo

[gentoo]
location = /var/db/repos/gentoo
sync-type = git
sync-uri = git://anongit.gentoo.org/repo/sync/gentoo.git
auto-sync = yes
sync-depth = 1
sync-rsync-verify-jobs = 1
sync-git-verify-commit-signature = true
sync-rsync-verify-metamanifest = yes
sync-rsync-verify-max-age = 24
sync-openpgp-key-path = /usr/share/openpgp-keys/gentoo-release.asc
sync-openpgp-keyserver = hkps://keys.gentoo.org
sync-openpgp-key-refresh-retry-count = 40
sync-openpgp-key-refresh-retry-overall-timeout = 1200
sync-openpgp-key-refresh-retry-delay-exp-base = 2
sync-openpgp-key-refresh-retry-delay-max = 60
sync-openpgp-key-refresh-retry-delay-mult = 4
sync-webrsync-verify-signature = yes


when I go to the domain manually, it works, wget works too, only this fails, why?



UPDATE:
I just needed to add myself to the portage group....

Just do this if you expierience the same problem:
Code:

sudo usermod -a -G portage $USER


replace $USER with your username
_________________
regards,
ari


Last edited by Ari_archer on Sun Sep 12, 2021 3:51 pm; edited 4 times in total
Back to top
View user's profile Send private message
cboldt
Veteran
Veteran


Joined: 24 Aug 2005
Posts: 1046

PostPosted: Tue Aug 31, 2021 10:08 pm    Post subject: Reply with quote

Looks to me that you are not running the 'emerge *ebuild digest ` command as root, and as a regular user, you have not the permisison to write to the pertinent directories.

Code:
No write access to '/var/cache/distfiles'
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 130
Location: Lithuania

PostPosted: Tue Aug 31, 2021 10:18 pm    Post subject: Reply with quote

cboldt wrote:
Looks to me that you are not running the 'emerge *ebuild digest ` command as root, and as a regular user, you have not the permisison to write to the pertinent directories.

Code:
No write access to '/var/cache/distfiles'


I did try that, all I get is
Code:

 *   error sourcing ebuild
 *
 * Call stack:
 *   ebuild.sh, line 645:  Called die
 * The specific snippet of code:
 *              source "$EBUILD" || die "error sourcing ebuild"
 *
 * If you need support, post the output of `emerge --info '=x11-misc/bdwmb-1.0::dinolay'`,
 * the complete build log and the output of `emerge -pqv '=x11-misc/bdwmb-1.0::dinolay'`.
 * Working directory: '/usr/lib/python3.9/site-packages'
 * S: '/tmp/portage/x11-misc/bdwmb-1.0/work/bdwmb-1.0'


as a normal user it works for me on other ebuilds, but just not on this one for some very odd[/quote] reason (this is another ebuild)
_________________
regards,
ari
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 130
Location: Lithuania

PostPosted: Tue Aug 31, 2021 10:31 pm    Post subject: an example of a working ebuild Reply with quote

an example of a working ebuild:

Code:

EAPI=7

DESCRIPTION="A Fast, Easy and Free BitTorrent client - command line (CLI) version"
HOMEPAGE="http://www.transmissionbt.com/"
MY_PN="transmission"
MY_P="${MY_PN}-${PV}"
LICENSE="|| ( GPL-2 GPL-3 Transmission-OpenSSL-exception ) GPL-2 MIT"

SRC_URI="https://github.com/transmission/transmission-releases/raw/master/${MY_P}.tar.xz"

KEYWORDS="~amd64 -arm -mips -ppc -ppc64 -x86 ~amd64-linux"
IUSE=""

RDEPEND="
   dev-libs/libevent:=
   net-misc/curl[ssl]
   sys-libs/zlib:=
"
DEPEND="${RDEPEND}
   dev-libs/glib
   dev-util/intltool
   sys-devel/gettext
   virtual/os-headers
   virtual/pkgconfig
"

SLOT=0

S="${WORKDIR}/${MY_P}"

src_configure() {
   econfargs+=(
      --enable-cli
      --disable-daemon
      --without-gtk
      --without-systemd-daemon
   )
   econf "${econfargs[@]}"
}

src_install() {
   dobin cli/transmission-cli
   doman cli/transmission-cli.1
}


_________________
regards,
ari
Back to top
View user's profile Send private message
cboldt
Veteran
Veteran


Joined: 24 Aug 2005
Posts: 1046

PostPosted: Tue Aug 31, 2021 10:42 pm    Post subject: Reply with quote

What are the permissions on the ebuild file? It does seem weird that portage/ebuild says it can't read the file.
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 130
Location: Lithuania

PostPosted: Tue Aug 31, 2021 10:44 pm    Post subject: Reply with quote

cboldt wrote:
What are the permissions on the ebuild file? It does seem weird that portage/ebuild says it can't read the file.


I know what the issue is now, ebuilds can't handle redirects, which is bad, that's why it's failing, the ebuild is fine, but the redirect is killing it:

Code:

 !!! File v0.8.2.tar.gz isn't fetched but unable to get it.


Can you have an ebuild with no manifests? if yes, how? i can't find it anywhere and it would be a fix kind of
_________________
regards,
ari
Back to top
View user's profile Send private message
cboldt
Veteran
Veteran


Joined: 24 Aug 2005
Posts: 1046

PostPosted: Tue Aug 31, 2021 10:57 pm    Post subject: Reply with quote

Manifest is necessary, but I see another issue. The ebuild is trying to fetch "v0.8.2.tar.gz" not "sc-im-0.8.2.tar.gz"

Code:
RC_URI="https://github.com/andmarti1424/sc-im/archive/v${PV}.tar.gz"


Change to "${PF}.tar.gz" and see what happens ....
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 130
Location: Lithuania

PostPosted: Tue Aug 31, 2021 11:04 pm    Post subject: Reply with quote

cboldt wrote:
Manifest is necessary, but I see another issue. The ebuild is trying to fetch "v0.8.2.tar.gz" not "sc-im-0.8.2.tar.gz"

Code:
RC_URI="https://github.com/andmarti1424/sc-im/archive/v${PV}.tar.gz"


Change to "${PF}.tar.gz" and see what happens ....


Doesn't work and it's supposed to fetch v0.8.2.tar,gz
_________________
regards,
ari
Back to top
View user's profile Send private message
cboldt
Veteran
Veteran


Joined: 24 Aug 2005
Posts: 1046

PostPosted: Tue Aug 31, 2021 11:20 pm    Post subject: Reply with quote

Hang on ... I went to the archive, and the download is indeed named "v0.8.2.tar.gz"

https://github.com/andmarti1424/sc-im/archive/refs/tags/v0.8.2.tar.gz <- correct

But the ebuild digest command maybe wants to work with a different file name? I think not.

I don't know exactly how to handle this filename difference, or if it is automatic. I think most of it is automatic working from $SRC_URI. We're back to wondering why you can't write the file to the var/cache/distfile directory.

Edit to add - notice carefully the URL that I say works for me. It is different from the SRC_URI in your ebuild.
Edit to edit - either URL works for me.
Back to top
View user's profile Send private message
cboldt
Veteran
Veteran


Joined: 24 Aug 2005
Posts: 1046

PostPosted: Tue Aug 31, 2021 11:31 pm    Post subject: Reply with quote

I copied your ebuild directly to my "local" repository ...

It works fine, or at least it makes a manifest just fine, for me.

Directory: /var/db/repos/local/app-office/sc-im

Code:
root@hypoid-t450 [8] 28 /var/db/repos/local/app-office/sc-im # ls -l /var/db/repos/local/app-office/sc-im
total 8
-rw-r--r-- 1 root root  604 Aug 31 19:29 Manifest
-rw-r--r-- 1 root root 2007 Aug 31 19:28 sc-im-0.8.2.ebuild


Edit to add that it built fine and runs too.

Just check location (use "reponame/category/package/package-version.ebuild" directory structure, by example I used
/var/db/repos/local/app-office/sc-im/sc-im-0.8.2.ebuild

Anyway, nothing wrong with the ebuild. It works.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22913

PostPosted: Wed Sep 01, 2021 1:35 am    Post subject: Reply with quote

Ari_archer wrote:
I did try that, all I get is
Code:
 *   error sourcing ebuild
Please show the exact command you ran to get that output. Additionally, show the output of namei -l /full/path/to/ebuild.
Ari_archer wrote:
I know what the issue is now, ebuilds can't handle redirects, which is bad, that's why it's failing, the ebuild is fine, but the redirect is killing it:
What led you to this conclusion? The error you quoted below does not say anything about redirections.
Ari_archer wrote:
Can you have an ebuild with no manifests? if yes, how? i can't find it anywhere and it would be a fix kind of
It would be a workaround, and a bad one. As far as I know, this is not supported.
Ari_archer wrote:
Doesn't work and it's supposed to fetch v0.8.2.tar,gz
That may be the filename on the server, but I recommend against saving it as that name in the distfiles directory. Other projects may also have a v0.8.2 that is shipped as a tar.gz. You should have the ebuild rename the downloaded file to include the program's name.
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 130
Location: Lithuania

PostPosted: Thu Sep 02, 2021 9:12 am    Post subject: Reply with quote

Hu wrote:
Ari_archer wrote:
I did try that, all I get is
Code:
 *   error sourcing ebuild
Please show the exact command you ran to get that output. Additionally, show the output of namei -l /full/path/to/ebuild.
Ari_archer wrote:
I know what the issue is now, ebuilds can't handle redirects, which is bad, that's why it's failing, the ebuild is fine, but the redirect is killing it:
What led you to this conclusion? The error you quoted below does not say anything about redirections.
Ari_archer wrote:
Can you have an ebuild with no manifests? if yes, how? i can't find it anywhere and it would be a fix kind of
It would be a workaround, and a bad one. As far as I know, this is not supported.
Ari_archer wrote:
Doesn't work and it's supposed to fetch v0.8.2.tar,gz
That may be the filename on the server, but I recommend against saving it as that name in the distfiles directory. Other projects may also have a v0.8.2 that is shipped as a tar.gz. You should have the ebuild rename the downloaded file to include the program's name.


sorry i gave up already, i don't need it anymore haha, but

1. -
2. Github redirects things and when it's not raw content it fails the working ebuild has no redorection as it's raw and my ebuild has redirections
3. yeah, i guess
3. I tried it, it did not work
_________________
regards,
ari
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Thu Sep 02, 2021 1:59 pm    Post subject: Reply with quote

Why didn't you comply with?:
Hu wrote:
Please show the exact command you ran to get that output. Additionally, show the output of namei -l /full/path/to/ebuild.

You give up too easily. Persistence is the hallmark of successful programmers.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22913

PostPosted: Thu Sep 02, 2021 4:15 pm    Post subject: Reply with quote

Github's redirections should be predictable. If the ebuild cannot tolerate a redirect, then you need to give the canonical SRC_URI. I thought that Portage would by default invoke wget in a way that allowed redirections. What are you seeing that led you to think that redirections are the reason for the failure?
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 130
Location: Lithuania

PostPosted: Wed Sep 08, 2021 9:02 pm    Post subject: Reply with quote

Tony0945 wrote:
Why didn't you comply with?:
Hu wrote:
Please show the exact command you ran to get that output. Additionally, show the output of namei -l /full/path/to/ebuild.

You give up too easily. Persistence is the hallmark of successful programmers.


1. this doesn't help
2. Because the command is in the post ( ebuild sc-im-0.8.2.ebuild manifest ), it's not a permission issue and I already gave up
3. ok
4. ok
_________________
regards,
ari
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 130
Location: Lithuania

PostPosted: Wed Sep 08, 2021 9:04 pm    Post subject: Reply with quote

Hu wrote:
Github's redirections should be predictable. If the ebuild cannot tolerate a redirect, then you need to give the canonical SRC_URI. I thought that Portage would by default invoke wget in a way that allowed redirections. What are you seeing that led you to think that redirections are the reason for the failure?


Because everytime I use a URL with any redirect - it fails
_________________
regards,
ari
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Thu Sep 09, 2021 1:20 am    Post subject: Reply with quote

@Ari_archer
It's your life, son. we have an old expression here in the USA, "You can lead a horse to water, but you can't make him drink."
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22913

PostPosted: Thu Sep 09, 2021 1:57 am    Post subject: Reply with quote

Ari_archer wrote:
Hu wrote:
What are you seeing that led you to think that redirections are the reason for the failure?
Because everytime I use a URL with any redirect - it fails
I've never seen that as an error message. As I wrote above, What are you seeing? A summary doesn't help us. Actual output from the failed command might.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3978

PostPosted: Thu Sep 09, 2021 5:58 am    Post subject: Reply with quote

Ari_archer,

Welcome to gentoo,

original ebuild working fine here:
Code:
ebuild sc-im-0.8.2.ebuild digest
>>> Downloading 'http://ftp.free.fr/mirrors/ftp.gentoo.org/distfiles/1b/v0.8.2.tar.gz'
--2021-09-09 07:14:28--  http://ftp.free.fr/mirrors/ftp.gentoo.org/distfiles/1b/v0.8.2.tar.gz
Resolving ftp.free.fr... 212.27.60.27
Connecting to ftp.free.fr|212.27.60.27|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2021-09-09 07:14:28 ERROR 404: Not Found.

>>> Downloading 'https://mirrors.evowise.com/gentoo/distfiles/layout.conf'
--2021-09-09 07:14:28--  https://mirrors.evowise.com/gentoo/distfiles/layout.conf
Resolving mirrors.evowise.com... 104.18.27.170, 104.18.26.170
Connecting to mirrors.evowise.com|104.18.27.170|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://www.zerobounce.net [following]
--2021-09-09 07:14:29--  https://www.zerobounce.net/
Resolving www.zerobounce.net... 104.17.97.61, 104.17.98.61
Connecting to www.zerobounce.net|104.17.97.61|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 615092 (601K) [text/html]
Saving to: '/var/cache/distfiles/.layout.conf.mirrors.evowise.com.__download__'

/var/cache/distfile 100%[=================>] 600.68K   934KB/s    in 0.6s   

2021-09-09 07:14:30 (934 KB/s) - '/var/cache/distfiles/.layout.conf.mirrors.evowise.com.__download__' saved [615092/615092]

>>> Downloading 'https://mirrors.evowise.com/gentoo/distfiles/v0.8.2.tar.gz'
--2021-09-09 07:14:31--  https://mirrors.evowise.com/gentoo/distfiles/v0.8.2.tar.gz
Resolving mirrors.evowise.com... 104.18.27.170, 104.18.26.170
Connecting to mirrors.evowise.com|104.18.27.170|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://www.zerobounce.net [following]
--2021-09-09 07:14:31--  https://www.zerobounce.net/
Resolving www.zerobounce.net... 104.17.98.61, 104.17.97.61
Connecting to www.zerobounce.net|104.17.98.61|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 615092 (601K) [text/html]
Saving to: '/var/cache/distfiles/v0.8.2.tar.gz.__download__'

/var/cache/distfile 100%[=================>] 600.68K   936KB/s    in 0.6s   

2021-09-09 07:14:32 (936 KB/s) - '/var/cache/distfiles/v0.8.2.tar.gz.__download__' saved [615092/615092]

>>> Creating Manifest for /var/db/repos/local-repo/x11-apps/sc-im
Code:
emerge --info | grep 'FEATURES\|PORTAGE'
 * Failed to change nice value to '-10'
 * [Errno 1] Operation not permitted

FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
PORTAGE_COMPRESS="lzma"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS
My 2€ents:
1) Have you located your ebuild in directory in a sub-category, e.g. x11-apps/<package-name>/

2) Giving up may expose you in the future to harder to understand official package issues, such as the ones which sources are pulling git by themselves, possibly using indirection.

Gentoo beginner learning has been stiff here, tenacity has been a key point here.

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 130
Location: Lithuania

PostPosted: Sat Sep 11, 2021 10:42 am    Post subject: Reply with quote

CaptainBlood wrote:
Ari_archer,

Welcome to gentoo,

original ebuild working fine here:
Code:
ebuild sc-im-0.8.2.ebuild digest
>>> Downloading 'http://ftp.free.fr/mirrors/ftp.gentoo.org/distfiles/1b/v0.8.2.tar.gz'
--2021-09-09 07:14:28--  http://ftp.free.fr/mirrors/ftp.gentoo.org/distfiles/1b/v0.8.2.tar.gz
Resolving ftp.free.fr... 212.27.60.27
Connecting to ftp.free.fr|212.27.60.27|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2021-09-09 07:14:28 ERROR 404: Not Found.

>>> Downloading 'https://mirrors.evowise.com/gentoo/distfiles/layout.conf'
--2021-09-09 07:14:28--  https://mirrors.evowise.com/gentoo/distfiles/layout.conf
Resolving mirrors.evowise.com... 104.18.27.170, 104.18.26.170
Connecting to mirrors.evowise.com|104.18.27.170|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://www.zerobounce.net [following]
--2021-09-09 07:14:29--  https://www.zerobounce.net/
Resolving www.zerobounce.net... 104.17.97.61, 104.17.98.61
Connecting to www.zerobounce.net|104.17.97.61|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 615092 (601K) [text/html]
Saving to: '/var/cache/distfiles/.layout.conf.mirrors.evowise.com.__download__'

/var/cache/distfile 100%[=================>] 600.68K   934KB/s    in 0.6s   

2021-09-09 07:14:30 (934 KB/s) - '/var/cache/distfiles/.layout.conf.mirrors.evowise.com.__download__' saved [615092/615092]

>>> Downloading 'https://mirrors.evowise.com/gentoo/distfiles/v0.8.2.tar.gz'
--2021-09-09 07:14:31--  https://mirrors.evowise.com/gentoo/distfiles/v0.8.2.tar.gz
Resolving mirrors.evowise.com... 104.18.27.170, 104.18.26.170
Connecting to mirrors.evowise.com|104.18.27.170|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://www.zerobounce.net [following]
--2021-09-09 07:14:31--  https://www.zerobounce.net/
Resolving www.zerobounce.net... 104.17.98.61, 104.17.97.61
Connecting to www.zerobounce.net|104.17.98.61|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 615092 (601K) [text/html]
Saving to: '/var/cache/distfiles/v0.8.2.tar.gz.__download__'

/var/cache/distfile 100%[=================>] 600.68K   936KB/s    in 0.6s   

2021-09-09 07:14:32 (936 KB/s) - '/var/cache/distfiles/v0.8.2.tar.gz.__download__' saved [615092/615092]

>>> Creating Manifest for /var/db/repos/local-repo/x11-apps/sc-im
Code:
emerge --info | grep 'FEATURES\|PORTAGE'
 * Failed to change nice value to '-10'
 * [Errno 1] Operation not permitted

FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
PORTAGE_COMPRESS="lzma"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS
My 2€ents:
1) Have you located your ebuild in directory in a sub-category, e.g. x11-apps/<package-name>/

2) Giving up may expose you in the future to harder to understand official package issues, such as the ones which sources are pulling git by themselves, possibly using indirection.

Gentoo beginner learning has been stiff here, tenacity has been a key point here.

Thks 4 ur attention, interest & support.


1. yep (app-office/sc-im)
2. yeah I know
3. I will try try again.


fails to create the manifest (digest too):
Code:

$ ebuild sc-im-0.8.2.ebuild manifest
Appending /home/ari/Ari/coding/resources_/dinolay to PORTDIR_OVERLAY...
!!! No write access to '/var/cache/distfiles'
!!! No write access to '/var/cache/distfiles'
!!! File .layout.conf.mirror.aarnet.edu.au isn't fetched but unable to get it.
!!! File v0.8.2.tar.gz isn't fetched but unable to get it.
!!! Fetch failed for v0.8.2.tar.gz, can't update Manifest


permissions:
Code:

$ la sc-im-0.8.2.ebuild
.rw-r--r-- ari ari 1.9 KB Sat Sep 11 13:37:30 2021   sc-im-0.8.2.ebuild

$ namei -l sc-im-0.8.2.ebuild
f: sc-im-0.8.2.ebuild
-rw-r--r-- ari ari sc-im-0.8.2.ebuild


emerge info (emerge --info | grep 'FEATURES\|PORTAGE'):
https://pastebin.com/j9p26Vzc

the ebuild is the same as from the post.
_________________
regards,
ari


Last edited by Ari_archer on Sat Sep 11, 2021 10:50 am; edited 1 time in total
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 130
Location: Lithuania

PostPosted: Sat Sep 11, 2021 10:48 am    Post subject: Reply with quote

Hu wrote:
Ari_archer wrote:
Hu wrote:
What are you seeing that led you to think that redirections are the reason for the failure?
Because everytime I use a URL with any redirect - it fails
I've never seen that as an error message. As I wrote above, What are you seeing? A summary doesn't help us. Actual output from the failed command might.


Code:

ari@ari-gentoo (main) sc-im % ebuild sc-im-0.8.2.ebuild manifest
Appending /home/ari/Ari/coding/resources_/dinolay to PORTDIR_OVERLAY...
!!! No write access to '/var/cache/distfiles'
!!! No write access to '/var/cache/distfiles'
!!! File .layout.conf.mirror.aarnet.edu.au isn't fetched but unable to get it.
!!! File v0.8.2.tar.gz isn't fetched but unable to get it.
!!! Fetch failed for v0.8.2.tar.gz, can't update Manifest

ari@ari-gentoo (main) sc-im 1 % sudo ebuild sc-im-0.8.2.ebuild manifest
Password:
Sorry, try again.
Password:
Appending /home/ari/Ari/coding/resources_/dinolay to PORTDIR_OVERLAY...
/usr/lib/portage/python3.9/ebuild.sh: line 645: /home/ari/Ari/coding/resources_/dinolay/app-office/sc-im/sc-im-0.8.2.ebuild: Permission denied
 * ERROR: app-office/sc-im-0.8.2::dinolay failed (depend phase):
 *   error sourcing ebuild
 *
 * Call stack:
 *   ebuild.sh, line 645:  Called die
 * The specific snippet of code:
 *              source "$EBUILD" || die "error sourcing ebuild"
 *
 * If you need support, post the output of `emerge --info '=app-office/sc-im-0.8.2::dinolay'`,
 * the complete build log and the output of `emerge -pqv '=app-office/sc-im-0.8.2::dinolay'`.
 * Working directory: '/usr/lib/python3.9/site-packages'
 * S: '/tmp/portage/app-office/sc-im-0.8.2/work/sc-im-0.8.2'

_________________
regards,
ari
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 130
Location: Lithuania

PostPosted: Sat Sep 11, 2021 10:49 am    Post subject: Reply with quote

Tony0945 wrote:
@Ari_archer
It's your life, son. we have an old expression here in the USA, "You can lead a horse to water, but you can't make him drink."


sorry, I will try to resolve this again
_________________
regards,
ari
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 130
Location: Lithuania

PostPosted: Sat Sep 11, 2021 3:31 pm    Post subject: Reply with quote

Ari_archer wrote:
Tony0945 wrote:
@Ari_archer
It's your life, son. we have an old expression here in the USA, "You can lead a horse to water, but you can't make him drink."


sorry, I will try to resolve this again


Wasn't able to do it, I keep getting the same error over and over again
_________________
regards,
ari
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Sat Sep 11, 2021 4:49 pm    Post subject: Reply with quote

Try "sudo ebuild ...". i always run ebuild and emerge as root.
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 130
Location: Lithuania

PostPosted: Sat Sep 11, 2021 6:36 pm    Post subject: Reply with quote

Tony0945 wrote:
Try "sudo ebuild ...". i always run ebuild and emerge as root.


I did

Code:

$ sudo ebuild sc-im-0.8.2.ebuild manifest
Password:
Sorry, try again.
Password:
Appending /home/ari/Ari/coding/resources_/dinolay to PORTDIR_OVERLAY...
/usr/lib/portage/python3.9/ebuild.sh: line 645: /home/ari/Ari/coding/resources_/dinolay/app-office/sc-im/sc-im-0.8.2.ebuild: Permission denied
 * ERROR: app-office/sc-im-0.8.2::dinolay failed (depend phase):
 *   error sourcing ebuild
 *
 * Call stack:
 *   ebuild.sh, line 645:  Called die
 * The specific snippet of code:
 *              source "$EBUILD" || die "error sourcing ebuild"
 *
 * If you need support, post the output of `emerge --info '=app-office/sc-im-0.8.2::dinolay'`,
 * the complete build log and the output of `emerge -pqv '=app-office/sc-im-0.8.2::dinolay'`.
 * Working directory: '/usr/lib/python3.9/site-packages'
 * S: '/tmp/portage/app-office/sc-im-0.8.2/work/sc-im-0.8.2'

_________________
regards,
ari
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
Goto page 1, 2  Next
Page 1 of 2

 
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