Package Details: mastodon 4.2.8-1

Git Clone URL: https://aur.archlinux.org/mastodon.git (read-only, click to copy)
Package Base: mastodon
Description: Your self-hosted, globally interconnected microblogging community
Upstream URL: https://github.com/mastodon/mastodon
Keywords: activitypub fediverse mastodon server
Licenses: AGPL3
Submitter: flacks
Maintainer: dodecahedron
Last Packager: dodecahedron
Votes: 20
Popularity: 0.98
First Submitted: 2018-06-19 19:35 (UTC)
Last Updated: 2024-02-23 15:26 (UTC)

Latest Comments

« First ‹ Previous 1 .. 3 4 5 6 7 8

hhirtz commented on 2019-03-04 22:17 (UTC)

Gemfile.lock should not be removed: https://github.com/tootsuite/mastodon/issues/8983#issuecomment-437533243

diff --git a/PKGBUILD b/PKGBUILD
index 8eb9f76..f47195d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -38,10 +38,9 @@ sha512sums=('1829f16a5f98d1815168c8ecfd80b75bb3489e7b3e5eb06a858b0d35bdecc5a4542

 build() {
   cd mastodon-$pkgver
-  rm Gemfile.lock
-  bundle lock --update
-  bundle install --deployment --without development test
+  sed -i "s/1.17.3/$(bundle --version | cut -d' ' -f3)/g" Gemfile.lock
+  bundle install -j$(getconf _NPROCESSORS_ONLN) --deployment --without development test
   yarn config set ignore-engines true
   yarn install --pure-lockfile
 }

fbrennan commented on 2018-12-20 00:41 (UTC)

I'm not interested in fixing the namcap errors. Most of them are wrong anyway - namcap can't tell, but yes ffmpeg and magick are both used. Others would require that each Node module and Ruby gem be itself individually packaged and required instead of downloaded and built. Just by the nature of Node versioning that would be a nightmare to deal with.

buzo commented on 2018-12-19 16:28 (UTC) (edited on 2018-12-19 16:29 (UTC) by buzo)

Did you run namcap on the resulting package? It produces a huge amount of warnings and errors, see this paste.

Also, please rename the source tarball, preferably like this:

source=("$pkgname-$pkgver.tar.gz::<https://github.com/tootsuite/mastodon/archive/v>$pkgver.tar.gz"

fbrennan commented on 2018-12-11 04:43 (UTC)

Thank you @luka-devnull :-)

And for your previous comments as well. Helped me update the package after your first flag.

luka-devnull commented on 2018-12-08 09:31 (UTC)

v2.6.5 is out, which fixes a bug with yarn yanking packages in the pre v2.6.4 releases (including v2.6.2)

It's as easy as just updating the version number and the sha512sum though.

luka-devnull commented on 2018-11-09 03:45 (UTC)

You should also include libidn as a dependency. It doesn't build without it.

count0 commented on 2018-09-07 14:50 (UTC)

I'm getting the following build error when trying to upgrade to 2.5.0:

[1/6] Validating package.json... error mastodon@: The engine "node" is incompatible with this module. Expected version ">=8". error Found incompatible module info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. ==> ERROR: A failure occurred in build(). Aborting... :: failed to build mastodon package(s)

flacks commented on 2018-08-29 21:03 (UTC)

Celti, thanks for the feedback. Updated.

Celti commented on 2018-08-29 09:34 (UTC) (edited on 2018-08-29 10:19 (UTC) by Celti)

git is a required makedepend. This fails to build in a container without it.

EDIT: Apparently npm is also a required makedepend to prevent yarn from arbitrarily changing the working directory and causing build failures for being unable to find .yarnclean (peripherally described as a docker issue in #6809 but also valid here).

EDIT 2: It also appears that yarn is a full dependency, not a makedepend — precompiling assets when running bundle exec rails mastodon:setup fails entirely without it.