i'm not sure what's the expected behavior. what i'm trying to achieve is to exclude some dirs inside my ~/common-lisp/
--------
$ cat ~/.config/common-lisp/source-registry.conf.d/00-excluded-systems.conf (:also-exclude "sbcl" "disabled-systems")
$ rlwrap sbcl --no-userinit --no-sysinit This is SBCL 1.2.4.debian, an implementation of ANSI Common Lisp. More information about SBCL is available at http://www.sbcl.org/.
SBCL is free software, provided as is, with absolutely no warranty. It is mostly in the public domain; some portions are provided under BSD-style licenses. See the CREDITS and COPYING files in the distribution for more information. * (require :asdf)
("ASDF" "asdf" "UIOP" "uiop") ;; force asdf upgrade * (asdf:load-system :asdf)
T * (gethash "cl-postgres+local-time" asdf::*source-registry*)
#P"/home/alendvai/common-lisp/disabled-systems/local-time.old-darcs/cl-postgres+local-time.asd" T * asdf::*source-registry-exclusions*
(".bzr" ".cdv" ".git" ".hg" ".pc" ".svn" "CVS" "RCS" "SCCS" "_darcs" "_sgbak" "autom4te.cache" "cover_db" "_build" "debian") * asdf/upgrade:*asdf-version*
"3.1.5.18"
----------
it may or may not be normal that *source-registry-exclusions* doesn't contain "disabled-systems".
(trace asdf/source-registry::process-source-registry-directive :print asdf::*source-registry-exclusions*)
the output of the above^ trace suggests that it gets processed (and recorded into a dynamically bound variable? which is then thrown away?).
any hints?
I haven't used this feature much, but the way it works is it only locally affects the rest of the current source-registry form, and isn't inherited, so the trees that rely on it should be listed below the :also-exclude form in the same :source-registry form.
For this to apply to your ~/common-lisp/ you'd have to list ~/common-lisp/ explicitly, and then :ignore-inherited-configuration to avoid the regular entry for ~/common-lisp/ and then explicitly include any configuration you'd like to inherit anyway.
—♯ƒ • François-René ÐVB Rideau •Reflection&Cybernethics• http://fare.tunes.org License Agreement: By reading this message, you agree to run around the room which you are currently in, flapping your arms, and squawking like a chicken.
On Fri, Oct 2, 2015 at 11:37 AM, Attila Lendvai attila@lendvai.name wrote:
i'm not sure what's the expected behavior. what i'm trying to achieve is to exclude some dirs inside my ~/common-lisp/
$ cat ~/.config/common-lisp/source-registry.conf.d/00-excluded-systems.conf (:also-exclude "sbcl" "disabled-systems")
$ rlwrap sbcl --no-userinit --no-sysinit This is SBCL 1.2.4.debian, an implementation of ANSI Common Lisp. More information about SBCL is available at http://www.sbcl.org/.
SBCL is free software, provided as is, with absolutely no warranty. It is mostly in the public domain; some portions are provided under BSD-style licenses. See the CREDITS and COPYING files in the distribution for more information.
- (require :asdf)
("ASDF" "asdf" "UIOP" "uiop") ;; force asdf upgrade
- (asdf:load-system :asdf)
T
- (gethash "cl-postgres+local-time" asdf::*source-registry*)
#P"/home/alendvai/common-lisp/disabled-systems/local-time.old-darcs/cl-postgres+local-time.asd" T
- asdf::*source-registry-exclusions*
(".bzr" ".cdv" ".git" ".hg" ".pc" ".svn" "CVS" "RCS" "SCCS" "_darcs" "_sgbak" "autom4te.cache" "cover_db" "_build" "debian")
- asdf/upgrade:*asdf-version*
"3.1.5.18"
it may or may not be normal that *source-registry-exclusions* doesn't contain "disabled-systems".
(trace asdf/source-registry::process-source-registry-directive :print asdf::*source-registry-exclusions*)
the output of the above^ trace suggests that it gets processed (and recorded into a dynamically bound variable? which is then thrown away?).
any hints?
-- • attila lendvai • PGP: 963F 5D5F 45C7 DFCD 0A39 -- “The worst enemy of clear thinking is the propensity to hypostatize, i.e. to ascribe substance or real existence to mental constructs or concepts.” — Ludwig von Mises (1881–1973), 'The Ultimate Foundations of Economic Science' (1962)
For this to apply to your ~/common-lisp/ you'd have to list ~/common-lisp/ explicitly, and then :ignore-inherited-configuration to avoid the regular entry for ~/common-lisp/ and then explicitly include any configuration you'd like to inherit anyway.
ouch.
is there any other way to tell :tree to ignore some branches?
it would be useful both for optimization, and also for dealing with different versions of the same system. in my original config my hand-written scanner was e.g. ignoring _foo directories, so i could just rename dirs to use a different version.
i'd like to use a default config with as little interference as possible, so i don't want to just shadow all the /etc/common-lisp/... configs.
On Thu, Oct 8, 2015 at 1:35 PM, Attila Lendvai attila@lendvai.name wrote:
For this to apply to your ~/common-lisp/ you'd have to list ~/common-lisp/ explicitly, and then :ignore-inherited-configuration to avoid the regular entry for ~/common-lisp/ and then explicitly include any configuration you'd like to inherit anyway.
ouch.
is there any other way to tell :tree to ignore some branches?
it would be useful both for optimization, and also for dealing with different versions of the same system. in my original config my hand-written scanner was e.g. ignoring _foo directories, so i could just rename dirs to use a different version.
i'd like to use a default config with as little interference as possible, so i don't want to just shadow all the /etc/common-lisp/... configs.
Well, if you do it early during your build and/or after clearing any asdf state, you can modify *default-source-registry-exclusions* and add your changes there.
—♯ƒ • François-René ÐVB Rideau •Reflection&Cybernethics• http://fare.tunes.org People are not born rich and become poor because of some dreadful phenomenon. They are born deprived of anything and become rich when they do but by the accumulated fruits of their own and their ancestors' labor: their capital.