Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] flutter-bin #3088

Closed
hasanpasha opened this issue Mar 29, 2024 · 12 comments
Closed

[Request] flutter-bin #3088

hasanpasha opened this issue Mar 29, 2024 · 12 comments
Labels
flutter Package is related to flutter. request:new-pkg New package requested.

Comments

@hasanpasha
Copy link

hasanpasha commented Mar 29, 2024

Packages:

https://aur.archlinux.org/pkgbase/flutter-bin

https://aur.archlinux.org/pkgbase/flutter
https://aur.archlinux.org/pkgbase/flutter-artifacts-google-bin

Purpose

Dart/Flutter development

License

BSD-3-Clause, Google-Patent-Grant

More information

flutter's package flutter-target-linux depends on flutter-engine-linux which is not found in chaotic-aur repo causing unresolved dependencies, and the same for flutter-target-android and flutter-target-web

@hasanpasha hasanpasha added the bug:misc Something else doesn't work. label Mar 29, 2024
@xiota
Copy link
Contributor

xiota commented Mar 29, 2024

The maintainer is reorganizing / splitting the package. I'll take a closer look later. If it's too complicated, may replace with a monolithic package similar to how it was before.

@dr460nf1r3
Copy link
Member

dr460nf1r3 commented Mar 30, 2024

It seems it requires a second pkgbase to work, rather than having it all in one PKGBUILD (and yes, those are NOT required at build time): https://aur.archlinux.org/pkgbase/flutter-artifacts-google-bin
It's from the same maintainer, so that's likely the way to move forward. No other package provides the needed pkgname. I feel like this adds a shit ton of unneeded split packages, but hey.

Package (20)                                   New Version  Net Change  Download Size

extra/cmake                                    3.29.0-1      72,94 MiB      11,30 MiB
extra/cppdap                                   1.58.0-1       1,62 MiB
extra/dart                                     3.3.2-1      574,13 MiB     155,18 MiB
chaotic-aur/flutter-common                     3.19.5-2.1    23,01 MiB       2,77 MiB
chaotic-aur/flutter-devel                      3.19.5-2.1    76,44 MiB      13,45 MiB
chaotic-aur/flutter-engine-android-google-bin  3.19.5-1     202,04 MiB     156,66 MiB
chaotic-aur/flutter-engine-common-google-bin   3.19.5-1      20,90 MiB       2,65 MiB
chaotic-aur/flutter-engine-linux-google-bin    3.19.5-1     202,98 MiB      47,47 MiB
chaotic-aur/flutter-engine-web-google-bin      3.19.5-1     168,22 MiB      13,58 MiB
chaotic-aur/flutter-gradle                     3.19.5-2.1     0,05 MiB       0,04 MiB
chaotic-aur/flutter-intellij-patch             3.19.5-2.1     0,00 MiB       0,00 MiB
chaotic-aur/flutter-material-fonts-google-bin  3.19.5-1       4,80 MiB       1,44 MiB
chaotic-aur/flutter-sky-engine-google-bin      3.19.5-1       6,20 MiB       0,78 MiB
chaotic-aur/flutter-target-android             3.19.5-2.1     0,09 MiB       0,02 MiB
chaotic-aur/flutter-target-linux               3.19.5-2.1     0,01 MiB       0,00 MiB
chaotic-aur/flutter-target-web                 3.19.5-2.1     0,03 MiB       0,01 MiB
chaotic-aur/flutter-tool                       3.19.5-2.1    35,57 MiB      12,12 MiB
extra/ninja                                    1.11.1-3       0,35 MiB       0,14 MiB
extra/rhash                                    1.4.4-1        0,32 MiB
chaotic-aur/flutter                            3.19.5-2.1     0,00 MiB       0,00 MiB

Total Download Size:    417,61 MiB
Total Installed Size:  1389,68 MiB

@xiota
Copy link
Contributor

xiota commented Mar 30, 2024

There are comments with complaints about build failure.

I still want to review this when things settle... so reopening as a reminder.

@xiota xiota reopened this Mar 30, 2024
@hasanpasha
Copy link
Author

I was able to install the packages from the chaotic-repo successfully. Thanks for your quick fix.

@xiota
Copy link
Contributor

xiota commented Apr 19, 2024

@hasanpash In addition to installing successfully, does flutter also work as expected?

@hasanpasha
Copy link
Author

@xiota It was working just fine when I wrote my comment above. Now after updating to version 3.19.6 I get the below error when running flutter run in any project:

Unexpected Kernel Format Version 117 (expected 114)
#0      BinaryBuilder.readComponent.<anonymous closure>
(package:kernel/binary/ast_from_binary.dart:692)
#1      Timeline.timeSync (dart:developer/timeline.dart:173)
#2      BinaryBuilder.readComponent
(package:kernel/binary/ast_from_binary.dart:679)
#3      _InitializationFromSdkSummary._prepareSummary
(package:front_end/src/fasta/incremental_compiler.dart:2503)
#4      _InitializationFromUri.initialize
(package:front_end/src/fasta/incremental_compiler.dart:2577)
<asynchronous suspension>
#5      IncrementalCompiler._ensurePlatformAndInitialize
(package:front_end/src/fasta/incremental_compiler.dart:1383)
<asynchronous suspension>
#6      IncrementalCompiler.computeDelta.<anonymous closure>
(package:front_end/src/fasta/incremental_compiler.dart:270)
<asynchronous suspension>
#7      CompilerContext.clear
(package:front_end/src/fasta/compiler_context.dart:139)
<asynchronous suspension>
#8      IncrementalCompiler.compile (package:vm/incremental_compiler.dart:77)
<asynchronous suspension>
#9      FrontendCompiler.compile
(package:frontend_server/frontend_server.dart:610)
<asynchronous suspension>
#10     listenAndCompile.<anonymous closure>
(package:frontend_server/frontend_server.dart:1303)
<asynchronous suspension>
the Dart compiler exited unexpectedly.
the Dart compiler exited unexpectedly.

which is also reported in the AUR page here .

@dr460nf1r3 dr460nf1r3 added the waiting:upstream-fix Waiting for fix in AUR or in the project iself. label Apr 19, 2024
@xiota
Copy link
Contributor

xiota commented Apr 21, 2024

The flutter package reorganization is too experimental, and the maintainer is planning more ¿breaking? changes. I'm considering replacing it with a monolithic flutter-bin package that installs to /opt/flutter and uses helper scripts to run unionfs-fuse to make the folder "writable" so that flutter will function.

@xiota
Copy link
Contributor

xiota commented Apr 26, 2024

I'm considering dropping the split flutter, flutter-engine, etc packges (keeping flutter-bin) because they're too complicated and unreliable. On my computer, I have to run pacman multiple times to install the depends in the right order.

@hasanpasha Someone has reported that the flutter packages work with aur/dart-sdk-dev. The package is in chaotic-aur for testing. Can you confirm whether flutter works when it's installed? Do you have any opinion about split packaging vs monolithic flutter-bin?

@hasanpasha
Copy link
Author

@xiota I am currently not on my system so I can't test whether this works or not, I will come back with the results as soon as I can. As for monolithic vs split packages, I think the split packages would be better for other flutter packages that depend on it, and it makes the installation cleaner.

@hasanpasha
Copy link
Author

after full removal of flutter packages and dart with sudo pacman -Rcus dart flutter and installing flutter again with dart-sdk-dev I get the following error when running flutter doctor or any other flutter command:

Wrong full snapshot version, expected 'e626b3c974f4afdd82d77a14c5e59173' found 'ee1eb666c76a5cb7746faf39d0b97547'

@xiota
Copy link
Contributor

xiota commented Apr 27, 2024

@hasanpasha Thanks for testing. I'm going to drop the split packages because they are not working. Will consider adding them back when comments on the aur pages indicate they are working reliably.

xiota added a commit that referenced this issue Apr 27, 2024
@xiota xiota changed the title [Bug] flutter package group cannot resolve flutter-engine-* [Request] flutter-bin May 14, 2024
@xiota
Copy link
Contributor

xiota commented May 14, 2024

I've repurposed this issue to track flutter-bin. Another useful package to consider is fvm.

The split flutter/flutter-artifacts-google-bin packages will not be added back unless the patches they are based on are upstreamed back to Google. The problem is whenever they're updated, the various components, including extra/dart, go out of sync within days, making the collection useless.

Also, unreasonable to have 17-subpackages with unclear cross-depends and base package name unrelated to any of the other package names (flutter-artifacts-google-bin).

@xiota xiota added request:new-pkg New package requested. flutter Package is related to flutter. and removed waiting:upstream-fix Waiting for fix in AUR or in the project iself. bug:misc Something else doesn't work. labels May 14, 2024
@xiota xiota closed this as completed May 14, 2024
xiota added a commit that referenced this issue May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flutter Package is related to flutter. request:new-pkg New package requested.
Development

No branches or pull requests

3 participants