Skip to content

Commit ace8048

Browse files
authored
Revert "SCA: Generate depends for shlibs ending in .so" and related commits (#2116)
* Revert "SCA: Skip binaries with invalid ELF sections" This reverts commit ee43cbd. * Revert "SCA: Improve vendored library handling" This reverts commit 3796ede. * Revert "SCA: Only process x86_64 and aarch64 binaries" This reverts commit 786dcb2. * Revert "SCA: Implement isIgnoredLibrary" This reverts commit 6b376b7. * Revert "SCA: Improve isHostProvidedLibrary" This reverts commit 69aad51. * Revert "SCA: Generate "depends" for shlibs ending in ".so" (#2072)" This reverts commit 6b78277. * Leave the schema for no-vendored-cross-package-deps Signed-off-by: Łukasz 'sil2100' Zemczak <[email protected]> --------- Signed-off-by: Łukasz 'sil2100' Zemczak <[email protected]>
1 parent ccfc53e commit ace8048

File tree

4 files changed

+55
-230
lines changed

4 files changed

+55
-230
lines changed

.github/workflows/wolfi-presubmit.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,6 @@ jobs:
211211
docker run --rm -v $(pwd):/work --workdir /work cgr.dev/chainguard/wolfi-base /bin/sh -c "sed 's|=.*||' -i /etc/apk/world; apk add --allow-untrusted -X ./packages/ packages/x86_64/${{ matrix.package }}-*.apk; ls -hal /usr/bin/sudo"
212212
elif [[ "${{ matrix.package }}" == "postfix" ]]; then
213213
docker run --rm -v $(pwd):/work --workdir /work cgr.dev/chainguard/wolfi-base /bin/sh -c "sed 's|=.*||' -i /etc/apk/world; apk add --allow-untrusted -X ./packages/ packages/x86_64/${{ matrix.package }}-*.apk; ls -hal /var/spool/postfix; ls -hal /var/lib/postfix"
214-
# Test https://github.com/chainguard-dev/melange/pull/2072
215-
PKGVER=$(tar -Oxf ./packages/x86_64/${{ matrix.package }}-stone-*.apk .PKGINFO | grep '^pkgver' | cut -d' ' -f3)
216-
tar -Oxf ./packages/x86_64/${{ matrix.package }}-stone-*.apk .PKGINFO | grep "^depend = ${{ matrix.package }}=${PKGVER}"
217214
else
218215
docker run --rm -v $(pwd):/work --workdir /work cgr.dev/chainguard/wolfi-base /bin/sh -c "sed 's|=.*||' -i /etc/apk/world; apk add --allow-untrusted -X ./packages/ packages/x86_64/${{ matrix.package }}-*.apk"
219216
fi

docs/BUILD-FILE.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -218,16 +218,6 @@ options:
218218
no-versioned-shlib-deps: true
219219
```
220220

221-
`no-vendored-cross-package-deps` - When a subpackage `X` ships a
222-
vendored shared library that's used by subpackage `Y`, melange won't
223-
generate a `depends` from `Y -> X`. By default, melange will generate
224-
a `depends` for `X=version`.
225-
226-
```
227-
options:
228-
no-vendored-cross-package-deps: true
229-
```
230-
231221
### scriptlets
232222
List of executable scripts that run at various stages of the package lifecycle,
233223
triggered by configurable events. These are useful to handle tasks that only

pkg/sca/e2e_test.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ func TestAnalyze(t *testing.T) {
7373
"so:liblcms2-e69eef39.so.2.0.16",
7474
"so:liblzma-13fa198c.so.5.4.5",
7575
"so:libm.so.6",
76-
"so:libopenblas64_p-r0-0cf96a72.3.23.dev.so",
7776
"so:libopenjp2-eca49203.so.2.5.0",
7877
"so:libpng16-78d422d5.so.16.40.0",
7978
"so:libpthread.so.0",
@@ -150,17 +149,6 @@ func TestAnalyze(t *testing.T) {
150149
"so:libm.so.6",
151150
"so:libmount.so.1",
152151
"so:libssl.so.3",
153-
// libsystemd-core-256.so and
154-
// libsystemd-shared-256.so are
155-
// false-positives that get added to
156-
// runtime deps because systemd links
157-
// against these vendored libraries,
158-
// but melange doesn't have enough
159-
// context to determine that they are
160-
// vendored because they're shipped by
161-
// another subpackage.
162-
"so:libsystemd-core-256.so",
163-
"so:libsystemd-shared-256.so",
164152
"so:libudev.so.1",
165153
},
166154
Provides: []string{

0 commit comments

Comments
 (0)