;; % export HOME=/root; cd /root/; export DEBIAN_FRONTEND=noninteractive; export APT_LISTCHANGES_FRONTEND=none; - with every run of deploy-these - bug maybe?

Andreas Reuleaux rx at a-rx.info
Sun Oct 23 19:27:28 BST 2022


Hi,

I am reporting this as a bug possibly [?] - I cannot really judge this -
but for your attention at least:

I have cl-consfigurator installed on debian testing (bookworm):

  root at laptop ~ # apt-cache policy cl-consfigurator
  cl-consfigurator:
    Installed: 1.1.1-1
    Candidate: 1.1.1-1
    Version table:
   *** 1.1.1-1 500
          500 http://deb.debian.org/debian bookworm/main amd64 Packages
          490 http://deb.debian.org/debian sid/main amd64 Packages
          100 /var/lib/dpkg/status
  root at laptop ~ #

And I start my consifgurator session with

  (asdf:load-system "my.consfig") (in-package :my.consfig)


my.consfig being defined similar to the com.example.consfig in the
introduction section of the docs: https://spwhitton.name/doc/consfigurator/introduction.html

my.consfig.asd:

  (asdf:defsystem :my.consfig
      :serial t
      :depends-on (#:consfigurator #:cl-interpol)
      :components ((:file "package")
                   (:file "utils")
                   (:file "consfig")
                   (:file "wifi")

                   (:file "mutt")
                   (:file "exim")
                   (:file "tools")
                   ...
                   ))



package.lisp:

  (in-package :cl-user)

  (consfigurator:defpackage-consfig :my.consfig
      (:use #:cl #:alexandria #:consfigurator

            ;; #:cl-interpol


            )


      (:local-nicknames (#:re #:cl-ppcre))

    )


etc. - This works fine for me since ages. - Now I have debug level 3 in
consfig.lisp - so maybe I see more debugging output than usual? (I am not sure
what the default debug level is - 2?)

(setq
consfigurator:*consfigurator-debug-level* 3)


Anyway after loading myconsfig with

  (asdf:load-system "my.consfig") (in-package :my.consfig)

as mentioned above already, I deploy some properties (install some tools
say):

  (deploy-these ((:ssh :user "root") :sbcl)  localhost (tools))


tools being defined as a proplist

  (defproplist tools :posix ()
    (apt:installed "bc")
    (apt:installed "aptitude")
    (apt:installed "ccze")
    ...
    )

And I see the debug output - show completely below - but every time I do
this - I see

  apt-get -y install libcap-dev libacl1-dev build-essential sbcl

being called:

;; Establishing SSH connection to localhost
;;     % export HOME=/root; cd /root/; export DEBIAN_FRONTEND=noninteractive; export APT_LISTCHANGES_FRONTEND=none; apt-get -y install libcap-dev libacl1-dev build-essential sbcl
;;     Reading package lists...
;;     Building dependency tree...
;;     Reading state information...
;;     libcap-dev is already the newest version (1:2.44-1).
;;     libacl1-dev is already the newest version (2.3.1-1).
;;     build-essential is already the newest version (12.9).
;;     sbcl is already the newest version (2:2.2.9-1).
;;     0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.


This seems a little too much (too often) to me: shouldn't these
(libcap-dev ...) dependencies be installed / checked just once (when loading my.consfig - and thus
consifugarator), not with every call of deploy-these [?]:

Thanks,
  Andreas


here my complete log of runnnig the above (deploy-these ...)
--------------------
(deploy-these ((:ssh :user "root") :sbcl)  localhost (tools))
;; Establishing SSH connection to localhost
;;     % export HOME=/root; cd /root/; export DEBIAN_FRONTEND=noninteractive; export APT_LISTCHANGES_FRONTEND=none; apt-get -y install libcap-dev libacl1-dev build-essential sbcl
;;     Reading package lists...
;;     Building dependency tree...
;;     Reading state information...
;;     libcap-dev is already the newest version (1:2.44-1).
;;     libacl1-dev is already the newest version (2.3.1-1).
;;     build-essential is already the newest version (12.9).
;;     sbcl is already the newest version (2:2.2.9-1).
;;     0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
;; Obtaining "--lisp-system" | "my.consfig" from a data source
;; Not uploading "--lisp-system" | "my.consfig" ver 3875004695 as remote has "3875004695"
;; Obtaining "--lisp-system" | "consfigurator" from a data source
;; Not uploading "--lisp-system" | "consfigurator" ver 3872528313 as remote has "3872528313"
;; Obtaining "--lisp-system" | "trivial-backtrace" from a data source
;; Not uploading "--lisp-system" | "trivial-backtrace" ver 3798193586 as remote has "3798193586"
;; Obtaining "--lisp-system" | "agnostic-lizard" from a data source
;; Not uploading "--lisp-system" | "agnostic-lizard" ver 3811345149 as remote has "3811345149"
;; Obtaining "--lisp-system" | "closer-mop" from a data source
;; Not uploading "--lisp-system" | "closer-mop" ver 3854914364 as remote has "3854914364"
;; Obtaining "--lisp-system" | "osicat" from a data source
;; Not uploading "--lisp-system" | "osicat" ver 3852824878 as remote has "3852824878"
;; Obtaining "--lisp-system" | "cffi-grovel" from a data source
;; Not uploading "--lisp-system" | "cffi-grovel" ver 3826449342 as remote has "3826449342"
;; Obtaining "--lisp-system" | "cffi-toolchain" from a data source
;; Not uploading "--lisp-system" | "cffi-toolchain" ver 3826449342 as remote has "3826449342"
;; Obtaining "--lisp-system" | "cffi" from a data source
;; Not uploading "--lisp-system" | "cffi" ver 3826449450 as remote has "3826449450"
;; Obtaining "--lisp-system" | "cl-interpol" from a data source
;; Not uploading "--lisp-system" | "cl-interpol" ver 3867770083 as remote has "3867770083"
;; Obtaining "--lisp-system" | "named-readtables" from a data source
;; Not uploading "--lisp-system" | "named-readtables" ver 3817557291 as remote has "3817557291"
;; Obtaining "--lisp-system" | "cl-unicode" from a data source
;; Not uploading "--lisp-system" | "cl-unicode" ver 3817186578 as remote has "3817186578"
;; Obtaining "--lisp-system" | "cl-heredoc" from a data source
;; Not uploading "--lisp-system" | "cl-heredoc" ver 3826222380 as remote has "3826222380"
;; Obtaining "--lisp-system" | "cl-ppcre" from a data source
;; Not uploading "--lisp-system" | "cl-ppcre" ver 3852211210 as remote has "3852211210"
;; Obtaining "--lisp-system" | "bordeaux-threads" from a data source
;; Not uploading "--lisp-system" | "bordeaux-threads" ver 3800553103 as remote has "3800553103"
;; Obtaining "--lisp-system" | "babel-streams" from a data source
;; Not uploading "--lisp-system" | "babel-streams" ver 3804130674 as remote has "3804130674"
;; Obtaining "--lisp-system" | "babel" from a data source
;; Not uploading "--lisp-system" | "babel" ver 3804130674 as remote has "3804130674"
;; Obtaining "--lisp-system" | "alexandria" from a data source
;; Not uploading "--lisp-system" | "alexandria" ver 3845044700 as remote has "3845044700"
;; Obtaining "--lisp-system" | "trivial-features" from a data source
;; Not uploading "--lisp-system" | "trivial-features" ver 3823533100 as remote has "3823533100"
;; Obtaining "--lisp-system" | "trivial-gray-streams" from a data source
;; Not uploading "--lisp-system" | "trivial-gray-streams" ver 3819902497 as remote has "3819902497"
;; Obtaining "--lisp-system" | "anaphora" from a data source
;; Not uploading "--lisp-system" | "anaphora" ver 3852824964 as remote has "3852824964"
;; Waiting for remote Lisp to exit, this may take some time ... done.  Output was:
;;     ;;; Computing Hangul syllable names
;;                 % export HOME=/root; cd /root/; export DEBIAN_FRONTEND=noninteractive; export APT_LISTCHANGES_FRONTEND=none; apt-get -y install bc
;;                 Reading package lists...
;;                 Building dependency tree...
;;                 Reading state information...
;;                 bc is already the newest version (1.07.1-3+b1).
;;                 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
;;         localhost :: apt installed bc ... ok
;;                 % export HOME=/root; cd /root/; export DEBIAN_FRONTEND=noninteractive; export APT_LISTCHANGES_FRONTEND=none; apt-get -y install aptitude
;;                 Reading package lists...
;;                 Building dependency tree...
;;                 Reading state information...
;;                 aptitude is already the newest version (0.8.13-5).
;;                 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
;;         localhost :: apt installed aptitude ... ok
;;                 % export HOME=/root; cd /root/; export DEBIAN_FRONTEND=noninteractive; export APT_LISTCHANGES_FRONTEND=none; apt-get -y install ccze
;;                 Reading package lists...
;;                 Building dependency tree...
;;                 Reading state information...
;;                 ccze is already the newest version (0.2.1-7).
;;                 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
;;         localhost :: apt installed ccze ... ok
;;                 % export HOME=/root; cd /root/; export DEBIAN_FRONTEND=noninteractive; export APT_LISTCHANGES_FRONTEND=none; apt-get -y install parallel
;;                 Reading package lists...
;;                 Building dependency tree...
;;                 Reading state information...
;;                 parallel is already the newest version (20220722+ds-1).
;;                 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
;;         localhost :: apt installed parallel ... ok
;;                 % export HOME=/root; cd /root/; export DEBIAN_FRONTEND=noninteractive; export APT_LISTCHANGES_FRONTEND=none; apt-get -y install secure-delete
;;                 Reading package lists...
;;                 Building dependency tree...
;;                 Reading state information...
;;                 secure-delete is already the newest version (3.1-8).
;;                 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
;;         localhost :: apt installed secure-delete ... ok
;;                 % export HOME=/root; cd /root/; export DEBIAN_FRONTEND=noninteractive; export APT_LISTCHANGES_FRONTEND=none; apt-get -y install imv
;;                 Reading package lists...
;;                 Building dependency tree...
;;                 Reading state information...
;;                 imv is already the newest version (4.3.0-1.1+b1).
;;                 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
;;         localhost :: apt installed imv ... ok
;;                 % export HOME=/root; cd /root/; export DEBIAN_FRONTEND=noninteractive; export APT_LISTCHANGES_FRONTEND=none; apt-get -y install python3-pygments
;;                 Reading package lists...
;;                 Building dependency tree...
;;                 Reading state information...
;;                 python3-pygments is already the newest version (2.12.0+dfsg-2).
;;                 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
;;         localhost :: apt installed python3-pygments ... ok
;;                 % export HOME=/root; cd /root/; export DEBIAN_FRONTEND=noninteractive; export APT_LISTCHANGES_FRONTEND=none; apt-get -y install mupdf
;;                 Reading package lists...
;;                 Building dependency tree...
;;                 Reading state information...
;;                 mupdf is already the newest version (1.20.3+ds1-1).
;;                 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
;;         localhost :: apt installed mupdf ... ok
;;                 % export HOME=/root; cd /root/; export DEBIAN_FRONTEND=noninteractive; export APT_LISTCHANGES_FRONTEND=none; apt-get -y install universal-ctags
;;                 Reading package lists...
;;                 Building dependency tree...
;;                 Reading state information...
;;                 universal-ctags is already the newest version (5.9.20210829.0-1).
;;                 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
;;         localhost :: apt installed universal-ctags ... ok
;;     localhost :: ok
;; No changes were made.
NIL
*





More information about the sgo-software-discuss mailing list