Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding scratch progress on nix profile changes etc #42

Draft
wants to merge 22 commits into
base: master
Choose a base branch
from

Commits on Jun 16, 2024

  1. Configuration menu
    Copy the full SHA
    f166736 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2024

  1. Configuration menu
    Copy the full SHA
    b210af7 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2024

  1. Configuration menu
    Copy the full SHA
    9c0dcc9 View commit details
    Browse the repository at this point in the history
  2. Uproszczone ustawienia asdf

    Wcześniej podpinałem pliki conf z użyciem klauzuli :include. Niestety w ten
    sposób wymagana jest wyczyszczenie konfiguracji asdf żeby podłapać system nowo
    dodane do profilu.
    
    (Jak się potem okazało, nawet z dodaniem całego katalogu i tak trzeba resetować
    konfigurację)
    
    Zamiast tego mogę przetłumaczyć na sztywno cały katalog systems na fasl. Wymaga
    to zachowania konwencji gdzie są fasle. Niestety w tym przypadku wymagana jest
    pełna kopia a nie symlink, chyba że ustawi się asdf:*resolve-symlinks*.
    
    Ustawienie samych linków do asdków wymagałoby użycia truename na symlinku,
    jednak nie wiem jak by to działało gdyby pliki źródłowe znajdowały się w
    katalogu wyżej niż sam asd.
    
    Teraz problemem jest to, że zainstalowanie tej samej biblioteki do profilu kilka
    razy pod rząd postępująco nadpisuje wcześniejsze pliki - to znaczy że nie są
    wykrywane konflikty. Może ostatecznie będzie trzeba kopiować źródła.
    kgalkowski-comscore authored and Kasper Gałkowski committed Jul 13, 2024
    Configuration menu
    Copy the full SHA
    3ceabab View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2024

  1. Configuration menu
    Copy the full SHA
    aa7a991 View commit details
    Browse the repository at this point in the history
  2. już nie trzeba usuwać asd bo używam cl source registry cache

    Kasper Gałkowski committed Jul 14, 2024
    Configuration menu
    Copy the full SHA
    66a2d20 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2024

  1. TODO build-time-only dependencies

    Kasper Gałkowski committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    d5b963c View commit details
    Browse the repository at this point in the history
  2. naprawiłem build cl-unicode

    Powinienem tak naprawdę użyć output-files w perform, ale patch byłby
    większy. Powinno to zostać naprawione u źródła tak czy siak.
    Kasper Gałkowski committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    f917b7b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    94ad43b View commit details
    Browse the repository at this point in the history
  4. przepisałem lispWithPackages aby używało buildEnv

    tak się wydaje czyściej bo nie są kopiowane envy wygenerowane w setup hooku
    
    Zamiast tego source registry/output translations mają tylko po jednym wpisie z
    odniesienem do zbudowanego enva
    
    pythonPackages robi podobnie
    
    nie wiem jak zachowa się symlink do asdf przy konfliktach w profilu
    Kasper Gałkowski committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    41565ea View commit details
    Browse the repository at this point in the history
  5. na razie nie sprawdzam niezadeklarowanych podsystemów

    Kasper Gałkowski committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    18b825b View commit details
    Browse the repository at this point in the history
  6. uproszczony library path setup hook

    Kasper Gałkowski committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    c7c1b46 View commit details
    Browse the repository at this point in the history
  7. jednak nie można nadpisać output-file żeby load fasli działało

    "The manner in which a source file is distinguished from a compiled file is
    implementation-dependent."
    Kasper Gałkowski committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    da546b1 View commit details
    Browse the repository at this point in the history
  8. Co z kilkoma różynmi wersjami ASDF w profilu?

    Kasper Gałkowski committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    1d02c20 View commit details
    Browse the repository at this point in the history
  9. nie działało z nieznanego powodu w substitute bez nawiasów

    Kasper Gałkowski committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    2869465 View commit details
    Browse the repository at this point in the history
  10. usunąłem nie używany już regexp

    Kasper Gałkowski committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    6bb13a0 View commit details
    Browse the repository at this point in the history
  11. ogólnie teraz działa budowanie tylko na sbcl

    inne impl mają problem z widocznością output translations
    
    prawdopodobnie przyczyną jest sposób traktowania symlinków
    Kasper Gałkowski committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    a3c9f8c View commit details
    Browse the repository at this point in the history
  12. dodatkowa notatka do asdf:load-system

    z powodu użycia symlinków w share/common-lisp, aby działało wczytywanie
    load-system wymagane jest ustawienie asdf:*resolve-symlinks* na nil.
    
    Inaczej będzie mapował do zlinkowanego źródła (/nix/store/...-source/*.fasl)
    zamiast do ścieżki logicznej (~/.nix-profile/share/common-lisp/fasl/.../*.fasl).
    Kasper Gałkowski committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    c5cbfc8 View commit details
    Browse the repository at this point in the history
  13. poprawione tworzenie podwójnych linków do pierwszego systemu

    Kasper Gałkowski committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    e0515be View commit details
    Browse the repository at this point in the history
  14. Podejście z symlinkami + :TREE nie będzie działać.

    Różne implementacje mają niekompatybilne traktowanie symlinków.
    
    SBCL potrafi nie rozwiązywać.
    
    ECL rozwiązuje nawet przy :resolve-symlinks nil jeśli katalog nadrzędny jest
    symlinkiem.
    
    ABCL również potrafi nie rozwiązywać ale wymaga to patcha w ASDF.
    
    Ogólnie robi się gnój i chyba lepiej będzie wrócić do niestety bardziej
    skomplikowanego (ale dającego więcej kontroli) podejścia z :INCLUDE plików
    konfiguracyjnych w podkatalogach src/fasl z komponentem :IMPLEMENTATION.
    Kasper Gałkowski committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    4bae9fc View commit details
    Browse the repository at this point in the history
  15. translation-function też raczej nie zadziała

    ponieważ symlinki są rozwiązane już przez cl:directory i dalej nic z tym nie
    zrobię
    
    '#' will be ignored, and an empty message aborts the commit.  # # On branch
    scratch # Your branch is up to date with 'origin/scratch'.  #
    Kasper Gałkowski committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    ce94130 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2024

  1. Spróbowałem zapisywania output translations do conf.d poprzedzonych #…

    …+ECL, żeby
    
    nie było potrzeby tworzenia podkatalogów na każdą implementację. W ten sposób
    działałoby to przy wrzuceniu całego conf.d do XDG_DATA_DIRS. Niestety w ten
    sposób nie zostanie obsłużony przypadek różnych wersji tej samej implementacji,
    więc prawdopodobnie będę musiał tak czy siak tworzyć podkatalogi
    asdf:implementation-identifier i być może dodać nową zmienną
    NIX_ASDF_OUTPUT_TRANSLATION_CONF_DIRS po to, żeby nie musieć wrzucać sexpr do
    ASDF_OUTPUT_TRANSLATIONS co przeszkadza w ustawianiu jej z użyciem
    shell-friendly DSL przez użytkownika. Ta nowa zmienna działałaby tylko w
    wrapperze withPackages (lub być może również w buildPhase po setup hooku), więc
    raczej nie muszę się przejmować używalnością tego przez użytkownika, tzn. ta
    zmienna będzie szczegółem implementacyjnym nie udokumentowanym w podręczniku.
    Kasper Gałkowski committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    f427352 View commit details
    Browse the repository at this point in the history