This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=a4ed77d833c3e0f3699ca25c7376f24ecac4dd80 commit a4ed77d833c3e0f3699ca25c7376f24ecac4dd80 Author: Guillem Jover <[email protected]> AuthorDate: Tue Nov 7 23:56:36 2023 +0100 dpkg-shlibdeps: Do not require debian/control when parsing CLI options Now that we are not registering the private library directories while parsing the options, but instead we queue them for later. We can move the parsing of debian/control, after the option parsing too, so that we do not require it, which made the file to be required from the current working directory even for options such as --version or --help. Fixes: commit 292655415c34db23e6d5014b6f71d0060f5811e4 Closes: #1055536 --- scripts/dpkg-shlibdeps.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/dpkg-shlibdeps.pl b/scripts/dpkg-shlibdeps.pl index 5f6925b44..96c0b0bbd 100755 --- a/scripts/dpkg-shlibdeps.pl +++ b/scripts/dpkg-shlibdeps.pl @@ -79,10 +79,6 @@ my $host_arch = get_host_arch(); my (@pkg_shlibs, @pkg_symbols, @pkg_root_dirs); -my $control = Dpkg::Control::Info->new(); -# Initialize build API level. -get_build_api($control); - my ($stdout, %exec); foreach (@ARGV) { if (m/^-T(.*)$/) { @@ -164,6 +160,10 @@ if (-d 'debian') { push @pkg_root_dirs, keys %uniq; } +my $control = Dpkg::Control::Info->new(); +# Initialize build API level. +get_build_api($control); + foreach my $libdir (@priv_lib_dirs) { Dpkg::Shlibs::add_library_dir($libdir); } -- Dpkg.Org's dpkg

