Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909814 - www-apps/pleroma-2.5.2 build failure
Summary: www-apps/pleroma-2.5.2 build failure
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Haelwenn (lanodan) Monnier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-07 04:05 UTC by Matt Connell
Modified: 2023-07-11 06:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info output (emerge-info.txt,16.37 KB, text/plain)
2023-07-07 04:06 UTC, Matt Connell
Details
www-apps/pleroma full build log (pleroma-build.log,25.86 KB, text/plain)
2023-07-07 04:06 UTC, Matt Connell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Connell 2023-07-07 04:05:20 UTC
From the build log:

==> pleroma
Could not find "rebar3", which is needed to build dependency :eblurhash
I can install a local copy which is just used by Mix
Shall I install rebar3? (if running non-interactively, use "mix local.rebar --force") [Yn] ** (Mix) Could not find "rebar3" to compile dependency :eblurhash, please ensure "rebar3" is available
 * ERROR: www-apps/pleroma-2.5.2::guru failed (compile phase):
 *   mix release --overwrite --path pleroma failed
 * 
 * Call stack:
 *     ebuild.sh, line 136:  Called src_compile
 *   environment, line 585:  Called emix 'release' '--overwrite' '--path' 'pleroma'
 *   environment, line 480:  Called die
 * The specific snippet of code:
 *       MIX_ENV="${MIX_ENV}" mix "$@" || die -n "mix $@ failed"

---

But rebar3 is installed and available:

$ command -v rebar3
/usr/bin/rebar3

$ eix -e rebar
[I] dev-util/rebar
     Available versions:  
     (0)    2.6.4-r1
     (3)    3.19.0^t 3.20.0^t ~3.20.0-r1^t ~3.21.0^t
       {test}
     Installed versions:  3.20.0(3)^t(01:41:57 2023-07-07)(-test)
     Homepage:            https://www.rebar3.org https://github.com/erlang/rebar3
     Description:         A sophisticated build-tool for Erlang projects that follows OTP principles

---

$ emerge -pqv '=www-apps/pleroma-2.5.2::guru'
[ebuild  N    ] www-apps/pleroma-2.5.2 


Reproducible: Always

Steps to Reproduce:
1. emerge --ask www-apps/pleroma
Actual Results:  
Dependencies installed without issue, but the pleroma package itself failed to compile as noted above.


This is a new installation on this particular machine.

Dependencies were built successfully, including rebar and elixir.

postgresql required a USE flag change to enable uuid.
Comment 1 Matt Connell 2023-07-07 04:06:01 UTC
Created attachment 865214 [details]
emerge --info output
Comment 2 Matt Connell 2023-07-07 04:06:54 UTC
Created attachment 865215 [details]
www-apps/pleroma full build log
Comment 3 Viorel Munteanu gentoo-dev 2023-07-07 05:11:05 UTC
It fails to compile with dev-util/rebar-3.20.0

It compiles fine with dev-util/rebar-3.21.0
Comment 4 Matt Connell 2023-07-07 14:52:27 UTC
(In reply to Viorel Munteanu from comment #3)
> It fails to compile with dev-util/rebar-3.20.0
> 
> It compiles fine with dev-util/rebar-3.21.0

I can confirm that the pleroma does successfully build after upgrading rebar:3 to 3.21.0

The ebuild for pleroma should be updated to specify that version of rebar, unless I'm mistaken.
Comment 5 Haelwenn (lanodan) Monnier 2023-07-07 20:17:52 UTC
to be sure, could you also test with `=rebar-3.20.0-r1` ? Issue at hand should simply be `MIX_REBAR3` not being defined in env.d
Comment 6 Matt Connell 2023-07-08 01:49:20 UTC
(In reply to Haelwenn (lanodan) Monnier from comment #5)
> to be sure, could you also test with `=rebar-3.20.0-r1` ? Issue at hand
> should simply be `MIX_REBAR3` not being defined in env.d

Confirmed: pleroma does build without error using rebar-3.20.0-r1 as well as 3.21.0
Comment 7 Larry the Git Cow gentoo-dev 2023-07-11 06:15:46 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f3c776fefdc4838be7b251f62f9a4e090a7d4725

commit f3c776fefdc4838be7b251f62f9a4e090a7d4725
Author:     Haelwenn (lanodan) Monnier <contact@hacktivis.me>
AuthorDate: 2023-07-07 20:29:00 +0000
Commit:     Haelwenn (lanodan) Monnier <contact@hacktivis.me>
CommitDate: 2023-07-08 02:36:55 +0000

    www-apps/pleroma: Needs >=rebar-3.20.0-r1 for MIX_REBAR3
    
    Closes: https://bugs.gentoo.org/909814
    Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>

 www-apps/pleroma/pleroma-2.5.2.ebuild | 2 +-
 www-apps/pleroma/pleroma-9999.ebuild  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)