I’ve got it – finally
You can download the iso image with pre installed Wine package from here:
https://drive.google.com/file/d/1X3FB2A30hSEZODvfERu5wX7B6m6qIbFC/view?usp=sharing
The bad news is: Wine refuses to start in a live environment
I get this massage:
~> winecfg
wine: created the configuration directory '/boot/home/.wine'
wineserver: bind: Operation not supported
~>
Thank you guys, the hint with downloads directory was the game changer
Here a quick HowTo in case someone is also searching for a way to include pre compiled local packages in a nightly image.
Fist: compile the image like described on Haiku homepage.
Then copy your packages to $(HAIKU_TOP)/generated.x86_64/download
directory.
In my case: libusb-1.0.24-1-x86_64.hpkg, libusb_compat-0.1.7-1-x86_64.hpkg, vulkan-1.2.203-1-x86_64.hpkg, wine-6.23-1-x86_64.hpkg
packages.
Then edit the file: $(HAIKU_TOP)/build/jam/repositories/HaikuPorts/x86_64
and add your packages there.
Here are my changes:
~/Projekte/Haiku/haiku/build/jam/repositories/HaikuPorts> diff -uNr x86_64.orig x86_64
--- x86_64.orig 2022-02-03 14:06:14.061603840 +0100
+++ x86_64 2022-02-03 15:33:54.930611200 +0100
@@ -140,6 +140,8 @@
libtheora_devel-1.1.1-7
libtool-2.4.6-2
libunistring-0.9.10-1
+ libusb-1.0.24-1
+ libusb_compat-0.1.7-1
libvorbis-1.3.7-1
libvorbis_devel-1.3.7-1
libvpx-1.10.0-1
@@ -213,10 +215,12 @@
tnftp-20151004-6
unzip-6.10c23-4
vision-0.10.6-2
+ vulkan-1.2.203-1
wavpack-5.4.0-1
wavpack_devel-5.4.0-1
wget-1.21.1-1
which-2.21-6
+ wine-6.23-1
wpa_supplicant-2.9.haiku.1-3
xz_utils-5.2.5-1
xz_utils_devel-5.2.5-1
~/Projekte/Haiku/haiku/build/jam/repositories/HaikuPorts>
Then edit the file: $(HAIKU_TOP)/build/jam/DefaultBuildProfiles
Look for the line: case "nightly-*" : {
In this section increase the HAIKU_IMAGE_SIZE
from 600 to 650MB and add your packages to the list after AddHaikuImageSystemPackages
rule.
Here are my changes:
~/Projekte/Haiku/haiku/build/jam> diff -uNr DefaultBuildProfiles.orig DefaultBuildProfiles
--- DefaultBuildProfiles.orig 2022-02-03 14:06:14.058195968 +0100
+++ DefaultBuildProfiles 2022-02-03 17:59:57.951058432 +0100
@@ -130,16 +130,20 @@
if $(DEBUG) != 0 {
HAIKU_IMAGE_SIZE ?= 850 ;
}
- HAIKU_IMAGE_SIZE ?= 600 ;
+ HAIKU_IMAGE_SIZE ?= 650 ;
HAIKU_NIGHTLY_BUILD = 1 ;
AddHaikuImageSystemPackages
+ libusb
+ libusb_compat
mandoc
noto
openssh
openssl
pe
vision
+ vulkan
+ wine
wpa_supplicant
# xz_utils can't be built with gcc2, so we install it for
# primary gcc 8 architectures or gcc 2 hybrids.
~/Projekte/Haiku/haiku/build/jam>
Now go back to $(HAIKU_TOP)/generated.x86_64
directory and execute the jam
command again.
In my case: jam -q -j4 @nightly-anyboot
That’s it - congratulation - jam
should now produce a new image with your packages included
An alternative approach would be, instead to add your packages to $(HAIKU_TOP)/build/jam/DefaultBuildProfiles
, to create a new file $(HAIKU_TOP)/build/jam/UserBuildConfig
and add the packages there (see also UserBuildConfig.ReadMe
and UserBuildConfig.sample
for some examples). Here is how it looks like:
~/Projekte/Haiku/haiku/build/jam> cat UserBuildConfig
# Add the optional package Wine to the image.
AddHaikuImagePackages vulkan libusb libusb_compat wine ;
~/Projekte/Haiku/haiku/build/jam>
But there is one problem, instead to copy the packages to /boot/system/packages
directory, the AddHaikuImagePackages
rule, puts them in the /boot
directory. Here is my output:
/boot> ls
home trash
libusb_compat-0.1.7-1-x86_64.hpkg vulkan-1.2.203-1-x86_64.hpkg
libusb-1.0.24-1-x86_64.hpkg wine-6.23-1-x86_64.hpkg
system
/boot>
– Bug
So here is the answer to my question in the previous post - since DefaultBuildProfiles
file use the AddHaikuImageSystemPackages
rule and it seems to work, use it, instead of the AddHaikuImagePackages
rule which is suggested in UserBuildConfig.sample
file.
See also korlis comment bellow: Wine test image - #22 by korli
Happy testing