Re: Patch adding POWER9 cross compile support
In the next step I will try to build the bootstrap binaries. On 02/27/2019 10:24 PM, Jonathan Brielmaier wrote: On 2/27/19 7:29 PM, Tobias Platen wrote: I succesfully crosscompiled GNU Hello and all its dependencies including glibc for POWER9. Without my patch glibc will fail to build. I am using the core-updates branch, since the default branch uses an outdated version of GCC. Tobias Nice! And it's just a simple one-liner :P I get following result for hello: /gnu/store/x0372n45l5ckiddra4g2xjl693y2wld3-hello-2.10
Re: Guix video repository: First video script commited
On Thu, 28 Feb 2019 14:36:41 -0500 sirgazil wrote: > Hi, Laura, everyone, > > > El 28/02/19 a las 1:45 p. m., Laura Lazzati escribió: > > On Thu, Feb 28, 2019 at 2:54 PM Laura Lazzati > > wrote: > >> > >>> I “installed” the fonts by placing them in ~/.fonts, running > >>> “fc-cache -f” as needed. As long as fc-cache knows about the > >>> directory it will be fine. > > When Ricardo knows, he knows :P. > > My missing step was putting it under ~/.fonts. Will add mabe a fonts > > folder under root dir and then a script to move it to ~/.fonts and > > run fc-cache, WDYT? It would be nice to have the fonts from a Guix package and just add that to the environment. Where are the fonts from? Do we already have a Guix package for them or can we pack it? If there is no Guix-package, I think it is OK to put the font for the video project just into the repository, at least we know it is a free font. > These are the steps I followed to build the videos: > > 1. $ git clone https://git.savannah.gnu.org/git/guix/videos.git (I > got commit 03930dc) > 2. Add missing fonts to $HOME/.fonts > 3. $ fc-cache -f > 4. $ fc-list ($HOME/.fonts is listed) > 5. $ cd path/to/videos > 6. $ ./environment.sh > 7. [env]# cd 01-installation-from-script > 8. [env]# ./buildall.sh I'm still running it with the fonts now, so I can't say it for sure, but you should try to execute steps 2+3+4 AFTER step 6: You enter a CONTAINER, and inside the container, only the current working directory is visible, everything below is just empty. So your added files and fc-cache changes aren't visible inside the container. Conversely, everything you mess up inside the container with your ~/.fonts directory should not affect your real users directory (as long as you don't enter the container from ~ as working directory). > As for the corrupted videos, in the Totem video player, the video > plays but black colors are displayed green instead (maybe result of > the corruption?). In VLC the video plays OK, and the colors are fine. We used VLC to play back the videos. You are right, with totem the background is green for the slides and light-purple for the CLI sessions. Maybe there is a problem with the alpha channel? Björn pgp6mm5NfU_le.pgp Description: OpenPGP digital signature
Re: Guix video repository: First video script commited
Hi! > No you are right, my bad. It seems it really won't mix. That's great. Yeah :) One thing less that we have to solve ;) I updated the README, just to let people know how to run it for now. It quite awful, but I hope it helps the community understand how to run the scipts. Regards :) Laura
Re: Guix video repository: First video script commited
On Thu, 28 Feb 2019 11:47:26 +0100 Giovanni Biscuolo wrote: > also: could you please remove "USEFUL" and "NICE_TO_HAVE" from the > build environment since we do not strictly need them at build time? > > ...nevertheless, I agree they are useful and nice to have in our user > (or project) environment for editing/developing purposes :-) Hi Giovanni, since the environment is a CONTAINER, it contains really nothing besides what you explicitly add to it. I added those variables. It is really helpful to have at least "ls" and "less", and during development some more tools. When everything is settled, we can shrink that down to coreutils and less for example. Björn pgpfTwkd8PGad.pgp Description: OpenPGP digital signature
Re: Guix video repository: First video script commited
Hello Laura, > I don't like mixing with my home dir either, but this way works :/ > I created a script that needs to be run every time you get into the > environment to update the fonts in ~/.fonts. I didn't have .fonts > before in my home dir, and after creating it inside the environment I > can't see it either being outside. Don't know about you. But, in case No you are right, my bad. It seems it really won't mix. That's great. > people have it, when we finish creating the videos we could remove the > fonts that we had to install, WDYT? Sorry, I am new to this fonts > stuff, I am reading and trying different things. > > Regards :) > Laura Best regards, g_bor
Re: Guix video repository: First video script commited
Hi! Thanks for the steps! > + Text is not rendered with the appropriate font (known issue). > + Firefox 65.0.1 says "Video can't be played because the file is corrupt." We are currently testing everything with vlc and mpv, but thanks for this too. > > These are the steps I followed to build the videos: > > 1. $ git clone https://git.savannah.gnu.org/git/guix/videos.git (I got > commit 03930dc) > 2. Add missing fonts to $HOME/.fonts Are you creating the .fonts directory here? > 3. $ fc-cache -f > 4. $ fc-list ($HOME/.fonts is listed) > 5. $ cd path/to/videos > 6. $ ./environment.sh You should add the fonts inside the environment :) (2. and 3.) > 7. [env]# cd 01-installation-from-script > 8. [env]# ./buildall.sh > > After running these, the videos are available in: > >videos/01-installation-from-script/en_US/videos/ > > The resulting videos don't use the appropriate fonts in my case. Let me push some changes and answer back, but you should be able to create the videos after my next push. I should update the README with the order in which scripts should be run, so that there is no confusion. Regards! Laura
Re: Guix video repository: First video script commited
On Thu, Feb 28, 2019 at 4:14 PM Gábor Boskovits wrote: > > Hello Laura, > > Laura Lazzati ezt írta (időpont: 2019. > febr. 28., Cs, 19:45): > > > > On Thu, Feb 28, 2019 at 2:54 PM Laura Lazzati > > wrote: > > > > > > > I “installed” the fonts by placing them in ~/.fonts, running “fc-cache > > > > -f” as needed. As long as fc-cache knows about the directory it will be > > > > fine. > > When Ricardo knows, he knows :P. > > My missing step was putting it under ~/.fonts. Will add mabe a fonts > > folder under root dir and then a script to move it to ~/.fonts and run > > fc-cache, WDYT? > > > > I would prefer that the build don't fiddle with my home directory, but this is > acceptable as a temporary workaround. I will have a look how to achieve that, > it seems that setting some environment variables (for example $HOME to > get ~ into the build tree, but some more so that fc-cache does not modify the > original user cache) this is possible. I don't like mixing with my home dir either, but this way works :/ I created a script that needs to be run every time you get into the environment to update the fonts in ~/.fonts. I didn't have .fonts before in my home dir, and after creating it inside the environment I can't see it either being outside. Don't know about you. But, in case people have it, when we finish creating the videos we could remove the fonts that we had to install, WDYT? Sorry, I am new to this fonts stuff, I am reading and trying different things. Regards :) Laura
Re: Guix video repository: First video script commited
Hi, Laura, everyone, El 28/02/19 a las 1:45 p. m., Laura Lazzati escribió: On Thu, Feb 28, 2019 at 2:54 PM Laura Lazzati wrote: I “installed” the fonts by placing them in ~/.fonts, running “fc-cache -f” as needed. As long as fc-cache knows about the directory it will be fine. When Ricardo knows, he knows :P. My missing step was putting it under ~/.fonts. Will add mabe a fonts folder under root dir and then a script to move it to ~/.fonts and run fc-cache, WDYT? Regards :) Laura That didn't work for me. I built the "01-installation-from-script" videos, and found the following problems: + Text is not rendered with the appropriate font (known issue). + Firefox 65.0.1 says "Video can't be played because the file is corrupt." These are the steps I followed to build the videos: 1. $ git clone https://git.savannah.gnu.org/git/guix/videos.git (I got commit 03930dc) 2. Add missing fonts to $HOME/.fonts 3. $ fc-cache -f 4. $ fc-list ($HOME/.fonts is listed) 5. $ cd path/to/videos 6. $ ./environment.sh 7. [env]# cd 01-installation-from-script 8. [env]# ./buildall.sh After running these, the videos are available in: videos/01-installation-from-script/en_US/videos/ The resulting videos don't use the appropriate fonts in my case. Inkscape, however, which I installed with Guix, renders the video SVGs with the appropriate fonts. I imagine the font problem can be solved by packaging those fonts for Guix and adding them to the environment? As a workaround to the fonts issue, one can convert the text in the SVG files to paths. Using Inkscape, you can do so by running it from the command line using the -T option. For example: $ inkscape -z -T -l=1-mod.svg 1.svg As for the corrupted videos, in the Totem video player, the video plays but black colors are displayed green instead (maybe result of the corruption?). In VLC the video plays OK, and the colors are fine. -- Luis Felipe López Acevedo http://sirgazil.bitbucket.io/
Re: Guix video repository: First video script commited
Hello Laura, Laura Lazzati ezt írta (időpont: 2019. febr. 28., Cs, 19:45): > > On Thu, Feb 28, 2019 at 2:54 PM Laura Lazzati > wrote: > > > > > I “installed” the fonts by placing them in ~/.fonts, running “fc-cache > > > -f” as needed. As long as fc-cache knows about the directory it will be > > > fine. > When Ricardo knows, he knows :P. > My missing step was putting it under ~/.fonts. Will add mabe a fonts > folder under root dir and then a script to move it to ~/.fonts and run > fc-cache, WDYT? > I would prefer that the build don't fiddle with my home directory, but this is acceptable as a temporary workaround. I will have a look how to achieve that, it seems that setting some environment variables (for example $HOME to get ~ into the build tree, but some more so that fc-cache does not modify the original user cache) this is possible. > Regards :) > Laura Best regards, g_bor
Re: Guix video repository: First video script commited
On Thu, Feb 28, 2019 at 2:54 PM Laura Lazzati wrote: > > > I “installed” the fonts by placing them in ~/.fonts, running “fc-cache > > -f” as needed. As long as fc-cache knows about the directory it will be > > fine. When Ricardo knows, he knows :P. My missing step was putting it under ~/.fonts. Will add mabe a fonts folder under root dir and then a script to move it to ~/.fonts and run fc-cache, WDYT? Regards :) Laura
Re: Guix video repository: First video script commited
> I “installed” the fonts by placing them in ~/.fonts, running “fc-cache > -f” as needed. As long as fc-cache knows about the directory it will be > fine. I tried the command with the -f but naming the subdirectory fonts, under the root (videos) directory. Ended up successfully but with fc-list the fonts are not shown. Will try again and let you know. Also reporting step by step. Regards :)
Re: Guix video repository: First video script commited
Laura Lazzati writes: > PS: I am quite tired now, but I my research over the internet mostly > mentions that fonts are installed for a user/system, maybe that is the > problem why I cannot install them in the container. I “installed” the fonts by placing them in ~/.fonts, running “fc-cache -f” as needed. As long as fc-cache knows about the directory it will be fine. -- Ricardo
Re: Guix video repository: First video script commited
Hi Laura and Björn, I'm trying to reproduce the build of "01-installation-from-script" but I'm having some trouble: please is someone willing to try to build that video and report here on success/failures? this is my environment and build process: 1. I'm using the master branch (now on commit 03930dc) from https://git.savannah.gnu.org/git/guix/videos.git 2. my working directory is /guix-videos 3. in my working dir I enter the environment using the environment.sh bash script 4. in guix-videos/01-installation-from-script [env]# I run "./buildall.sh", at this point the build process enters a (infinite?) loop with this output: --8<---cut here---start->8--- tail -n 20 01-installation-from-script/en_US/out/firstCli-0913.txt | \ paps --landscape --columns=80 --font "Monospace 20" | \ convert -density 128 \ -fill black \ -background white \ -flatten \ -rotate 90 \ -delete 0--2 - 01-installation-from-script/en_US/out/firstCli-0913.png convert: profile 'icc': 'RGB ': RGB color space not permitted on grayscale PNG `01-installation-from-script/en_US/out/firstCli-0913.png' @ warning/png.c/MagickPNGWarningHandler/1667. --8<---cut here---end--->8--- the number of the resulting "firstCli-.[txt|png]" files is progressive I've interrupted the process after a few minutes and now I've a total of 2495 files in guix-videos/01-installation-from-script/en_US/out/ 2198 of them are txt and 306 png rmlist tells me "==> In total 2495 files, whereof 1965 are duplicates in 176 groups." while fdupes tells me "2009 duplicate files (in 177 sets), occupying 2.9 megabytes" only txt are duplicated, png are not is this duplication and large number of txt files intended or is a problem with my build environment? Laura Lazzati writes: > I guess I made a mistake today and maybe I was not inside the > container when creating the video that worked, since I am trying to > reproduce everything and I still face issues with the fonts. I'm still not able to reproduce this issue but have you tried adding the font package to "NECESSARY" variable in environment.sh? also: could you please remove "USEFUL" and "NICE_TO_HAVE" from the build environment since we do not strictly need them at build time? ...nevertheless, I agree they are useful and nice to have in our user (or project) environment for editing/developing purposes :-) > I made some minor changes, will be adding again the files of the > original installer script video please commit as soon as you want to share your development, in a dedicated "wip" or "development" branch if you want > found this https://linux.die.net/man/1/fc-cache, and added in root > directory a directory named fonts with the ones I used for the videos. there is no such directory in my checkout: have you committed and pushed it? > Still doesn't work. Also made some minor changes to the scripts, and > removed the Makefile comment. Laura frustrated mode, will go on > tomorrow looking how I can install the fonts, inside the environment. try add them (the fonts) as NECESSARY [...] Thanks! Giovanni -- Giovanni Biscuolo Xelera IT Infrastructures signature.asc Description: PGP signature