Synth: Introducing new custom package repository builder for FreeBSD and DragonFly

Those are not "yes/no" questions. You need to read that file to get the licence name.

It's like asking "What are the names of your friends" and you answering "yes"
 
Crivens says:
When for example libreoffice and firefox try to get staged at the same time, this will hit the swap pretty hard and performance will tank completely...
On my box it freezes for seconds. It does not help to set 3 builders and 4 jobs or reduce it to 2 builders and 3 jobs.
And I have no old box (4-core). I have stopped all daemons and programs who could interfer. How can I limit synths "resourcehunger" ?? (had never such issue before and I had it not on the old i586 with FreeBSD).
 
Last edited by a moderator:
You need to understand why it's freezing. Even when builders/jobs are set too high, things don't "freeze"; they just happen slowly". It sounds like a different issue. It's probably just extracting or linking. I don't know what you can do if the machine just isn't very new.
 
I'm using sysutils/tmux.
I have the feeling that every time synth builds and I quit the session, it freezes.
When I return I see the building screen again but it is frozen and top doesn't show a lot of load.
 
What does top(1) say? Does ps -auxww change?
"not a lot of load" could easily be extracting a large file (or linking?)
figure out what it's doing. (or confirm it's not doing anything) on another tty
 
tux = tmux
I edited the typo.

The screen didn't change, sometimes, it didn't even render completely.

I let it run for several minutes and nothing changed (either on the synth nor on the top side).
I'll check this the next time it happens.
 
Check the 00_* log to see what it was working on, to see if it's a specific port (and that it's repeatable if you try to build the same port)
 
I got a second report about audio/jack. I had to use FreeBSD to find the problem (it only appears there) but it's been fixed now. The port won't rebuild over and over anymore.
 
PacketMan says:When for example libreoffice and firefox try to get staged at the same time, this will hit the swap pretty hard and performance will tank completely...


What the heck, I didn't say that! Why are you quoting me for saying something I didn't? Please don't even reply. Just delete that post. PBCAC I say. I'm not even gonna reply.
 
Bug just found, might be (probably is) my fault, but reporting cause its got me stuck. 10.3-PRERELEASE FreeBSD 10.3-PRERELEASE #0 updated last with freebsd-update(8)

CORE DUMP FIXED, it was some leftover cruft from an old archiver install. Apparently it was being triggered by synth instead of the newer version. Found and killed it off, the core dump went away.

All good now, thanks for making me look further.

Core dump like this: (can be any command, this one is just faster)
Code:
# synth status
Builder mounts detected; attempting to remove them automatically ...
Dismounting successful!
Querying system about current package installations.
Stand by, comparing installed packages against the ports tree.
Illegal instruction (core dumped)

gdb core:

Code:
Core was generated by `synth'.
Program terminated with signal 4, Illegal instruction.
#0  0x000000000047f374 in ?? ()
(gdb) bt
#0  0x000000000047f374 in ?? ()
#1  0x0000000000818c50 in ?? ()
#2  0x000000000045eb49 in ?? ()
#3  0x0000000000818b80 in ?? ()
#4  0x00007fffdffff120 in ?? ()
#5  0x00007fffdffff160 in ?? ()
#6  0x00000000000002c3 in ?? ()
#7  0x0000000000000034 in ?? ()
#8  0x0000000000476a0c in ?? ()
#9  0xf370bb4102c302c3 in ?? ()
#10 0xdffff040ba490047 in ?? ()
#11 0x90e3ff4900007fff in ?? ()
#12 0xcd90bb410045eb49 in ?? ()
#13 0xdffff040ba490046 in ?? ()
#14 0x90e3ff4900007fff in ?? ()
#15 0x00007fffdffff160 in ?? ()
#16 0x00007fffdffff090 in ?? ()
#17 0x00000000000002c3 in ?? ()
#18 0x000000000047f3e7 in ?? ()
#19 0x0000000000000000 in ?? ()

And pkg(8) no longer works on this system

Code:
# pkg update
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
Updating Synth repository catalogue...
pkg: file:///var/synth/live_packages/meta.txz: No such file or directory
repository Synth has no meta file, using default settings
pkg: file:///var/synth/live_packages/packagesite.txz: No such file or directory
Unable to update repository Synth

Suggestions on how to fix pkg(8)? --> Never mind, fixed that easy enough.
 
Last edited:
Remove the /usr/local/etc/pkg/repos/00_synth.conf file.
But pkg(8) error is just a warning. Why do you think it's broken? It's just failing to update a repo that doesn't exist. I think pkg(8) still works.
 
remove the /usr/local/etc/pkg/repos/00_synth.conf file.
But pkg error is just a warning. Why do you think it's broken? it's just failing to update a repo that doesn't exist. I think pkg still works.

Yep, figured that out, although it was still broke. pkg xxx would just spit out those few lines you see, and return to the command line. Deleting the 00_synth.conf killed the error of course.

Synth still won't run of course, core dumps every single time.
 
I assumed because you said it's "(probably) my fault" that you knew of something you did that might explain it. I've never seen any reports on core dumps. Did you build it with crazy settings in make.conf? Why would pkg not work anymore? Related? System FUBAR?
 
By the way, if you get the first few lines from pkg with pkg update, it looks like it's working to me.
 
I seem to be stuck at the first hurdle. I've just installed it to give it a go but when I try and run it I just get this.
Code:
# synth status
Querying system about current package installations.
Stand by, comparing installed packages against the ports tree.
Encountered issue with ports-mgmt/pkg or its dependencies
  => bad input for 'Value: ""
Unexpected pkg(8) scan failure!
Unfortunately, the system upgrade failed.

There is no log file generated, and I have a full ports tree with no missing files. Any ideas?
 
What version of synth do you have installed? The latest is 0.99_6. (you can check with pkg info synth)

The error suggests your ports tree is corrupt.
 
What version of synth do you have installed? The latest is 0.99_6. (you can check with pkg info synth)

The error suggests your ports tree is corrupt.

It's synth-0.99_6, just freshly installed from the ports tree itself as I'm not currently using packages for anything at all. I've just ran svn status -u /usr/ports and it doesn't show that any files are wrong or missing. I could delete and fetch the tree via svn again if you think it might help?
 
it doesn't seem to be able to read /usr/ports/ports-mgmt/pkg.
Do basic queries like make -C /usr/ports/ports-mgmt/pkg -V PKGNAME work?
 
Back
Top