Page MenuHomeSolus

Dartlang
Open, LowPublic

Description

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 and YubiKey Desktop. See T10542
Needed to fix T10543

Revisions and Commits

Needs Review

Event Timeline

Kleak updated the task description. (Show Details)
JoshStrobl triaged this task as Needs More Info priority.Dec 16 2017, 9:36 PM
JoshStrobl added a subscriber: JoshStrobl.

Need a link to a Dartlang source tarball, not pre-compiled releases.

JoshStrobl raised the priority of this task from Needs More Info to Low.Dec 16 2017, 10:07 PM
JoshStrobl updated the task description. (Show Details)
JoshStrobl moved this task from Backlog to Accepted For Inclusion on the Package Requests board.

I assume we're requesting 1.24.3 here?

@ikey That's the latest stable. 2.x is dev.

Yep I was just making sure that we're all on the same page with limiting this to the stable branch :)

Yes only stable branch.
If i can help let me know :)

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 ?

Packaging documentation is available here. You can submit a package following our Submitting a Package documentation. Just be sure you are building it from source, it won't be accepted if you're just repackaging the pre-made binaries.

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 <cmath>
         ^~~~~~~
1 error generated.

also to build the dart sdk from the source they don't use make.
They use a custom script as you can see here 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)

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.

i also got this error when i launch make
Profile is not installed: Did you forget to init?

@BearzR in fact i should be able to build the sdk just with the tarball :)

i also got this error when i launch make
Profile is not installed: Did you forget to init?

Follow the documentation here and make sure you're installing the unstable config, that is what solbuild defaults to and what you should be building against.

@JoshStrobl i have already installed all this stuff but keep getting the error :/

ok after init i did update and it seems that was not necessary

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

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 and I'd recommend at this point our Youtube videos as well (starting with Session 4).

yes i have a package.yml
will watch the video :)

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 <cmath>
         ^~~~~~~
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 <cmath>
         ^~~~~~~
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 <cmath>
         ^~~~~~~
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 <cmath>
         ^~~~~~~
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 <cmath>
         ^~~~~~~
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

@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

JoshStrobl claimed this task.
JoshStrobl added a project: Needs Maintainer.

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.

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 ?

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?

DataDrake changed the task status from Wontfix to Frozen.Feb 21 2022, 7:13 AM
TClark77 added a subscriber: TClark77.

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.