Package Details: flutter-bin 3.22.1-1

Git Clone URL: https://aur.archlinux.org/flutter-bin.git (read-only, click to copy)
Package Base: flutter-bin
Description: Cross platform widget toolkit for Dart (monolithic)
Upstream URL: https://github.com/flutter/flutter
Licenses: BSD-3-Clause, LicenseRef-Google-Patent-Grant
Conflicts: dart, flutter, flutter-common, flutter-devel, flutter-engine, flutter-engine-android, flutter-engine-android-google-bin, flutter-engine-common, flutter-engine-common-google-bin, flutter-engine-linux, flutter-engine-linux-google-bin, flutter-engine-web, flutter-engine-web-google-bin, flutter-gradle, flutter-gradle-google-bin, flutter-intellij-patch, flutter-material-fonts, flutter-material-fonts-google-bin, flutter-sky-engine, flutter-sky-engine-google-bin, flutter-target-android, flutter-target-linux, flutter-target-web, flutter-tool, flutter-tool-developer
Provides: dart, flutter, flutter-target-android, flutter-target-linux, flutter-target-web, flutter-tool
Submitter: xiota
Maintainer: xiota
Last Packager: xiota
Votes: 4
Popularity: 3.04
First Submitted: 2024-04-22 06:23 (UTC)
Last Updated: 2024-05-23 02:41 (UTC)

Required by (78)

Sources (1)

Pinned Comments

xiota commented on 2024-05-14 14:11 (UTC) (edited on 2024-05-14 14:12 (UTC) by xiota)

Packagers: Consider using aur/fvm.

xiota commented on 2024-05-14 12:10 (UTC) (edited on 2024-05-28 09:13 (UTC) by xiota)

aur/flutter-bin is needed to provide a working stable flutter package. It is intended to be installed by itself, without any other flutter or dart package.

The conflicts are needed to prevent co-installation with other flutter packages. The provides are needed to capture the build depends of packages that use flutter. While this was tested and confirmed to work when the package was created, whether it continues to do so is out of my control.

The number of flutter-based packages has multiplied significantly, and individual maintainers may introduce incompatible commands. So user-side adjustments may be needed to build some packages. For the most part, this is user responsibility, so please avoid disturbing other maintainers with issues related to build-cases they do not intend.

Latest Comments

yochananmarqos commented on 2024-05-16 19:45 (UTC)

@xiota: Thanks for the tip! I hadn't heard of FVM. I'm now using it successfully with my two Flutter packages, yubico-authenticator and musicpod-git.

xiota commented on 2024-05-14 14:11 (UTC) (edited on 2024-05-14 14:12 (UTC) by xiota)

Packagers: Consider using aur/fvm.

xiota commented on 2024-05-14 12:10 (UTC) (edited on 2024-05-28 09:13 (UTC) by xiota)

aur/flutter-bin is needed to provide a working stable flutter package. It is intended to be installed by itself, without any other flutter or dart package.

The conflicts are needed to prevent co-installation with other flutter packages. The provides are needed to capture the build depends of packages that use flutter. While this was tested and confirmed to work when the package was created, whether it continues to do so is out of my control.

The number of flutter-based packages has multiplied significantly, and individual maintainers may introduce incompatible commands. So user-side adjustments may be needed to build some packages. For the most part, this is user responsibility, so please avoid disturbing other maintainers with issues related to build-cases they do not intend.

emakz commented on 2024-04-27 23:59 (UTC)

Thanks for the package. I had a bug when using any command provided from this package, the result of the groups command would be printed before anything the command does.

For example:

$ dart --version
sys network power boinc adbusers docker lp wheel emak flutter
Dart SDK version: 3.3.4 (stable) (Tue Apr 16 19:56:12 2024 +0000) on "linux_x64"

This created some problems down the line.

So here is the fix I applied in /usr/bin/flutter_init to stop printing my groups:

diff --git PKGBUILD PKGBUILD
index 13f5d78..e88e110 100644
--- PKGBUILD
+++ PKGBUILD
@@ -148,7 +148,7 @@ _unionfs() {

 if whoami | grep -E 'builduser|main-builder' > /dev/null 2>&1; then
   export FLUTTER_ROOT="$APP_DIR"
-elif grep flutter <<< $(groups); then
+elif grep -q flutter <<< $(groups); then
   export FLUTTER_ROOT="$APP_DIR"
 elif _unionfs; then
   if [ -e "$MOUNT_DIR/bin" ]; then

Underline9127 commented on 2024-04-24 13:07 (UTC) (edited on 2024-04-24 13:09 (UTC) by Underline9127)

Found spelling mistake in PKGBUILD:

"if ! grep "$MOUNT_DIR" <<< "$PATH" > /dev/null2 >&1; then" should be: "if ! grep "$MOUNT_DIR" <<< "$PATH" > /dev/null 2>&1; then"

notice the "/dev/null2"

xiota commented on 2024-04-22 06:49 (UTC) (edited on 2024-04-22 15:14 (UTC) by xiota)

This package installs to /opt/flutter. It satisfies write-permission requirements with a flutter group or by creating a writable mirror in the users' cache directory.

The group flutterusers is not used because other flutter packages may delete it, leaving behind orphan permissions.