Re: freecad 19.1 / flatpak
Hi all, I had some free time and I decided to spend it on updating the freecad package to the 0.19.1 version. I managed it to compile with the changes I add below, but I prefer someone to test it thoroughly because it's a program I don't use that much so I don't know if the workbenches are working as expected, or if the addons work. Pleas Christophe, could you install try it and see if it works? This is the diff on the current guix repository, I hope that's enough to let you use it. If its not, I can make a separate package for you. Cheers, Ekaitz diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index 8d7ba9c1da..8e7974f1f1 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -2351,21 +2351,19 @@ OpenSCAD code. It supports syntax highlighting, indenting and refilling of comments."))) (define-public freecad - (let ((commit-ref "7616153b3c31ace006169cdc2fdafab484498858") -(revision "1")) -(package + (package (name "freecad") - (version (git-version "0.18.5" revision commit-ref)) + (version "0.19.1") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/FreeCAD/FreeCAD";) - (commit commit-ref))) + (commit version))) (file-name (git-file-name name version)) (sha256 (base32 - "16965yxnp2pq7nm8z3p0pjkzjdyq62vfrj8j3nk26bwc898czyn2" + "0c53q2iawy4yfp11czyc7lbr9ivp3r7v24x4c20myh11wyplffc0" (build-system qt-build-system) (native-inputs `(("doxygen" ,doxygen) @@ -2393,6 +2391,8 @@ comments."))) ("python-shiboken-2" ,python-shiboken-2) ("python-pivy" ,python-pivy) ("python-wrapper" ,python-wrapper) + ("python-gitpython" ,python-gitpython) + ("python-pyyaml" ,python-pyyaml) ("qtbase" ,qtbase) ("qtsvg" ,qtsvg) ("qtx11extras" ,qtx11extras) @@ -2454,7 +2454,7 @@ customization.") license:lgpl2.1+ license:lgpl2.0+ license:gpl3+ -license:bsd-3) +license:bsd-3 (define-public libmedfile (package
How to debug failed boot after successful reconfigure?
Hi list. I'm trying to wrap my head around running guix. While question in subj is general it was prompted by a real failure, so really I am interested both in "general approach" as well as solving the actual problem I ran into. having updated with `guix pull` I run `sudo guix system reconfigure config.scm` which succeeds. I reboot and the boot fails attempting to mount the new file-systems I've introduced in that config. This being guix I reboot into older generation. However, now I am unsure how to debug what'd happened. E.g. I would like to: - look at failed dmesg or equivalent log, - look at files that reconfigure produced in /etc, e.g. /etc/fstab IIUC when I boot even from an older generation, the failed one will be marked as "current" (that is the newest reconfigured) but everything in /etc appears to belong to the older generation - hardly surprising. Following link shown by `guix system describe` in my case /var/guix/profiles/system-2-link I don't see e.g. /etc/fstab I'm interested in. Where are those files? So, the questions above (maybe others I should've asked?) amount to my asking, how to debug the failure. My specific case was adding these files-systems to my os declaration: (file-system (mount-point "/mnt/tempb") (device (file-system-label "tempb")) (type "ext4") #;(flags '(no-atime)) (options "defaults,noatime,discard,user") (create-mount-point? #t)) At boot time I got multiple errors from mount unable to figure the options supplied. This in itself is puzzling seeing how I did check /etc/fstab after reconfigure and was able to manually mount as per that generated /etc/fstab without issue. One note is that I think the (create-mount-point? #t) had not been honored, but I did create those mount points manually. Dunno, might be a bug in guix proper. But that's minor. Thanks -- Best regards Vlad Kozin
Re: Enable glossary at weblate translation project
On 7 April 2021 19:44:13 UTC, Julien Lepiller wrote: >Go to a Russian string that contains a word you want to add to the glossary. >On the top right, you will see the Glossary box where you should be able to >click on "Add term to glossary". Adding a first term should create the >glossary. I tried it, but when the window pops up one of the fields is "Glossary" drop-down box, but it's empty. On the other hand the same window in French lets me choose "guix Glossary" and add new term. >Please tell me if that doesn't work, I'll have to figure that out with the >instance's admins :) So, yeah. I think your help is needed :) On the main page of a project, one of the components is "guix Glossary" [0], here I see "Start new translation" button which should add new glossary, I believe. But I can't press this button. [0] https://translate.fedoraproject.org/projects/guix/glossary/
Re: Edits to `etc/resolv.conf` being overwritten
Gary Johnson writes: > That's unfortunate to hear. Perhaps you could check out the > network-manager-service-type? I believe it includes a parameter that > lets you tell NetworkManager not to overwrite /etc/resolv.conf. The > command-line interface for NetworkManager is called nmtui. This is what > I use on my machine. I do not have NetworkManager installed and am not using `network-manager-service-type`. There is no NetworkManager service listed when I run `sudo herd status`. The commands I am using to connect to the internet are: ``` sudo ip link set up sudo wpa_supplicant -Dnl80211 -i -c/path/to/wpa/config.conf -B sudo dhclient ``` It is almost like `sudo dhclient ` is taking instruction from the router (provided by my internet service provider) to overwrite `/etc/resolv.conf` to the DNS of my internet service provider. > (use-modules (ice-9 rdelim)) > > (define my-host-aliases (with-input-from-file "/path/to/your/file" >(lambda () (read-delimited > "" Thank you for sharing this. It works for me.
Re: Edits to `etc/resolv.conf` being overwritten
Hello, On Thu, Apr 8, 2021 at 9:08 PM Bone Baboon wrote: > It is almost like `sudo dhclient ` is taking > instruction from the router (provided by my internet service provider) > to overwrite `/etc/resolv.conf` to the DNS of my internet service > provider. I'd try the "-R" command line option without giving "domain-name-servers" See details in the dhclient's man page -- Vincent Legoll
Re: How to create a service for contents of arbitrary file
Gary Johnson writes: > In addition to Julien's suggestion, I'll also point out that you can > tell Emacs to not use a blinking cursor by including this line in your > ~/.emacs.d/init.el file: > > (blink-cursor-mode 0) Thank you for pointing out `blink-cursor-mode` I am aware of it and tested it. When Emacs is started with `emacsclient --tty` from a virtual terminal or a terminal emulator `blink-cursor-mode` does not seem to do anything. When I use a graphical Emacs `blink-cursor-mode` does control the cursor blinking.
Re: How to create a service for contents of arbitrary file
Julien Lepiller writes: > There's special-files-service-type described here: > http://guix.gnu.org/manual/devel/en/html_node/Base-Services.html#Base-Services > > However, I'm not sure it will work in /sys. I guess you'll have to try and > report back :) Thank you for this suggestion. I added this to services in my system configuration: ``` (service special-files-service-type `(("/sys/class/graphics/fbcon/cursor_blink" "/home/user/no-blink")) ``` The contents of `home/user/no-blink` is "0". When I run a system reconfiguration I get this error "guix system: error: symlink: Operation not permitted: "sys/class/graphics/fbcon/cursor_blink.new". Any ideas on how to overcome this error? The contents of `/sys/class/graphics/fbcon/cursor_blink` is reset to "1" every time the computer is turned on and the cursor is blinking. I would like to get a service working that sets it to "0" so that I do not need to manually change this setting every time I boot the computer.
Re: How to create a service for contents of arbitrary file
I think this is because you cannot replace a file a /sys like guix tries to. Instead, it seems you can set a linux kernel argument on the command line run by grub at startup. According to the internet, that would be "vt.global_cursor_default=0" You can set it up in your config by adding a kernel-arguments field to you operating-system declaration, like this: (operating-system (kernel-arguments (cons "vt.global_cursor_default=0" %default-kernel-argumentt))) Hope that helps! Le 8 avril 2021 19:46:08 GMT-04:00, Bone Baboon a écrit : > >Julien Lepiller writes: > >> There's special-files-service-type described here: >http://guix.gnu.org/manual/devel/en/html_node/Base-Services.html#Base-Services >> >> However, I'm not sure it will work in /sys. I guess you'll have to >try and report back :) > >Thank you for this suggestion. > >I added this to services in my system configuration: > >``` >(service special-files-service-type > `(("/sys/class/graphics/fbcon/cursor_blink" > "/home/user/no-blink")) >``` > >The contents of `home/user/no-blink` is "0". > >When I run a system reconfiguration I get this error "guix system: >error: symlink: Operation not permitted: >"sys/class/graphics/fbcon/cursor_blink.new". > >Any ideas on how to overcome this error? > >The contents of `/sys/class/graphics/fbcon/cursor_blink` is reset to >"1" >every time the computer is turned on and the cursor is blinking. I >would like to get a service working that sets it to "0" so that I do >not >need to manually change this setting every time I boot the computer.
Re: Edits to `etc/resolv.conf` being overwritten
Bone Baboon writes: > It is almost like `sudo dhclient ` is taking > instruction from the router (provided by my internet service provider) > to overwrite `/etc/resolv.conf` to the DNS of my internet service > provider. That is in fact what dhclient does. There is a list of workarounds on Debian Wiki: https://wiki.debian.org/resolv.conf I use the file attribute one on my Debian system. The ideal solution is to re-implement dhclient in Guile, and make it a configurable alternative to dhcp-client-service-type. That would be a lot of work though. -- Vladimir Sedach Software engineering services in Los Angeles https://oneofus.la