Skip to content

Commit 591e5cf

Browse files
benjaminguttmann-avtqpaketo-botdmikusa
authored
Fix noble integration tests (#1071)
* Fix noble integration tests * Fix noble integration tests * Fix include files * Add LD_LIBRARY_PATH * Add LD_LIBRARY_PATH * Drop noble artifacts from buildpack.toml to verify fix * Drop noble artifacts from buildpack.toml to verify fix * Adding missing libsqlite3.so * Adding missing lib * Updating buildpack.toml with new versions 8.3.30, 8.4.17, 8.4.18, 8.5.2, 8.5.3, 8.3.29 --------- Co-authored-by: paketo-bot <paketobuildpacks@gmail.com> Co-authored-by: Daniel Mikusa <dan@mikusa.com>
1 parent 9e8b59a commit 591e5cf

6 files changed

Lines changed: 70 additions & 57 deletions

File tree

buildpack.toml

Lines changed: 50 additions & 50 deletions
Large diffs are not rendered by default.

dependency/actions/compile/binary-builder/cflinuxfs5/recipe/php_recipe.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ def setup_tar
118118
cp -a -v #{argon_dir}/libargon2.so* #{path}/lib
119119
cp -a -v /usr/lib/librdkafka.so* #{path}/lib
120120
cp -a -v ${lib_dir}/libzip.so* #{path}/lib/
121+
cp -a -v ${lib_dir}/libsqlite3.so* #{path}/lib/
122+
cp -a -v ${lib_dir}/libicu*.so* #{path}/lib/
123+
cp -a -v ${lib_dir}/libxml2.so* #{path}/lib/
121124
cp -a -v ${lib_dir}/libGeoIP.so* #{path}/lib/
122125
cp -a -v ${lib_dir}/libgpgme.so* #{path}/lib/
123126
cp -a -v ${lib_dir}/libassuan.so* #{path}/lib/

dependency/actions/compile/noble.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ RUN apt-get update && apt-get install -y \
4848
libtidy-dev \
4949
libtool \
5050
libwebp-dev \
51-
libxml2-dev \
51+
libxml2 \
5252
libxml2-dev \
5353
libxslt1-dev \
5454
libyaml-dev \

environment.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ func NewEnvironment() Environment {
2222
// by the layer path, and the other paths provided as inputs. See PHP documentation
2323
// for an explanation of the environment variables' significance.
2424
func (e Environment) Configure(layer packit.Layer, extensionsDir string, defaultIniPath string, iniScanDirs []string) error {
25-
layer.SharedEnv.Prepend("PATH", filepath.Join(layer.Path, "sbin"), string(os.PathListSeparator))
25+
layer.SharedEnv.Prepend("PATH", strings.Join([]string{filepath.Join(layer.Path, "sbin"), filepath.Join(layer.Path, "bin")}, string(os.PathListSeparator)), string(os.PathListSeparator))
26+
layer.SharedEnv.Prepend(
27+
"LD_LIBRARY_PATH",
28+
strings.Join([]string{filepath.Join(layer.Path, "lib"), filepath.Join(layer.Path, "lib64")}, string(os.PathListSeparator)),
29+
string(os.PathListSeparator),
30+
)
2631
layer.SharedEnv.Default("MIBDIRS", filepath.Join(layer.Path, "mibs"))
2732

2833
layer.SharedEnv.Default("PHP_HOME", layer.Path)

environment_test.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,11 @@ func testEnvironment(t *testing.T, context spec.G, it spec.S) {
4747
Expect(err).NotTo(HaveOccurred())
4848

4949
Expect(layer.SharedEnv).To(Equal(packit.Environment{
50+
"LD_LIBRARY_PATH.delim": ":",
51+
"LD_LIBRARY_PATH.prepend": filepath.Join(layer.Path, "lib") + ":" + filepath.Join(layer.Path, "lib64"),
5052
"MIBDIRS.default": filepath.Join(layer.Path, "mibs"),
5153
"PATH.delim": ":",
52-
"PATH.prepend": filepath.Join(layer.Path, "sbin"),
54+
"PATH.prepend": filepath.Join(layer.Path, "sbin") + ":" + filepath.Join(layer.Path, "bin"),
5355
"PHP_API.default": "20200717",
5456
"PHP_EXTENSION_DIR.default": "directory/extensions/no-debug-non-zts-20200717",
5557
"PHP_HOME.default": layer.Path,
@@ -72,9 +74,11 @@ func testEnvironment(t *testing.T, context spec.G, it spec.S) {
7274
Expect(err).NotTo(HaveOccurred())
7375

7476
Expect(layer.SharedEnv).To(Equal(packit.Environment{
77+
"LD_LIBRARY_PATH.delim": ":",
78+
"LD_LIBRARY_PATH.prepend": filepath.Join(layer.Path, "lib") + ":" + filepath.Join(layer.Path, "lib64"),
7579
"MIBDIRS.default": filepath.Join(layer.Path, "mibs"),
7680
"PATH.delim": ":",
77-
"PATH.prepend": filepath.Join(layer.Path, "sbin"),
81+
"PATH.prepend": filepath.Join(layer.Path, "sbin") + ":" + filepath.Join(layer.Path, "bin"),
7882
"PHP_API.default": "20200717",
7983
"PHP_EXTENSION_DIR.default": "directory/extensions/no-debug-non-zts-20200717",
8084
"PHP_HOME.default": layer.Path,

integration.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"build-plan": "github.com/paketo-community/build-plan",
32
"builders": [
4-
"index.docker.io/paketobuildpacks/builder-jammy-buildpackless-full:latest"
5-
]
3+
"index.docker.io/paketobuildpacks/builder-jammy-buildpackless-full:latest",
4+
"index.docker.io/paketobuildpacks/ubuntu-noble-builder-buildpackless:latest"
5+
],
6+
"build-plan": "index.docker.io/paketocommunity/build-plan"
67
}

0 commit comments

Comments
 (0)