Skip to content
Snippets Groups Projects
  1. May 22, 2023
  2. Feb 13, 2023
  3. Jan 17, 2023
  4. Jan 13, 2023
  5. Jan 01, 2023
  6. Dec 23, 2022
  7. Dec 19, 2022
    • Morgan Adamiec's avatar
      Fix repo-add · 52eb094a
      Morgan Adamiec authored and Allan McRae's avatar Allan McRae committed
      Commit 4f43ce3e broke repo-add by
      switching to parseopts without accounting for the added "--". This caused
      the dbname to always be read as "--".
      
      Accounts for "--" and makes repo-add respect "--" as end of opts.
      52eb094a
  8. Dec 18, 2022
  9. Dec 13, 2022
  10. Dec 12, 2022
    • Allan McRae's avatar
      libmakepkg: fix compatibility with bash-5.2 patsub_replacement · 0e938f18
      Allan McRae authored
      
      Bash-5.2 introduced the patsub_replacement shell option, which is enabled
      by default.  Apparently is it supposed to handle a sed-like idiom, but
      what it does achieve is making any substitution involving a "&" requiring
      special care.
      
      For makepkg's DLAGENTS, we replace "%o" and "%u" if present.  Any "&" in
      the replacement fields triggers patsub_replacement unless quoted.  This is
      particularly important for the URL field.
      
      Add relevant quotes to avoid issues.
      
      Signed-off-by: default avatarAllan McRae <allan@archlinux.org>
      0e938f18
  11. Dec 04, 2022
  12. Nov 08, 2022
  13. Nov 07, 2022
  14. Oct 15, 2022
    • Andrew Gregory's avatar
      set bash env variables before running scripts · da68447e
      Andrew Gregory authored
      Bash sources user configuration files under a number of conditions that
      can cause issues with scripts when bash is used as the scriptlet shell.
      
      Bash assumes it's being run under rsh/ssh if stdin is connected to a
      socket and sources the user bashrc unless the environment variable
      $SHLVL is >= 2.  Commit 6a4c6a02
      switched from pipes to sockets when communicating with child processes
      to work around SIGPIPE issues.  Normally $SHLVL would be inherited from
      the shell running pacman, but operations involving scriptlets are
      generally run with sudo which does not let the $SHLVL variable through
      unless specifically configured to.
      
      Similarly $BASH_ENV can cause bash to source user-specified configuration
      files if set.
      
      https://lists.gnu.org/archive/html/help-bash/2022-02/msg00082.html
      
      
      
      Note: the list discussion and bash source all reference SHLVL >= 2, this
      is the SHLVL value *after* bash has incremented it on startup.  Setting
      it to 1 in pacman is sufficient to disable the unwanted behavior.
      
      Signed-off-by: default avatarAndrew Gregory <andrew.gregory.8@gmail.com>
      da68447e
  15. Oct 09, 2022
  16. Oct 08, 2022
  17. Oct 02, 2022
Loading