getsolus / packages

Solus Package Monorepo & Issue Tracker
64 stars 84 forks source link

Dartlang (T4974) #281

Open celticmagic opened 1 year ago

celticmagic commented 1 year ago
Kevin Segaud (#Kleak), 2017-11-07 07:58:59 UTC

Dartlang https://www.dartlang.org/ create server, web application and mobile with flutter It's Open source I don't really know how many people https://github.com/dart-lang/sdk/archive/1.24.3.tar.gz Required for Flutter https://github.com/getsolus/packages/issues/178 and YubiKey Desktop. Needed to fix (https://github.com/getsolus/packages/issues/433)
celticmagic commented 1 year ago
Joshua Strobl (#JoshStrobl), 2017-12-16 21:36:22 UTC

Need a link to a Dartlang source tarball, not pre-compiled releases.
celticmagic commented 1 year ago
Kevin Segaud (#Kleak), 2017-12-16 22:05:45 UTC

The source of the sdk are here https://github.com/dart-lang/sdk
celticmagic commented 1 year ago
Ikey Doherty (#ikey), 2017-12-16 22:12:29 UTC

I assume we're requesting 1.24.3 here?
celticmagic commented 1 year ago
Joshua Strobl (#JoshStrobl), 2017-12-16 22:14:20 UTC

#ikey That's the latest stable. 2.x is dev.
celticmagic commented 1 year ago
Ikey Doherty (#ikey), 2017-12-16 22:15:02 UTC

Yep I was just making sure that we're all on the same page with limiting this to the stable branch :)
celticmagic commented 1 year ago
Kevin Segaud (#Kleak), 2017-12-16 22:19:14 UTC

Yes only stable branch. If i can help let me know :)
celticmagic commented 1 year ago
Kevin Segaud (#Kleak), 2018-01-02 15:19:07 UTC

Can i create the package myself and submit it to review ? Is there a guide on how to do that or a equivalent package to learn from it ?
celticmagic commented 1 year ago
Joshua Strobl (#JoshStrobl), 2018-01-02 15:25:12 UTC

Packaging documentation is available [here](https://solus-project.com/articles/packaging/). You can submit a package following our [Submitting a Package](https://solus-project.com/articles/packaging/submitting-a-package/en/) documentation. Just be sure you are building it from source, it won't be accepted if you're just repackaging the pre-made binaries.
celticmagic commented 1 year ago
Kevin Segaud (#Kleak), 2018-01-02 16:14:16 UTC

i got this error when i try to build dart on solus :/ ``` ../../runtime/platform/math.h:12:10: fatal error: 'cmath' file not found #include ^~~~~~~ 1 error generated. ```
celticmagic commented 1 year ago
Kevin Segaud (#Kleak), 2018-01-02 17:04:43 UTC

also to build the dart sdk from the source they don't use make. They use a custom script as you can see [here](https://github.com/dart-lang/sdk/wiki/Building#building) how that can be used in the package.yml file. the script is located in another git repos (https://chromium.googlesource.com/chromium/tools/depot_tools.git)
celticmagic commented 1 year ago
Dakota (#BearzR), 2018-01-02 17:15:42 UTC

Kleak that would be a question for #ikey. It might involve creating a macro for it or just packaging it first, including it as a dependency and running it like a normal terminal command like cd or mkdir.
celticmagic commented 1 year ago
Kevin Segaud (#Kleak), 2018-01-02 17:16:38 UTC

i also got this error when i launch make `Profile is not installed: Did you forget to init?`
celticmagic commented 1 year ago
Kevin Segaud (#Kleak), 2018-01-02 17:18:24 UTC

#BearzR in fact i should be able to build the sdk just with the tarball :)
celticmagic commented 1 year ago
Joshua Strobl (#JoshStrobl), 2018-01-02 17:22:12 UTC

> i also got this error when i launch make > Profile is not installed: Did you forget to init? Follow the documentation [here](https://solus-project.com/articles/packaging/building-a-package/en/#initializing-solbuild) and make sure you're **installing the unstable config**, that is what solbuild defaults to and what you should be building against.
celticmagic commented 1 year ago
Kevin Segaud (#Kleak), 2018-01-02 17:24:29 UTC

#JoshStrobl i have already installed all this stuff but keep getting the error :/
celticmagic commented 1 year ago
Kevin Segaud (#Kleak), 2018-01-02 17:26:32 UTC

ok after init i did update and it seems that was not necessary
celticmagic commented 1 year ago
Kevin Segaud (#Kleak), 2018-01-02 17:28:19 UTC

here is where i'm ``` make[1]: Entering directory '/home/kleak/Work/kleak/solus/dart' abireport -p abi_ -D `dirname package.yml` scan-packages `dirname package.yml` Error locating packages: No packages in directory . make[1]: *** [../Makefile.common:15: abireport] Error 1 make[1]: Leaving directory '/home/kleak/Work/kleak/solus/dart' make: *** [../Makefile.common:12: complete] Error 2 ```
celticmagic commented 1 year ago
Joshua Strobl (#JoshStrobl), 2018-01-02 17:35:35 UTC

Do you have a `package.yml` file? I assume you are following the packaging documentation and not just trying to run `make` against a tarball, right? Follow [Generating a Package.yml](https://solus-project.com/articles/packaging/packaging-practices/en/#generating-a-package-yml) and I'd recommend at this point our Youtube videos as well (starting with [Session 4](https://www.youtube.com/watch?v=rlPnHjUBpJ8)).
celticmagic commented 1 year ago
Kevin Segaud (#Kleak), 2018-01-02 18:11:40 UTC

yes i have a package.yml will watch the video :)
celticmagic commented 1 year ago
Kevin Segaud (#Kleak), 2018-01-08 10:11:18 UTC

I have a little problem when i try to compile dart on solus here are the error. i follow the instruction here : https://github.com/dart-lang/sdk/wiki/Building and when i launch this command i get the following error : `./tools/build.py --mode release --arch x64 create_sdk` ``` ninja -C out/ReleaseX64 create_sdk ninja: Entering directory `out/ReleaseX64' [3/1905] CXX obj/runtime/bin/gen_snapshot_dart_io/process_win.o FAILED: obj/runtime/bin/gen_snapshot_dart_io/process_win.o ../../buildtools/toolchain/clang+llvm-x86_64-linux/bin/clang++ -MMD -MF obj/runtime/bin/gen_snapshot_dart_io/process_win.o.d -DDART_IO_SECURE_SOCKET_DISABLED -DNDEBUG -DTARGET_OS_LINUX -DTARGET_ARCH_X64 -DNDEBUG -DDART_USE_TCMALLOC -DDART_PRECOMPILER -I../../runtime -I../../third_party -I../.. -Igen -I../../third_party/tcmalloc/gperftools/src -I../../third_party/zlib -m64 -march=x86-64 -msse2 -fno-exceptions -pthread -fcolor-diagnostics -Wall -Wextra -Werror -Wendif-labels -Wno-missing-field-initializers -Wno-unused-parameter -Wheader-hygiene -Wstring-conversion -O3 -fno-ident -fdata-sections -ffunction-sections -g3 -ggdb3 -Werror -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -Wvla -Wno-conversion-null -Woverloaded-virtual -g3 -ggdb3 -fno-rtti -fno-exceptions -O3 -fvisibility-inlines-hidden -fno-omit-frame-pointer -fno-rtti -fno-exceptions -c ../../runtime/bin/process_win.cc -o obj/runtime/bin/gen_snapshot_dart_io/process_win.o In file included from ../../runtime/bin/process_win.cc:7: In file included from ../../runtime/platform/globals.h:78: ../../runtime/platform/math.h:12:10: fatal error: 'cmath' file not found #include ^~~~~~~ 1 error generated. [4/1905] CXX obj/runtime/bin/gen_snapshot_dart_io/socket_android.o FAILED: obj/runtime/bin/gen_snapshot_dart_io/socket_android.o ../../buildtools/toolchain/clang+llvm-x86_64-linux/bin/clang++ -MMD -MF obj/runtime/bin/gen_snapshot_dart_io/socket_android.o.d -DDART_IO_SECURE_SOCKET_DISABLED -DNDEBUG -DTARGET_OS_LINUX -DTARGET_ARCH_X64 -DNDEBUG -DDART_USE_TCMALLOC -DDART_PRECOMPILER -I../../runtime -I../../third_party -I../.. -Igen -I../../third_party/tcmalloc/gperftools/src -I../../third_party/zlib -m64 -march=x86-64 -msse2 -fno-exceptions -pthread -fcolor-diagnostics -Wall -Wextra -Werror -Wendif-labels -Wno-missing-field-initializers -Wno-unused-parameter -Wheader-hygiene -Wstring-conversion -O3 -fno-ident -fdata-sections -ffunction-sections -g3 -ggdb3 -Werror -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -Wvla -Wno-conversion-null -Woverloaded-virtual -g3 -ggdb3 -fno-rtti -fno-exceptions -O3 -fvisibility-inlines-hidden -fno-omit-frame-pointer -fno-rtti -fno-exceptions -c ../../runtime/bin/socket_android.cc -o obj/runtime/bin/gen_snapshot_dart_io/socket_android.o In file included from ../../runtime/bin/socket_android.cc:7: In file included from ../../runtime/platform/globals.h:78: ../../runtime/platform/math.h:12:10: fatal error: 'cmath' file not found #include ^~~~~~~ 1 error generated. [5/1905] CXX obj/runtime/bin/gen_snapshot_dart_io/secure_socket_unsupported.o FAILED: obj/runtime/bin/gen_snapshot_dart_io/secure_socket_unsupported.o ../../buildtools/toolchain/clang+llvm-x86_64-linux/bin/clang++ -MMD -MF obj/runtime/bin/gen_snapshot_dart_io/secure_socket_unsupported.o.d -DDART_IO_SECURE_SOCKET_DISABLED -DNDEBUG -DTARGET_OS_LINUX -DTARGET_ARCH_X64 -DNDEBUG -DDART_USE_TCMALLOC -DDART_PRECOMPILER -I../../runtime -I../../third_party -I../.. -Igen -I../../third_party/tcmalloc/gperftools/src -I../../third_party/zlib -m64 -march=x86-64 -msse2 -fno-exceptions -pthread -fcolor-diagnostics -Wall -Wextra -Werror -Wendif-labels -Wno-missing-field-initializers -Wno-unused-parameter -Wheader-hygiene -Wstring-conversion -O3 -fno-ident -fdata-sections -ffunction-sections -g3 -ggdb3 -Werror -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -Wvla -Wno-conversion-null -Woverloaded-virtual -g3 -ggdb3 -fno-rtti -fno-exceptions -O3 -fvisibility-inlines-hidden -fno-omit-frame-pointer -fno-rtti -fno-exceptions -c ../../runtime/bin/secure_socket_unsupported.cc -o obj/runtime/bin/gen_snapshot_dart_io/secure_socket_unsupported.o In file included from ../../runtime/bin/secure_socket_unsupported.cc:7: In file included from ../../runtime/bin/builtin.h:13: In file included from ../../runtime/platform/assert.h:16: In file included from ../../runtime/platform/globals.h:78: ../../runtime/platform/math.h:12:10: fatal error: 'cmath' file not found #include ^~~~~~~ 1 error generated. [7/1905] CXX obj/runtime/bin/gen_snapshot_dart_io/socket_base.o FAILED: obj/runtime/bin/gen_snapshot_dart_io/socket_base.o ../../buildtools/toolchain/clang+llvm-x86_64-linux/bin/clang++ -MMD -MF obj/runtime/bin/gen_snapshot_dart_io/socket_base.o.d -DDART_IO_SECURE_SOCKET_DISABLED -DNDEBUG -DTARGET_OS_LINUX -DTARGET_ARCH_X64 -DNDEBUG -DDART_USE_TCMALLOC -DDART_PRECOMPILER -I../../runtime -I../../third_party -I../.. -Igen -I../../third_party/tcmalloc/gperftools/src -I../../third_party/zlib -m64 -march=x86-64 -msse2 -fno-exceptions -pthread -fcolor-diagnostics -Wall -Wextra -Werror -Wendif-labels -Wno-missing-field-initializers -Wno-unused-parameter -Wheader-hygiene -Wstring-conversion -O3 -fno-ident -fdata-sections -ffunction-sections -g3 -ggdb3 -Werror -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -Wvla -Wno-conversion-null -Woverloaded-virtual -g3 -ggdb3 -fno-rtti -fno-exceptions -O3 -fvisibility-inlines-hidden -fno-omit-frame-pointer -fno-rtti -fno-exceptions -c ../../runtime/bin/socket_base.cc -o obj/runtime/bin/gen_snapshot_dart_io/socket_base.o In file included from ../../runtime/bin/socket_base.cc:7: In file included from ../../runtime/bin/socket_base.h:12: In file included from ../../runtime/platform/globals.h:78: ../../runtime/platform/math.h:12:10: fatal error: 'cmath' file not found #include ^~~~~~~ 1 error generated. [8/1905] CXX obj/runtime/bin/gen_snapshot_dart_io/socket.o FAILED: obj/runtime/bin/gen_snapshot_dart_io/socket.o ../../buildtools/toolchain/clang+llvm-x86_64-linux/bin/clang++ -MMD -MF obj/runtime/bin/gen_snapshot_dart_io/socket.o.d -DDART_IO_SECURE_SOCKET_DISABLED -DNDEBUG -DTARGET_OS_LINUX -DTARGET_ARCH_X64 -DNDEBUG -DDART_USE_TCMALLOC -DDART_PRECOMPILER -I../../runtime -I../../third_party -I../.. -Igen -I../../third_party/tcmalloc/gperftools/src -I../../third_party/zlib -m64 -march=x86-64 -msse2 -fno-exceptions -pthread -fcolor-diagnostics -Wall -Wextra -Werror -Wendif-labels -Wno-missing-field-initializers -Wno-unused-parameter -Wheader-hygiene -Wstring-conversion -O3 -fno-ident -fdata-sections -ffunction-sections -g3 -ggdb3 -Werror -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -Wvla -Wno-conversion-null -Woverloaded-virtual -g3 -ggdb3 -fno-rtti -fno-exceptions -O3 -fvisibility-inlines-hidden -fno-omit-frame-pointer -fno-rtti -fno-exceptions -c ../../runtime/bin/socket.cc -o obj/runtime/bin/gen_snapshot_dart_io/socket.o In file included from ../../runtime/bin/socket.cc:7: In file included from ../../runtime/bin/socket.h:12: In file included from ../../runtime/bin/builtin.h:13: In file included from ../../runtime/platform/assert.h:16: In file included from ../../runtime/platform/globals.h:78: ../../runtime/platform/math.h:12:10: fatal error: 'cmath' file not found #include ^~~~~~~ 1 error generated. [12/1905] CC obj/runtime/bin/zlib/libchrome_zlib/gzread.o ninja: build stopped: subcommand failed. BUILD FAILED ``` i have installed the system.devel package
celticmagic commented 1 year ago
Peter (#piotrpalek), 2018-06-21 23:13:52 UTC

#Kleak did you make any progress with this? edit: I've had some success with by following this comment: https://github.com/dart-lang/sdk/issues/30435#issuecomment-342845207
celticmagic commented 1 year ago
Joshua Strobl (#JoshStrobl), 2018-06-25 12:48:57 UTC

This has sat in accepted for inclusion for 6 months now. Clearly, there is a lack of demand for the inclusion of this software, nobody has stepped up to provide a patch, maintain it, and properly integrate it. Closing as a result. Feel free to reopen but only when someone offers a patch via our proper patch submission methods and volunteers to be maintainer.
celticmagic commented 1 year ago
Kevin Segaud (#Kleak), 2018-10-09 19:54:34 UTC

i really would like to have dartlang in solus so i retried to do this yesterday but i encounter some difficulties. First i need the tool in depot_tools as stated here https://github.com/dart-lang/sdk/wiki/Building#linux without it seems not possible to build the project. then even with this it seems that getting the tarball doesn't work with this step https://github.com/dart-lang/sdk/wiki/Building#building It seems we need to get the source as they say here https://github.com/dart-lang/sdk/wiki/Building#getting-the-source but we can't do that for solus :/ when i follow the step i successfully build the sdk. Does anybody has hint on how to do it ?
celticmagic commented 1 year ago
Jan Baudisch (#flyingP0tat0), 2018-12-23 19:47:20 UTC

Oh, right, I should have probably looked this up before I opened a new ticket. Sorry! What I got so far: I found a way to build the Dart SDK from source, but it is using the shipped toolchain from the Dart team. I think we have to ways to proceed: Either stick to the (not very clean) way of building Dart from source or take the same approach as every other distro and just package the binary release. I would volunteer to package and maintain Dart once one of the team members tells me which way I should take: Source or binary?
celticmagic commented 1 year ago
Jan Baudisch (#flyingP0tat0), 2018-12-25 22:12:56 UTC

celticmagic commented 1 year ago
TraceyC (@TraceyC77), 2023-05-29 00:42:21 UTC

Since YubiKey Desktop now requires flutter, which requires Dart, I've re-opened this case. (Re-opened rather than made a new task because there's already a diff) @GZGavinZhao, would you have the time and inclination to take another look at this? I would be much obliged.