-
-
Notifications
You must be signed in to change notification settings - Fork 352
bunch of fixes/changes to make packages build #1006
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
base: main
Are you sure you want to change the base?
Changes from all commits
656a58c
0247458
ce44e00
037d224
e677be7
9e051c8
e1a14bb
53f7cde
6b52000
f7ca621
9a681a9
09b89a3
e952f1c
5ef4623
93a3590
2f31226
e7a88f1
08388c0
7688a55
022fdb2
a06cc32
64f7a35
d1b1949
fff2484
559a290
890ff47
54001ab
1be353f
76025b9
6bbb3c9
f8b0c2c
94644d3
3a17cec
34910d1
d902e70
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -92,11 +92,6 @@ RUN echo "source scl_source enable devtoolset-10" >> /etc/bashrc | |
| RUN source /etc/bashrc | ||
| RUN yum install -y which | ||
| RUN curl -fsSL -o patchelf.tgz https://github.com/NixOS/patchelf/releases/download/0.18.0/patchelf-0.18.0-$SPC_USE_ARCH.tar.gz && \ | ||
| mkdir -p /patchelf && \ | ||
| tar -xzf patchelf.tgz -C /patchelf --strip-components=1 && \ | ||
| cp /patchelf/bin/patchelf /usr/bin/ | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as alpine docker |
||
| RUN curl -o cmake.tgz -#fSL https://github.com/Kitware/CMake/releases/download/v3.31.4/cmake-3.31.4-linux-$SPC_USE_ARCH.tar.gz && \ | ||
| mkdir /cmake && \ | ||
| tar -xzf cmake.tgz -C /cmake --strip-components 1 | ||
|
|
||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -232,11 +232,13 @@ | |
| "BSD": "wip" | ||
| }, | ||
| "type": "external", | ||
| "source": "grpc", | ||
| "source": "ext-grpc", | ||
| "arg-type-unix": "enable-path", | ||
| "cpp-extension": true, | ||
| "lib-depends": [ | ||
| "grpc" | ||
| "zlib", | ||
| "openssl", | ||
| "libcares" | ||
| ] | ||
| }, | ||
| "iconv": { | ||
|
|
@@ -408,8 +410,7 @@ | |
| "ext-depends": [ | ||
| "zlib", | ||
| "session" | ||
| ], | ||
| "build-with-php": true | ||
| ] | ||
| }, | ||
| "memcached": { | ||
| "support": { | ||
|
|
@@ -487,6 +488,36 @@ | |
| "zlib" | ||
| ] | ||
| }, | ||
| "mysqlnd_ed25519": { | ||
| "type": "external", | ||
| "source": "mysqlnd_ed25519", | ||
| "arg-type": "enable", | ||
| "target": [ | ||
| "shared" | ||
| ], | ||
| "ext-depends": [ | ||
| "mysqlnd" | ||
| ], | ||
| "lib-depends": [ | ||
| "libsodium", | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like it also depends on |
||
| "openssl" | ||
| ] | ||
| }, | ||
| "mysqlnd_parsec": { | ||
| "type": "external", | ||
| "source": "mysqlnd_parsec", | ||
| "arg-type": "enable", | ||
| "target": [ | ||
| "shared" | ||
| ], | ||
| "ext-depends": [ | ||
| "mysqlnd" | ||
| ], | ||
| "lib-depends": [ | ||
| "libsodium", | ||
| "openssl" | ||
|
Comment on lines
+513
to
+518
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| ] | ||
| }, | ||
| "oci8": { | ||
| "type": "wip", | ||
| "support": { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -361,6 +361,9 @@ | |
| "source": "libargon2", | ||
| "static-libs-unix": [ | ||
| "libargon2.a" | ||
| ], | ||
| "lib-suggests": [ | ||
| "libsodium" | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why it depends on libsodium? |
||
| ] | ||
| }, | ||
| "libavif": { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -151,6 +151,18 @@ | |
| "path": "LICENSE" | ||
| } | ||
| }, | ||
| "ext-grpc": { | ||
| "type": "url", | ||
| "url": "https://pecl.php.net/get/grpc", | ||
| "path": "php-src/ext/grpc", | ||
| "filename": "grpc.tgz", | ||
| "license": { | ||
| "type": "file", | ||
| "path": [ | ||
| "LICENSE" | ||
| ] | ||
| } | ||
| }, | ||
| "ext-imagick": { | ||
| "type": "url", | ||
| "url": "https://pecl.php.net/get/imagick", | ||
|
|
@@ -670,19 +682,20 @@ | |
| } | ||
| }, | ||
| "libpng": { | ||
| "type": "git", | ||
| "url": "https://github.com/glennrp/libpng.git", | ||
| "rev": "libpng16", | ||
| "type": "ghtagtar", | ||
| "repo": "pnggroup/libpng", | ||
| "match": "v1\\.6\\.\\d+", | ||
| "query": "?per_page=150", | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this necessary, or is it only libpng that needs this? |
||
| "provide-pre-built": true, | ||
| "license": { | ||
| "type": "file", | ||
| "path": "LICENSE" | ||
| } | ||
| }, | ||
| "librabbitmq": { | ||
| "type": "git", | ||
| "url": "https://github.com/alanxz/rabbitmq-c.git", | ||
| "rev": "master", | ||
| "type": "ghtar", | ||
| "repo": "alanxz/rabbitmq-c", | ||
| "prefer-stable": true, | ||
| "license": { | ||
| "type": "file", | ||
| "path": "LICENSE" | ||
|
|
@@ -699,7 +712,7 @@ | |
| "libsodium": { | ||
| "type": "ghrel", | ||
| "repo": "jedisct1/libsodium", | ||
| "match": "libsodium-\\d+(\\.\\d+)*\\.tar\\.gz", | ||
| "match": "libsodium-(?!1\\.0\\.21)\\d+(\\.\\d+)*\\.tar\\.gz", | ||
| "prefer-stable": true, | ||
| "provide-pre-built": true, | ||
| "license": { | ||
|
|
@@ -871,6 +884,24 @@ | |
| "path": "LICENSE" | ||
| } | ||
| }, | ||
| "mysqlnd_ed25519": { | ||
| "type": "pie", | ||
| "repo": "mariadb/mysqlnd_ed25519", | ||
| "path": "php-src/ext/mysqlnd_ed25519", | ||
| "license": { | ||
| "type": "file", | ||
| "path": "LICENSE" | ||
| } | ||
| }, | ||
| "mysqlnd_parsec": { | ||
| "type": "pie", | ||
| "repo": "mariadb/mysqlnd_parsec", | ||
| "path": "php-src/ext/mysqlnd_parsec", | ||
| "license": { | ||
| "type": "file", | ||
| "path": "LICENSE" | ||
| } | ||
| }, | ||
| "ncurses": { | ||
| "type": "filelist", | ||
| "url": "https://ftp.gnu.org/pub/gnu/ncurses/", | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -385,6 +385,9 @@ public function buildShared(array $visited = []): void | |||||||
| logger()->info('Shared extension [' . $this->getName() . '] was already built, skipping (' . $this->getName() . '.so)'); | ||||||||
| return; | ||||||||
| } | ||||||||
| if ((string) Config::getExt($this->getName(), 'type') === 'addon') { | ||||||||
| return; | ||||||||
| } | ||||||||
| logger()->info('Building extension [' . $this->getName() . '] as shared extension (' . $this->getName() . '.so)'); | ||||||||
| foreach ($this->dependencies as $dependency) { | ||||||||
| if (!$dependency instanceof Extension) { | ||||||||
|
|
@@ -398,10 +401,12 @@ public function buildShared(array $visited = []): void | |||||||
| if (Config::getExt($this->getName(), 'type') === 'addon') { | ||||||||
| return; | ||||||||
| } | ||||||||
|
Comment on lines
401
to
403
|
||||||||
| if (Config::getExt($this->getName(), 'type') === 'addon') { | |
| return; | |
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| namespace SPC\builder\extension; | ||
|
|
||
| use SPC\builder\Extension; | ||
| use SPC\util\CustomExt; | ||
|
|
||
| #[CustomExt('mysqlnd_ed25519')] | ||
| class mysqlnd_ed25519 extends Extension | ||
| { | ||
| public function getConfigureArg(bool $shared = false): string | ||
| { | ||
| return '--with-mysqlnd_ed25519' . ($shared ? '=shared' : ''); | ||
| } | ||
|
|
||
| public function getUnixConfigureArg(bool $shared = false): string | ||
| { | ||
| return $this->getConfigureArg(); | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| namespace SPC\builder\extension; | ||
|
|
||
| use SPC\builder\Extension; | ||
| use SPC\util\CustomExt; | ||
|
|
||
| #[CustomExt('mysqlnd_parsec')] | ||
| class mysqlnd_parsec extends Extension | ||
| { | ||
| public function getConfigureArg(bool $shared = false): string | ||
| { | ||
| return '--enable-mysqlnd_parsec' . ($shared ? '=shared' : ''); | ||
| } | ||
|
|
||
| public function getUnixConfigureArg(bool $shared = false): string | ||
| { | ||
| return $this->getConfigureArg(); | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest updating SPC_DOCKER_VERSION when changing docker image contents.