Re: use of cpus in building

2016-05-28 Thread Michael David Crawford
My tests find that its fastest to set the number of parallel builds to
1.5 to 2 times the number of cores.  I expect that's because some
tasks are CPU bound while other tasks are I/O bound.

In principle, you can get one of each kind going at the same time.
The I/O bound task doesn't use up much of the core's capacity.
Michael David Crawford, Baritone
mdcrawf...@gmail.com

  One Must Not Trifle With Wizards For It Makes Us Soggy And Hard To Light.


On Sat, May 28, 2016 at 11:07 AM, Ryan Schmidt <ryandes...@macports.org> wrote:
> On May 27, 2016, at 4:05 PM, Adam Dershowitz wrote:
>
>> On May 27, 2016, at 1:47 PM, Ryan Schmidt wrote:
>>
>>> On May 25, 2016, at 5:07 PM, Justin C. Walker wrote:
>>>
>>>> On May 25, 2016, at 14:42 , Adam Dershowitz wrote:
>>>>
>>>>> You can also manually change it for a single install, for example by 
>>>>> using build.jobs. Such as:
>>>>> sudo port install port_whatever_name build.jobs=4
>>>>> and then, for that specific install it will attempt to use 4 cores.  This 
>>>>> can be handy to reduce the number of cores used, from the default, so 
>>>>> that you can do other things on the machine while building.
>>>
>>> Instead, consider changing buildnicevalue in macports.conf from 0 to a 
>>> greater number, up to 20. When MacPorts is configured to be "nice" it means 
>>> that if other programs running on your computer need CPU time, they'll get 
>>> it first.
>>
>> Can this also be done on the command line for a specific install, instead of 
>> changing the config file?
>
> It's difficult to tell, because the nice value is not recorded in the log 
> anywhere. If it does work, you would do it with:
>
> sudo port install whatever build.nice=20
>
> However, I don't see a downside to setting buildnicevalue in macports.conf. 
> If your computer isn't doing anything else, MacPorts gets the CPU time. If 
> your computer is doing something else, that something else gets the CPU time.
>
> ___
> macports-users mailing list
> macports-users@lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/macports-users
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Volunteer for a workshop on "setting up your own buildbot/buildslave"? (Was: Experiences with El Capitan)

2015-11-12 Thread Michael David Crawford
The PowerPC/Tiger backport of FireFox that I installed on Mom's G4 is
called "TenFourFox".  I think there's also a "TenThreeFox".

There are quite a few Classic programs that are actively maintained.

>From time to time I get email from a user of Working Software's
products, none of which ever ran on OS X, to ask me if I could
re-release them.  I expect I could earn quite a good income doing
nothing other than selling QuickLetter, which was written largely in
68k assembly code and never even ported to PowerPC.

(It was built on the same CoreEdit as MacWrite was.)
Michael David Crawford, Baritone
mdcrawf...@gmail.com

  One Must Not Trifle With Wizards For It Makes Us Soggy And Hard To Light.


On Thu, Nov 12, 2015 at 9:13 AM, Ryan Schmidt <ryandes...@macports.org> wrote:
> On Nov 12, 2015, at 10:58 AM, Michael David Crawford wrote:
>>
>> On Thu, Nov 12, 2015 at 5:43 AM, Ryan Schmidt wrote:
>>>
>>> On Nov 12, 2015, at 6:55 AM, Michael David Crawford wrote:
>>>
>>>> There have been plenty of times that the only Mac available to me for
>>>> development has been my mother's Tiger G4 iMac.  I was at least able
>>>> to install a PowerPC backport of Firefox.
>>>>
>>>> What was most upsetting to me when I used it was that I often had to
>>>> build my own tools from source, because the powerpc binaries had been
>>>> withdrawn.
>>>
>>> Not sure if you were talking about MacPorts or other projects, but MacPorts 
>>> has never offered PowerPC binaries. We started offering binaries with OS X 
>>> 10.6, for x86_64 only.
>>
>> Not MacPorts specifically but that has been my experience with
>> numerous software packages.
>
> In many cases, the software is no longer compatible with the older versions 
> of OS X required for PowerPC machines, so they couldn't provide a binary if 
> they wanted to because it won't compile anymore. Though there probably are 
> other projects that would still work on PowerPC but binaries aren't provided 
> because few people use PowerPC machines anymore. In any case, it's a matter 
> you would have to take up with the particular project in question.
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Volunteer for a workshop on "setting up your own buildbot/buildslave"? (Was: Experiences with El Capitan)

2015-11-12 Thread Michael David Crawford
There have been plenty of times that the only Mac available to me for
development has been my mother's Tiger G4 iMac.  I was at least able
to install a PowerPC backport of Firefox.

What was most upsetting to me when I used it was that I often had to
build my own tools from source, because the powerpc binaries had been
withdrawn.

It's one thing to stop supporting a product, quite another to actively
prevent its use.
Michael David Crawford, Baritone
mdcrawf...@gmail.com

  One Must Not Trifle With Wizards For It Makes Us Soggy And Hard To Light.


On Wed, Nov 11, 2015 at 4:30 PM, Eneko Gotzon <enekogot...@gmail.com> wrote:
>
> On Tue, Nov 10, 2015 at 6:13 PM, Ulrich Wienands <wiena...@gmail.com> wrote:
>>
>> there is at least one person in the universe very interested in PPC
>> software… myself
>
>
> You are not alone…
>
> --
> Eneko Gotzon Ares
> enekogot...@gmail.com
>
> ___
> macports-users mailing list
> macports-users@lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/macports-users
>
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Volunteer for a workshop on "setting up your own buildbot/buildslave"? (Was: Experiences with El Capitan)

2015-11-12 Thread Michael David Crawford
Not MacPorts specifically but that has been my experience with
numerous software packages.
Michael David Crawford, Baritone
mdcrawf...@gmail.com

  One Must Not Trifle With Wizards For It Makes Us Soggy And Hard To Light.


On Thu, Nov 12, 2015 at 5:43 AM, Ryan Schmidt <ryandes...@macports.org> wrote:
>
> On Nov 12, 2015, at 6:55 AM, Michael David Crawford wrote:
>
>> There have been plenty of times that the only Mac available to me for
>> development has been my mother's Tiger G4 iMac.  I was at least able
>> to install a PowerPC backport of Firefox.
>>
>> What was most upsetting to me when I used it was that I often had to
>> build my own tools from source, because the powerpc binaries had been
>> withdrawn.
>
> Not sure if you were talking about MacPorts or other projects, but MacPorts 
> has never offered PowerPC binaries. We started offering binaries with OS X 
> 10.6, for x86_64 only.
>
>
>> It's one thing to stop supporting a product, quite another to actively
>> prevent its use.
>
>
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Volunteer for a workshop on "setting up your own buildbot/buildslave"? (Was: Experiences with El Capitan)

2015-11-10 Thread Michael David Crawford
There is a simple service that anyone could set up, that I intended to
do myself but presently am unable to:

Use a script to randomly select anywhere from 10 to 100 packages, then
do "sudo port install" for all of them, all at once.

Quite likely that install will fail due to some problem with
dependencies that cannot be automatically resolved.

If all you did was track the successes, the failures as well as what
you attempted to install, it would help others to fix those
dependencies.

For extra credit, figure out the minimum set of packages you must
attempt to install, that results in failure.
Michael David Crawford, Baritone
mdcrawf...@gmail.com

  One Must Not Trifle With Wizards For It Makes Us Soggy And Hard To Light.


On Tue, Nov 10, 2015 at 2:31 AM, Mojca Miklavec <mo...@macports.org> wrote:
> Hi,
>
> On Mon, Nov 9, 2015 at 10:29 PM, Ryan Schmidt wrote:
>> On Nov 9, 2015, at 2:34 AM, Artur Szostak wrote:
>>
>>> Let me ask another question: Is there a seamless way to add building and 
>>> mirroring services from 3rd parties for the pre-built binaries?
>>
>> No. We want verified binaries built in a clean-room by known servers, not 
>> binaries built in unknown conditions by arbitrary contributors.
>
> But from what I understand one should be able to *manually* add a
> buildbot's IP or URL to fetch the binaries? I totally agree that
> MacPorts should not support adding arbitrary buildbots automatically,
> but it should be possible to add your own, right?
>
> Me and Aljaž were discussing the idea of:
> - bringing a recent decent mac to the MacPorts meeting (in March 2016)
> - bringing a PowerMac G5
> - trying to set up a local mirror (for distfiles etc.) and a local
> buildbot/buildslave on both
> - preparing a short workshop/tutorial about setting up your own
> buildbot/buildslave (with someone preparing slides with clear
> instructions and giving enough time for a hands-on exercise)
>
> The output/benefit of this workshop would be the following:
> - having a 10.5 buildslave (ideally also including libc++ support) at
> hand to get feedback about potential problems with software (and
> hopefully having an unofficial 10.11 buildslave to play with)
> - get more developers familiar with the process
> - so that potentially some university/company could easily set up
> their own buildbots according to their local needs, or maybe just to
> build some additional software that is not part of the official
> distribution
> - so that a group of "hackers" with mutual trust could use their own buildbots
> - so that a group of developers could decide to easily test some
> nontrivial changes in private trees with portfiles (like a switch from
> multiple versions of Perl to a single version; or a move of Qt from
> one location to another)
> - so that some eager user could monitor building problems of the
> latest commits in case the official buildbots experience problems
>
> My question is: is there any volunteer on this list (independent on
> whether he or she will be able to physically attend the meeting) to
> prepare the workshop [materials] and test the procedures?
>
> Thank you,
> Mojca
> ___
> macports-users mailing list
> macports-users@lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/macports-users
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: about fragmentation (of free disk space)

2015-10-11 Thread Michael David Crawford
In principle a highly fragmented disk has less payload capacity, and
will be slower to access because of all the indirect blocks.

I don't know whether that makes a real-world difference.
Michael David Crawford P.E., Consulting Process Architect
mdcrawf...@gmail.com
http://mike.soggywizard.com/

  One Must Not Trifle With Wizards For It Makes Us Soggy And Hard To Light.


On Sun, Oct 11, 2015 at 8:06 PM, James Linder <j...@tigger.ws> wrote:
>
>> On 12 Oct 2015, at 3:00 am, macports-users-requ...@lists.macosforge.org 
>> wrote:
>>
>>> random access time for a SSD is 1-3 orders of magnitude less than for a 
>>> rotational drive.
>>>
>>> As with anything, you need to measure ?real world use? to be certain, but 
>>> it?s probably not an issue for SSDs at all.
>>
>> I'm not expecting it to be in real world usage, of course. OTOH, frequent 
>> defragmenting is probably not a good idea on SSDs.
>
> Actually defrag of an SSD is a VERY BAD IDEA. It will drasically reduce the 
> life of your SSD, the fuller the disk the more fragmented the more it will 
> eat your disk.
>
> James
> ___
> macports-users mailing list
> macports-users@lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/macports-users
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Sophos Antivirus claims port 'zlib' ships a Virus/Spyware called "iPh/WireLurk-G"...

2015-09-04 Thread Michael David Crawford
Your Hackathon Challenge, should you choose to accept it:

Prepend a jump table to a virus that results in a word processor.

This list post will self-destruct in five seconds.
Michael David Crawford P.E., Consulting Process Architect
mdcrawf...@gmail.com
http://mike.soggywizard.com/

  One Must Not Trifle With Wizards For It Makes Us Soggy And Hard To Light.


On Fri, Sep 4, 2015 at 3:29 PM, Marko Käning <mk-macpo...@posteo.net> wrote:
> Hi Mihai,
>
> On 05 Sep 2015, at 00:23 , Mihai Moldovan <io...@macports.org> wrote:
>> https://trac.macports.org/ticket/48756
>
> thanks for the pointer!
>
> I admit that I hadn’t searched trac before posting this…
> I should have! :)
>
> Greets,
> Marko
>
> ___
> macports-users mailing list
> macports-users@lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/macports-users
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Help with a port

2015-08-18 Thread Michael David Crawford
Dan,

I expect I can build you a standalone, dynamically-linked lynx this
weekend, then provide a MacPorts build by the middle to end of next
week.  My dynamic build will come with an installation script, later
I'll come up with a GUI installer as well as a statically-linked
build.

(It's easy to build your own code statically-linked but sometimes it
can be hard to build someone else's code that way.)

MacPorts is the best thing to build with if you already know how to
build with MacPorts, but I don't know how yet so I'll start with the
old fashioned ./configure; make; sudo make install which is a real
good way to root your own box.

In my long hard experience there are always all manner of petty
problems when building any really interesting code.  For wget most of
my time is consumed by its SSL/TLS security (ie. HTTPS) which I
presently do not require but expect would be difficult to remove
entirely from wget.  lynx will also want SSL/TLS, which will at least
partially reuse my wget work but could well be quite different.

I couldn't maintain the entire MacPorts tree on old OS X revisions but
quite likely I could maintain a modest number of commonly-used or
important packages.  For me that's wget, lynx, djbdns, gcc, the X11
servers and maybe I can backport clang/llvm.

My righteously tricked-out MacBook Pro went to The Great Cupertino
Garage in the sky so now I'm coding on Mom's G4 Tiger iMac in hopes
that I can write something that I can sell for enough money to buy a
new box for myself.

I am on 56k dialup as Mom is completely convinced that were I to use
my own money to install a cable modem in her condo she would never
receive any more emails from her friends, family nor schoolmates.

were I to point out to her that I know how The Series Of Tubes work
and she does not, Mom would dial 9-1-1 to let them know I'm not taking
my medicine.  That commonly results in my being admitted to a nuthouse
in handcuffs by the police.

I Am Absolutely Serious.

Thine In Eternal Torment,

El Ingenioso Don Miguel de la Chula Visa
Salmon Creek Consulting Engineers
http://soggywizards.com/
m...@soggywizards.com -- Maybe Tomorrow.
+1 (503) 688-8345

One Must Not Trifle With Wizards For It Makes Us Soggy And Hard To Light.


On 8/18/15, - dandun...@gmail.com wrote:

 It would be great if you were to do so please!  The details start in the
 lynx.cfg file that comes with the macports installation at:

 .h1 CGI scripts

 There is a version to compile where the exec and scripting is allowed
 only locally to prevent remote access to this function.

 I have appended a file, jumps.html, which has examples of links using this
 function as links.  Some in the destination have lynxexec: or
 lynxprog:.

 These can be seen using lynx in the status line as the destination.  The
 first does a local command and the latter runs an application, as the
 example links will reflect in the link label text.  The 2nd link from the
 bottom would appear to call a local cgi script.

 I don't know if it is a compile issue but I could never get the jumP key
 command function to work in the macports version of lynx.  It could be I'm
 just not including the proper syntax in lynx.cfg to allow it.  The help
 file and index key command features do work when I put them in the
 lynx.cfg with what seems the same required syntax.

 I would be ever so grateful if you were to undertake to compile lynx with
 this functionality.

 Dan

 On Mon, 17
 Aug 2015, Michael David Crawford wrote:

 I would be happy to build Lynx with the configuration of your heart's
 desire.  Do you have any special requirements other than the external
 command facility?  The current OS X or an old version?

 Just now I'm working my way through wget, I'm going to provide a
 statically
 linked build at http://soggywizard.com/ when it is ready, then later a
 y dynamically linked build with an installer.

 I love MacPorts but it is beyond the comprehension of many.

 Mike Crawford
 http://mike.soggywizard.com/
 mdcrawf...@gmail.com
 (503) 688-8345

   One Must Not Trifle With Wizards For It Makes Us Soggy And Hard To
 Light.


 --
 Michael David Crawford, Consulting Software Engineer
 mdcrawf...@gmail.com
 http://www.warplife.com/mdc/

Every Deity Hath the Insight to Foretell the Future
Yet G-d Almighty Himself Possesseth Not the Power to Undo the Past.


 XB


-- 
Michael David Crawford P.E., Consulting Process Architect
mdcrawf...@gmail.com
http://mike.soggywizard.com/

  One Must Not Trifle With Wizards For It Makes Us Soggy And Hard To Light.
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Help with a port

2015-08-18 Thread Michael David Crawford
On Tue, Aug 18, 2015 at 12:00 AM, Michael David Crawford
mdcrawf...@gmail.com wrote:
 I love MacPorts but it is beyond the comprehension of many.

Eneko Gotzon enekogot...@gmail.com
​ Yes but we have all our lives for learn… :)​

+1 Touché

On 8/18/15, Eneko Gotzon enekogot...@gmail.com wrote:
 On Tue, Aug 18, 2015 at 12:00 AM, Michael David Crawford 
 mdcrawf...@gmail.com wrote:

 I love MacPorts but it is beyond the comprehension of many.


 ​Yes but we have all our lives for learn… :)​

 --
 Eneko Gotzon Ares
 enekogot...@gmail.com



-- 
Michael David Crawford P.E., Consulting Process Architect
mdcrawf...@gmail.com
http://mike.soggywizard.com/

  One Must Not Trifle With Wizards For It Makes Us Soggy And Hard To Light.
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Help with a port

2015-08-17 Thread Michael David Crawford
I would be happy to build Lynx with the configuration of your heart's
desire.  Do you have any special requirements other than the external
command facility?  The current OS X or an old version?

Just now I'm working my way through wget, I'm going to provide a statically
linked build at http://soggywizard.com/ when it is ready, then later a
dynamically linked build with an installer.

I love MacPorts but it is beyond the comprehension of many.

Mike Crawford
http://mike.soggywizard.com/
mdcrawf...@gmail.com
(503) 688-8345

   One Must Not Trifle With Wizards For It Makes Us Soggy And Hard To Light.


-- 
Michael David Crawford, Consulting Software Engineer
mdcrawf...@gmail.com
http://www.warplife.com/mdc/

Every Deity Hath the Insight to Foretell the Future
Yet G-d Almighty Himself Possesseth Not the Power to Undo the Past.
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: selfupdate fails

2015-08-17 Thread Michael David Crawford
On Monday, August 17, 2015, Ryan Schmidt ryandes...@macports.org wrote:

 On Aug 17, 2015, at 8:01 PM, Michael David Crawford wrote:
 Yes, you can change what servers MacPorts uses:

 https://trac.macports.org/wiki/Mirrors

 If you can set up an rsync server on your network, and that server can
 connect to our master server via rsync to mirror its contents, then that
 could work.


The people who maintain the firewall or would set up the server may not
have a clue about the Macintosh, let alone MacPorts.

The required managerial sign-off may not have a clue about computers of any
sort.  I have even seen this at Apple and Microsoft.  You could facilitate
their sign-off by providing a PDF with an executive summart;  MacPorts fans
could send them via Internal snail mail to corporate.

Thine In Eternal Torment,

Mike

53n7 fr0m my 1p4d.


-- 
Michael David Crawford, Consulting Software Engineer
mdcrawf...@gmail.com
http://www.warplife.com/mdc/

Every Deity Hath the Insight to Foretell the Future
Yet G-d Almighty Himself Possesseth Not the Power to Undo the Past.
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: selfupdate fails

2015-08-17 Thread Michael David Crawford
Can one configure the port command to use a local - intranet - server for
selfupdate?

On Monday, August 17, 2015, Ryan Schmidt ryandes...@macports.org wrote:

 Yes, you'll need to troubleshoot with your network administrator why
 you're not able to access rsync servers. If it cannot be fixed, you can
 configure MacPorts to sync using a different method, such as by getting the
 daily tarball via http or by getting the sources directly from our
 Subversion repository.


  Sent from the vast empty reaches of intergalactic space.


-- 
Michael David Crawford, Consulting Software Engineer
mdcrawf...@gmail.com
http://www.warplife.com/mdc/

Every Deity Hath the Insight to Foretell the Future
Yet G-d Almighty Himself Possesseth Not the Power to Undo the Past.
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users