[darwinbuild] RELEASE: Darwin Build Scripts 0.6
The Darwin Build Scripts 0.6 release is available[1]. Major improvements include: * darwinbuild installs into /usr/local/bin (or any other PREFIX). * A completely re-written darwinxref tool with plugin support * Build directory hierarchy is now created with `darwinbuild -init 8A428` * Automatically fetches property lists for builds from OpenDarwin servers -- Currently 8C46, 8B15, 8A428, and 7W98 are supported * All builds are performed in a chroot by default (use -nochroot to override). * New `darwinbuild -depsbuild=8A428` argument helps bootstrap new builds * darwintrace logging now resolves volfs (/.vol) paths to POSIX paths * Automatically unmount devfs and volfs from the BuildRoot at exit * Added support for manifests / uuids of roots that are created with DarwinBuild The full list of changes is available on the web[2]. See the read me [3] for more information about the Darwin Build Scripts. [1] <http://www.opendarwin.org/projects/darwinbuild/releases/ darwinbuild-0.6.tar.gz> [2] <http://www.opendarwin.org/projects/darwinbuild/releases/CHANGES> [3] <http://www.opendarwin.org/projects/darwinbuild/releases/README>
I tried the latest verions (0.6) without success. The problems I have had so far are: 1) when I did the make for darwinbuild I got some error. Did not record it, but when I ran it a second time it worked fine. 2) When running init I get: Panther:/Volumes/Builds/Build8C46 root# darwinbuild -init 8C46 Found 8C46.plist in .build Could not dlopen plugin: edit.so Could not dlopen plugin: edit.so Found 8B15.plist in .build Could not dlopen plugin: edit.so Could not dlopen plugin: edit.so Found 8A428.plist in .build Could not dlopen plugin: edit.so Could not dlopen plugin: edit.so Initialization Complete 3) Attempting the next step I get: Panther:/Volumes/Builds/Build8C46 root# darwinbuild -depsbuild=8A428 launchd Could not dlopen plugin: edit.so Could not dlopen plugin: edit.so Could not dlopen plugin: edit.so *** Fetching Sources ... Could not dlopen plugin: edit.so Attempting to download http://darwinsource.opendarwin.org/tarballs/other//launchd-106.3.tar.gz ... Attempting to download http://darwinsource.opendarwin.org/tarballs/apsl//launchd-106.3.tar.gz ... Download complete *** Copying Sources ... *** Installing Roots ... Could not dlopen plugin: edit.so Could not dlopen plugin: edit.so Could not dlopen plugin: edit.so /8A428/files.root.tar.gz ...//darwinsource.opendarwin.org/Roots/ ERROR: could not find root: files I am running Panther. Panther:/Volumes/Builds/Build8C46 root# sw_vers ProductName: Mac OS X ProductVersion: 10.3.9 BuildVersion: 7W98 Michael
edit.c fails to compile on Panther, which results in an empty edit.so file. The build should have failed but didn't, I'll work on enhancing the makefiles. Apply the following patch to edit.c and reinstall (alternatively you could remove /usr/local/share/darwinxref/ plugins/edit.so). - Kevin --- darwinxref/plugins/edit.c.orig Tue Jul 26 19:33:06 2005 +++ darwinxref/plugins/edit.c Tue Jul 26 19:33:19 2005 @@ -32,6 +32,7 @@ #include "DBPlugin.h" #include <sys/stat.h> +#include <sys/wait.h> #include <unistd.h> int editPlist(CFStringRef project); On Jul 26, 2005, at 7:21 PM, Michael Franz wrote:
I tried the latest verions (0.6) without success.
The problems I have had so far are: 1) when I did the make for darwinbuild I got some error. Did not record it, but when I ran it a second time it worked fine. 2) When running init I get: Panther:/Volumes/Builds/Build8C46 root# darwinbuild -init 8C46 Found 8C46.plist in .build Could not dlopen plugin: edit.so Could not dlopen plugin: edit.so Found 8B15.plist in .build Could not dlopen plugin: edit.so Could not dlopen plugin: edit.so Found 8A428.plist in .build Could not dlopen plugin: edit.so Could not dlopen plugin: edit.so Initialization Complete 3) Attempting the next step I get: Panther:/Volumes/Builds/Build8C46 root# darwinbuild - depsbuild=8A428 launchd Could not dlopen plugin: edit.so Could not dlopen plugin: edit.so Could not dlopen plugin: edit.so *** Fetching Sources ... Could not dlopen plugin: edit.so Attempting to download http://darwinsource.opendarwin.org/tarballs/other// launchd-106.3.tar.gz ... Attempting to download http://darwinsource.opendarwin.org/tarballs/apsl//launchd-106.3.tar.gz ... Download complete *** Copying Sources ... *** Installing Roots ... Could not dlopen plugin: edit.so Could not dlopen plugin: edit.so Could not dlopen plugin: edit.so /8A428/files.root.tar.gz ...//darwinsource.opendarwin.org/Roots/ ERROR: could not find root: files
I am running Panther.
Panther:/Volumes/Builds/Build8C46 root# sw_vers ProductName: Mac OS X ProductVersion: 10.3.9 BuildVersion: 7W98
Michael
On 7/26/05, Kevin Van Vechten <kevin@opendarwin.org> wrote:
edit.c fails to compile on Panther, which results in an empty edit.so file. The build should have failed but didn't, I'll work on enhancing the makefiles. Apply the following patch to edit.c and reinstall (alternatively you could remove /usr/local/share/darwinxref/ plugins/edit.so).
Well, it did break the first time I ran make. But the second time it worked.
--- darwinxref/plugins/edit.c.orig Tue Jul 26 19:33:06 2005 +++ darwinxref/plugins/edit.c Tue Jul 26 19:33:19 2005 @@ -32,6 +32,7 @@ #include "DBPlugin.h" #include <sys/stat.h> +#include <sys/wait.h> #include <unistd.h> int editPlist(CFStringRef project);
This patched allowed me to get farther. Now I am getting: Panther:/Volumes/Builds/Build8C46 root# darwinbuild -depsbuild=8C46 launchd *** Fetching Sources ... Found launchd-106.3.tar.gz in /Volumes/Builds/Build8C46/Sources *** Copying Sources ... *** Installing Roots ... /8C46/files.root.tar.gz ...://darwinsource.opendarwin.org/Roots/ ERROR: could not find root: files Panther:/Volumes/Builds/Build8C46 root# darwinbuild -fetch apache_mod_php *** Fetching Sources ... Found apache_mod_php-18.tar.gz in /Volumes/Builds/Build8C46/Sources Panther:/Volumes/Builds/Build8C46 root# darwinbuild apache_mod_php *** Fetching Sources ... Found apache_mod_php-18.tar.gz in /Volumes/Builds/Build8C46/Sources *** Copying Sources ... *** Installing Roots ... /8C46/files.root.tar.gz ...://darwinsource.opendarwin.org/Roots/ ERROR: could not find root: files Michael
Looks like another Panther bug For some reason, the Tcl plugins to darwinxref were emitting carriage returns in the line endings instead of just linefeeds. The following patch (which has already been comitted to CVS) fixes this: --- darwinxref/DBTclPlugin.c 7 Jul 2005 22:43:39 -0000 1.5 +++ darwinxref/DBTclPlugin.c 28 Jul 2005 01:18:49 -0000 @@ -314,6 +314,7 @@ Tcl_Obj* varname = tcl_cfstr(CFSTR("__args__")); Tcl_ObjSetVar2(plugin->interp, varname, NULL, tcl_args, TCL_GLOBAL_ONLY); int exitCode = -1; + (void)Tcl_Eval(plugin->interp, "fconfigure stdout - translation lf"); if (Tcl_Eval(plugin->interp, "eval run ${__args__}") == TCL_OK) { Tcl_Obj* result = Tcl_GetObjResult(plugin->interp); if (Tcl_GetCharLength(result) == 0) { On Jul 26, 2005, at 7:43 PM, Michael Franz wrote:
On 7/26/05, Kevin Van Vechten <kevin@opendarwin.org> wrote:
edit.c fails to compile on Panther, which results in an empty edit.so file. The build should have failed but didn't, I'll work on enhancing the makefiles. Apply the following patch to edit.c and reinstall (alternatively you could remove /usr/local/share/ darwinxref/ plugins/edit.so).
Well, it did break the first time I ran make. But the second time it worked.
--- darwinxref/plugins/edit.c.orig Tue Jul 26 19:33:06 2005 +++ darwinxref/plugins/edit.c Tue Jul 26 19:33:19 2005 @@ -32,6 +32,7 @@ #include "DBPlugin.h" #include <sys/stat.h> +#include <sys/wait.h> #include <unistd.h> int editPlist(CFStringRef project);
This patched allowed me to get farther.
Now I am getting: Panther:/Volumes/Builds/Build8C46 root# darwinbuild -depsbuild=8C46 launchd *** Fetching Sources ... Found launchd-106.3.tar.gz in /Volumes/Builds/Build8C46/Sources *** Copying Sources ... *** Installing Roots ... /8C46/files.root.tar.gz ...://darwinsource.opendarwin.org/Roots/ ERROR: could not find root: files Panther:/Volumes/Builds/Build8C46 root# darwinbuild -fetch apache_mod_php *** Fetching Sources ... Found apache_mod_php-18.tar.gz in /Volumes/Builds/Build8C46/Sources Panther:/Volumes/Builds/Build8C46 root# darwinbuild apache_mod_php *** Fetching Sources ... Found apache_mod_php-18.tar.gz in /Volumes/Builds/Build8C46/Sources *** Copying Sources ... *** Installing Roots ... /8C46/files.root.tar.gz ...://darwinsource.opendarwin.org/Roots/ ERROR: could not find root: files
Michael
Wait, why are you trying to build the Tiger launchd on Panther (where it isn't supported, and probably won't build anyway)? Shantonu On Jul 27, 2005, at 6:22 PM, Kevin Van Vechten wrote:
Looks like another Panther bug For some reason, the Tcl plugins to darwinxref were emitting carriage returns in the line endings instead of just linefeeds. The following patch (which has already been comitted to CVS) fixes this:
--- darwinxref/DBTclPlugin.c 7 Jul 2005 22:43:39 -0000 1.5 +++ darwinxref/DBTclPlugin.c 28 Jul 2005 01:18:49 -0000 @@ -314,6 +314,7 @@ Tcl_Obj* varname = tcl_cfstr(CFSTR("__args__")); Tcl_ObjSetVar2(plugin->interp, varname, NULL, tcl_args, TCL_GLOBAL_ONLY); int exitCode = -1; + (void)Tcl_Eval(plugin->interp, "fconfigure stdout - translation lf"); if (Tcl_Eval(plugin->interp, "eval run ${__args__}") == TCL_OK) { Tcl_Obj* result = Tcl_GetObjResult(plugin->interp); if (Tcl_GetCharLength(result) == 0) {
On Jul 26, 2005, at 7:43 PM, Michael Franz wrote:
On 7/26/05, Kevin Van Vechten <kevin@opendarwin.org> wrote:
edit.c fails to compile on Panther, which results in an empty edit.so file. The build should have failed but didn't, I'll work on enhancing the makefiles. Apply the following patch to edit.c and reinstall (alternatively you could remove /usr/local/share/ darwinxref/ plugins/edit.so).
Well, it did break the first time I ran make. But the second time it worked.
--- darwinxref/plugins/edit.c.orig Tue Jul 26 19:33:06 2005 +++ darwinxref/plugins/edit.c Tue Jul 26 19:33:19 2005 @@ -32,6 +32,7 @@ #include "DBPlugin.h" #include <sys/stat.h> +#include <sys/wait.h> #include <unistd.h> int editPlist(CFStringRef project);
This patched allowed me to get farther.
Now I am getting: Panther:/Volumes/Builds/Build8C46 root# darwinbuild - depsbuild=8C46 launchd *** Fetching Sources ... Found launchd-106.3.tar.gz in /Volumes/Builds/Build8C46/Sources *** Copying Sources ... *** Installing Roots ... /8C46/files.root.tar.gz ...://darwinsource.opendarwin.org/Roots/ ERROR: could not find root: files Panther:/Volumes/Builds/Build8C46 root# darwinbuild -fetch apache_mod_php *** Fetching Sources ... Found apache_mod_php-18.tar.gz in /Volumes/Builds/Build8C46/Sources Panther:/Volumes/Builds/Build8C46 root# darwinbuild apache_mod_php *** Fetching Sources ... Found apache_mod_php-18.tar.gz in /Volumes/Builds/Build8C46/Sources *** Copying Sources ... *** Installing Roots ... /8C46/files.root.tar.gz ...://darwinsource.opendarwin.org/Roots/ ERROR: could not find root: files
Michael
_______________________________________________ darwinbuild mailing list darwinbuild@opendarwin.org http://www.opendarwin.org/mailman/listinfo/darwinbuild
On 7/28/05, Shantonu Sen <ssen@opendarwin.org> wrote:
Wait, why are you trying to build the Tiger launchd on Panther (where it isn't supported, and probably won't build anyway)?
Shantonu
I don't really want to build launchd. I was just following the these instructions from a different email from Kevin. # mkdir /tmp/BuildTest && cd /tmp/BuildTest # darwinbuild -init 8C46 # darwinbuild -depsbuild=8A428 launchd Michael
participants (3)
-
Kevin Van Vechten
-
Michael Franz
-
Shantonu Sen