Skip to content

Commit

Permalink
libpkg: fix a few tests for Debian CI
Browse files Browse the repository at this point in the history
Sponsored by:	The FreeBSD Foundation
  • Loading branch information
ifreund committed Dec 9, 2024
1 parent de4468a commit 6cc6499
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions libpkg/pkg_elf.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,11 @@ analyse_elf(struct pkg *pkg, const char *fpath)
goto cleanup; /* Invalid ABI */
}

#ifdef __FreeBSD__
if (ctx.abi.os == PKG_OS_FREEBSD && elfhdr.e_ident[EI_OSABI] != ELFOSABI_FREEBSD &&
!is_old_freebsd_armheader(&elfhdr)) {
ret = EPKG_END;
goto cleanup;
}
#endif

if ((data = elf_getdata(dynamic, NULL)) == NULL) {
ret = EPKG_END; /* Some error occurred, ignore this file */
Expand Down
2 changes: 1 addition & 1 deletion tests/frontend/pkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pkg_config_defaults_body()
-o match:'^ *ASSUME_ALWAYS_YES = false;$' \
-o match:'^ *PLIST_KEYWORDS_DIR = "";$' \
-o match:'^ *SYSLOG = true;$' \
-o match:'^ *ABI = "[a-zA-Z0-9]+:[a-z\.A-Z0-9]+:[a-zA-Z0-9]+";$'\
-o match:'^ *ABI = "[a-zA-Z0-9]+:[a-z\.A-Z0-9]+:[a-zA-Z0-9_]+";$'\
-o match:'^ *DEVELOPER_MODE = false;$' \
-o match:'^ *VULNXML_SITE = "https://vuxml.freebsd.org/freebsd/vuln.xml.xz";$' \
-o match:'^ *FETCH_RETRY = 3;$' \
Expand Down

0 comments on commit 6cc6499

Please sign in to comment.