Users can choose to use fvm-sourcebuild
to build packages that use fvm
, if they want to build flutter engine from source.
Search Criteria
Package Details: flutter-bin 3.24.5-1
Package Actions
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: | 5 |
Popularity: | 1.15 |
First Submitted: | 2024-04-22 06:23 (UTC) |
Last Updated: | 2024-11-16 05:17 (UTC) |
Dependencies (7)
- clang (llvm-rocm-gitAUR, llvm-gitAUR, clang-minimal-gitAUR, clang17-binAUR)
- cmake (cmake-gitAUR)
- git (git-gitAUR, git-glAUR)
- lld (llvm-rocm-gitAUR, llvm-gitAUR)
- llvm (llvm-rocm-gitAUR, llvm-gitAUR, llvm-minimal-gitAUR)
- ninja (ninja-kitwareAUR, ninja-memAUR, ninja-fuchsia-gitAUR, ninja-gitAUR, ninja-jobserverAUR)
- unionfs-fuseAUR
Required by (93)
- aid-git (requires dart) (make)
- buchable (requires flutter) (make)
- buchable-git (requires flutter) (make)
- c001apk-flutter-git (requires flutter-target-linux) (make)
- c001apk-flutter-git (requires flutter-tool) (make)
- ccextractor-gui (requires flutter) (make)
- chameleonultragui-git (requires flutter) (make)
- colors-ai (requires flutter) (make)
- coolapk_flutter-git (requires flutter) (make)
- cwtch (requires flutter) (make)
- cwtch-git (requires flutter) (make)
- dart-sass-embedded (requires dart) (make)
- dartbuster (requires dart) (make)
- ente-auth-git (requires flutter-tool) (make)
- ente-auth-git (requires flutter) (make)
- finamp (requires flutter-tool) (make)
- finamp (requires flutter-target-linux) (make)
- finamp-git (requires flutter-target-linux) (make)
- finamp-git (requires flutter-tool) (make)
- fluffychat (requires flutter-target-linux) (make)
- fluffychat (requires flutter-tool) (make)
- fluffychat-git (requires flutter-target-linux) (make)
- fluffychat-git (requires flutter-tool) (make)
- fluffychat-web (requires flutter-target-web) (make)
- fluffychat-web-git (requires flutter) (make)
- flut-renamer (requires flutter) (make)
- flutter (requires flutter-target-android)
- flutter (requires dart) (make)
- flutter (requires flutter-target-linux)
- flutter (requires flutter-target-web)
- flutter-beta (requires dart) (optional)
- flutter-common (requires dart) (make)
- flutter-dev (requires dart) (optional)
- flutter-devel (requires dart)
- flutter-devel (requires dart) (make)
- flutter-devel (requires flutter-tool)
- flutter-engine-common-google-bin (requires dart)
- flutter-git (requires dart) (optional)
- flutter-gradle (requires dart) (make)
- flutter-group-pacman-hook (requires flutter) (optional)
- flutter-intellij-patch (requires dart) (make)
- flutter-target-android (requires flutter-tool)
- flutter-target-android (requires dart) (make)
- flutter-target-linux (requires dart)
- flutter-target-linux (requires dart) (make)
- flutter-target-linux (requires flutter-tool)
- flutter-target-web (requires flutter-tool)
- flutter-target-web (requires dart) (make)
- flutter-tool (requires dart)
- flutter-tool (requires dart) (make)
- fvm (requires dart) (make)
- fvm-git (requires dart) (make)
- fvm-sourcebuild (requires dart) (make)
- fwallet (requires flutter-target-linux) (make)
- fwallet (requires flutter-tool) (make)
- fwallet-git (requires flutter-target-linux) (make)
- fwallet-git (requires flutter-tool) (make)
- guifetch-git (requires flutter) (make)
- helix-ext (requires dart) (optional)
- invoiceninja-desktop-git (requires flutter) (make)
- keyviz (requires flutter) (make)
- mcserv-git (requires dart) (make)
- neovim-coc-flutter-git (requires dart)
- nostrmo (requires flutter-target-linux) (make)
- nostrmo (requires flutter-tool) (make)
- passwd-gen-cli (requires dart) (make)
- polycule (requires flutter-target-linux) (make)
- polycule (requires flutter-tool) (make)
- polycule-git (requires flutter-target-linux) (make)
- polycule-git (requires flutter-tool) (make)
- pre-commit-git (requires dart) (check)
- protoc-gen-dart (requires dart) (make)
- quickgui (requires flutter-target-linux) (make)
- rpmlauncher-git (requires flutter) (make)
- rune-player-git (requires flutter-tool) (make)
- rune-player-git (requires flutter-target-linux) (make)
- selfprivacy-git (requires flutter) (make)
- skydroid-cli (requires dart) (make)
- tachidesk-sorayomi (requires flutter) (make)
- tachidesk-sorayomi-git (requires flutter) (make)
- txdx (requires flutter) (make)
- vim-coc-flutter-git (requires dart)
- wowncast (requires dart) (make)
Sources (1)
patlefort commented on 2024-07-11 10:23 (UTC)
xiota commented on 2024-07-07 04:05 (UTC) (edited on 2024-08-22 12:25 (UTC) by xiota)
@Dieter_be I'll consider your suggestions, but not going to make any changes now.
Updates:
- Revised pinned comment for clarity.
- Revised install messages for clarity.
- Moved
flutter_init
out of/usr/bin
- TBD
Dieter_be commented on 2024-07-06 20:16 (UTC)
@xiota perahps your wrappers and scripts should live in a separate repository, so they can be properly contributed on with issues and PR's. they also seem distribution agnostic
i believe /usr/bin is only meant for programs or scripts, your flutter_init is meant to be sourced and not executed, so it doesn't seem /usr/bin is appropriate for it.
there's quite a lot going on in your scripts and some comments in it would be quite helpful.
your approach to allow both unionfs OR direct-writeable /opt/flutter (via flutter group) is quite interesting. a note about this during package installation would probably be a helpful clarification. i don't think i a saw one.
xiota commented on 2024-07-06 16:26 (UTC) (edited on 2024-07-06 16:28 (UTC) by xiota)
@Dieter_be Flutter expects write permissions to the SDK directory. This is generally undesirable and causes problems for system-wide installs. The script allows flutter to write somewhere else (~/.cache/flutter_local
). If you prefer to allow flutter to write to /opt/flutter
, add your user to the flutter
group. Set the SDK directory in other software manually.
Dieter_be commented on 2024-07-06 15:14 (UTC)
why are you adding your own /usr/bin/flutter and /usr/bin/wrapper wrappers and your custom /usr/bin/flutter_init script? maybe: 1) reconsider whether this is really necessary 2) if it is, document the purpose of it
this seems to break correct functioning of flutter. i'm trying to figure out what's happening. more details here https://github.com/Dart-Code/Dart-Code/issues/5174
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
.
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"
Pinned Comments
patlefort commented on 2024-07-11 10:23 (UTC)
Users can choose to use
fvm-sourcebuild
to build packages that usefvm
, if they want to build flutter engine from source.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-04-22 06:49 (UTC) (edited on 2024-07-23 23:53 (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.
Flutter requires write permissions to its install directory,
/opt/flutter
. These may be provided by one of two methods:By default, the executable scripts create a
unionfs
mirror at~/.cache/flutter_*
. Users should unmount and clear them after upgrades.Allow writing directly to the flutter install path by adding users to the
flutter
group. Do not store important files there because it is cleared at install and upgrade.