Skip to content
Snippets Groups Projects
  1. Feb 06, 2023
  2. Jan 25, 2023
  3. Jan 24, 2023
  4. Jan 16, 2023
    • Guillem Jover's avatar
      test: Set the permissions explicitly for the copied ChangeLog.old file · e895de05
      Guillem Jover authored
      The source ChangeLog.old file might have different permissions depending
      on the umask during the source package unpack. Copy the file without
      any flags, and then explicitly set known permissions on the result file.
      
      This should fix the build on reproducible variants.
      
      Fixes: commit 2c2f7066
      e895de05
    • Guillem Jover's avatar
      Dpkg::OpenPGP::Backend::GnuPG: Fallback to use «gpg dearmor» if present · b698489d
      Guillem Jover authored
      When verifying a signature, we were using the internal dearmor() method,
      as that makes it possible to not have gpg around when we are using gpgv.
      
      The problem is that the internal dearmor() method does not handle
      concatenated ASCII Armor blocks, and might then fail to find the
      certificates. When using gpgv this is only a partial regression as
      we were previously not verifying at all on minimal systems where gpg
      was not available. But when it is available, now that has regressed.
      
      In the future we might require no concatenated ASCII Armor blocks,
      but for now let's mitigate this regression.
      
      Fixes: commit a11d7340
      Reported-by: Sven Joachim <svenjoac@gmx.de> (on IRC)
      b698489d
    • Guillem Jover's avatar
      Dpkg::OpenPGP::Backend::GnuPG: Touch trustedkeys.gpg on temporary gpg home · 9cca3e8f
      Guillem Jover authored
      The gpgv command expects a trustedkeys.gpg keyring, and if there is none
      it will try the trustedkeys.kbx one, but then will emit an error such as:
      
        gpgv: unknown type of key resource 'trustedkeys.kbx'
        gpgv: keyblock resource '<GPGHOME>/trustedkeys.kbx': General error
      
      This error will only show if the gpgv invocation failed for other
      reasons, but it is still an unnecessary distraction. Avoid that error,
      by touching the trustedkeys.gpg keyring.
      9cca3e8f
  5. Jan 15, 2023
  6. Jan 11, 2023
  7. Jan 10, 2023
  8. Jan 07, 2023
    • Guillem Jover's avatar
      Dpkg::BuildFlags: Fix strip method to always work with duplicates · 5f6e45fb
      Guillem Jover authored
      The regex was not correctly matching at the beginning of the line with
      leading spaces, which could be left by a previous replacement from
      the same s/// operator. Instead switch to split the flag value and
      filter based on a hash, which means we do not need to care about such
      space issues anymore.
      
      This change should not change the semantics for space separated options
      in the flags, as the code was already splitting the passed values on
      spaces, and then remapping on the entire flag value.
      
      Improve strip unit tests to cover all these cases.
      
      Closes: #1028044
      5f6e45fb
Loading