Re: How to debug a Mk-Script?
On 21.10.2015 06:12, Bryan Drewery wrote: On 10/19/2015 1:50 AM, Torsten Zuehlsdorff wrote: Hello, after defining a USES pgsql:9.3+ in an port-update i stumbled over this error message: the port wants postgresql-client version 9.3 9.4 and you have version 9.4 installed. This seems to be an error in Mk/Uses/pgsql.mk which i found to track down (in order to gather some more experience). While i have already an idea what the case can be, i just want to add some output into the script. How is this possible? Can someone guide me please? Thanks, Torsten If you're on 10+ you can use .info, otherwise .warning on older make. .info your ${msg} goes ${here} .if defined(whatever) .info whatever is defined as: ${whatever} .endif This works much better than misusing IGNORE :D Still wasn't able to fix the bug... but this is an good exercise. Thanks! Torsten ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Port request: pngout (image compression)
Hello Murk, Thank you sir -- great stuff! You're welcome :) Sadly i'm still waiting for a response addressing the license questions. Also i wasn't able to fix deskutils/ladon because of its npm dependencies. But this is needed to get jpeg-compress into the ports. My last idea is providing a precompiled version of ladon. This is not wanted in the portstree by default, but there are some exceptions from this rule. I will test if the port works this way and let the committer decide if this is acceptable as a workaround. Greetings, Torsten ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
hung poudriere bulk recovery
Greetings, Recently my nightly cron poudriere builds have been occasionally hanging. For instance, here's last night's, with apparently no progress for over 10 hours: root@terpsichore> poudriere status SET PORTS JAILBUILDSTATUS QUEUE BUILT FAIL SKIP IGNORE REMAIN TIME LOGS - default 10-stable-amd64 2015-10-22_22h30m08s parallel_build 488 3400 0454 10:45:56 /ssd1/poudriere/data/logs/bulk/10-stable-amd64-default/2015-10-22_22h30m08s root@terpsichore> htop now shows no significant activity for the specified 3 builders: root@terpsichore> ps xa | grep poud 72482 - Is 0:00.01 /bin/sh /root/poudriere/run-poudriere-bulk 73202 - S0:04.24 sh -e /usr/local/share/poudriere/bulk.sh -f /root/poudriere/ports -j 10-stable-amd64 73347 - S1:55.38 sh -e /usr/local/share/poudriere/bulk.sh -f /root/poudriere/ports -j 10-stable-amd64 73352 - I0:00.08 sh -e /usr/local/share/poudriere/bulk.sh -f /root/poudriere/ports -j 10-stable-amd64 6119 1 S+ 0:00.00 grep poud root@terpsichore> If I reboot, so that the tmp zfs filesystems are unmounted, and manually rerun the exact same script as the previous cron'd, hung instance, poudriere has (so far) run to completion. I'm not sure how to debug this, but in the interim, I'm very curious how I can stop the hung bulk run, and either restart it, or clean up the various mounted zfs filesystems and manually restart from the beginning w/o rebooting. Studying the man page, it's not clear at all the Right Way to do this, so any pointers here would be appreciated. I'm leaving the system untouched for now so that I can try out any suggestions for cleanup and restart. Thanks, Russell ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: How to debug a Mk-Script?
On Monday, 19 October 2015, Torsten Zuehlsdorff < mailingli...@toco-domains.de> wrote: > Hello, > > after defining a USES pgsql:9.3+ in an port-update i stumbled over this > error message: > > the port wants postgresql-client version 9.3 9.4 and you have version 9.4 > installed. > > This seems to be an error in Mk/Uses/pgsql.mk which i found to track down > (in order to gather some more experience). > > While i have already an idea what the case can be, i just want to add some > output into the script. How is this possible? Can someone guide me please? > > Thanks, > Torsten > If you just want to know the value that a variable is being assigned, you can run the following command at the console the print it out: $ make -V YOURVARIABLEHERE This doesn't let you choose where in the flow of the Makefile is the variable changing, only once the whole Makefile has been parsed. Regards, Ben -- -- From: Benjamin Woods woods...@gmail.com ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: How to debug a Mk-Script?
Hi! > While i have already an idea what the case can be, i just want to add > some output into the script. How is this possible? Can someone guide me > please? While it is the ultimate noise-generator, I use make -d all which displays endless amounts of debugging information, but sometimes helps to find cause and effect. -- p...@opsec.eu+49 171 3101372 5 years to go ! ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"