Zvingave zvakanaka kuva nazvo tmate yeHaiku, ipapo ndaizobvumira vagadziri veHaiku kuti vabatanidze kune yangu terminal sesheni - kana chimwe chinhu chikatadza. Mirayiridzo yacho iri nyore:
./autogen.sh
./configure
make
make install
Inotaridzika zvakanaka, saka wadii kuiedza paHaiku?
/Haiku/home> git clone https://github.com/tmate-io/tmate/Haiku/home> cd tmate//Haiku/home/tmate> ./autogen.sh
(...)/Haiku/home/tmate> ./configure
(...)
checking for libevent... no
checking for library containing event_init... no
configure: error: "libevent not found"/Haiku/home/tmate> pkgman install devel:libevent
(...)
The following changes will be made:
in system:
install package libevent21-2.1.8-2 from repository HaikuPorts
install package libevent21_devel-2.1.8-2 from repository HaikuPorts
Continue? [yes/no] (yes) :
100% libevent21-2.1.8-2-x86_64.hpkg [965.22 KiB]
(...)
[system] Done.checking for ncurses... no
checking for library containing setupterm... no
configure: error: "curses not found"/Haiku/home/tmate> pkgman install devel:libcurses
(...)
*** Failed to find a match for "devel:libcurses": Name not found/Haiku/home/tmate> pkgman install devel:curses
(...)
*** Failed to find a match for "devel:curses": Name not found
/Haiku/home/tmate> pkgman install devel:libncurses
(...)
100% ncurses6_devel-6.1-1-x86_64.hpkg [835.62 KiB]
(...)./configure
(...)
checking for msgpack >= 1.1.0... no
configure: error: "msgpack >= 1.1.0 not found"/Haiku/home/tmate> pkgman install devel:msgpack
(...)
*** Failed to find a match for "devel:msgpack": Name not found/Haiku/home/tmate> pkgman install devel:libmsgpack
(...)
*** Failed to find a match for "devel:libmsgpack": Name not found
/Haiku/home/tmate> pkgman install devel:msgpack_c_cpp_devel
100% repochecksum-1 [65 bytes]
Validating checksum for Haiku...done.
100% repochecksum-1 [64 bytes]
Validating checksum for HaikuPorts...done.
*** Failed to find a match for "devel:msgpack_c_cpp_devel": Name not found# Why is it not finding it? To hell with the "devel:".../Haiku/home/tmate> pkgman install msgpack_c_cpp_devel
(...)
The following changes will be made:
in system:
install package msgpack_c_cpp-3.1.1-1 from repository HaikuPorts
install package msgpack_c_cpp_devel-3.1.1-1 from repository HaikuPorts
Continue? [yes/no] (yes) :
(...)/Haiku/home/tmate> ./configure
(...)
checking for libssh >= 0.8.4... no
configure: error: "libssh >= 0.8.4 not found"/Haiku/home/tmate> pkgman install devel:libssh/Haiku/home/tmate> make
(...)
In file included from /boot/system/develop/headers/msgpack.h:22,
from tmate.h:5,
from cfg.c:29:
/boot/system/develop/headers/msgpack/vrefbuffer.h:19:8: error: redefinition of struct iovec'
struct iovec {
^~~~~
In file included from tmux.h:27,
from cfg.c:28:
/boot/system/develop/headers/posix/sys/uio.h:12:16: note: originally defined here
typedef struct iovec {
^~~~~
Makefile:969: recipe for target 'cfg.o' failed
make: *** [cfg.o] Error 1
Maminitsi mashanu gare gare, iyo yakagadziridzwa msgpack yatovepo muHaiku:
/Haiku/home/tmate> pkgman update
(...)
The following changes will be made:
in system:
upgrade package msgpack_c_cpp-3.1.1-1 to 3.2.0-2 from repository HaikuPorts
upgrade package msgpack_c_cpp_devel-3.1.1-1 to 3.2.0-2 from repository HaikuPorts
Continue? [yes/no] (yes) : y
100% msgpack_c_cpp-3.2.0-2-x86_64.hpkg [13.43 KiB]
(...)
[system] Done.
Zvakanaka zvisingatarisirwi. Ndati here?!
Ndinodzokera kudambudziko rekutanga:
/Haiku/home/tmate> make
(...)
In file included from tmux.h:40,
from tty.c:32:
compat.h:266: warning: "AT_FDCWD" redefined
#define AT_FDCWD -100
In file included from tty.c:25:
/boot/system/develop/headers/posix/fcntl.h:62: note: this is the location of the previous definition
#define AT_FDCWD (-1) /* CWD FD for the *at() functions */
tty.c: In function 'tty_init_termios':
tty.c:278:48: error: 'IMAXBEL' undeclared (first use in this function); did you mean 'MAXLABEL'?
tio.c_iflag &= ~(IXON|IXOFF|ICRNL|INLCR|IGNCR|IMAXBEL|ISTRIP);
^~~~~~~
MAXLABEL
tty.c:278:48: note: each undeclared identifier is reported only once for each function it appears in
Makefile:969: recipe for target 'tty.o' failed
make: *** [tty.o] Error 1
osdep-unknown.c: In function 'osdep_get_cwd':
osdep-unknown.c:32:19: warning: unused parameter 'fd' [-Wunused-parameter]
osdep_get_cwd(int fd)
~~~~^~
make: *** No rule to make target 'compat/forkpty-unknown.c', needed by 'compat/forkpty-unknown.o'. Stop.
Zvakanaka, hezvino tinoenda zvakare ... Nenzira:
/Haiku/home/tmate> ./configure | grep -i OPENAT
checking for openat... no
/Haiku/home/tmate> ./configure LDFLAGS="-lbsd"
(...)/Haiku/home/tmate> make
(...)
In file included from tmux.h:40,
from window.c:31:
compat.h:266: warning: "AT_FDCWD" redefined
#define AT_FDCWD -100
In file included from window.c:22:
/boot/system/develop/headers/posix/fcntl.h:62: note: this is the location of the previous definition
#define AT_FDCWD (-1) /* CWD FD for the *at() functions */
make: *** No rule to make target 'compat/forkpty-unknown.c', needed by 'compat/forkpty-unknown.o'. Stop.
Vakanditsanangurira kuti pane chimwe chinhu mu libnetwork mukuwedzera kune libresolv paHaiku. Zviri pachena kuti code inoda kugadziridzwa mberi. Unofanira kufungaβ¦
find . -type f -exec sed -i -e 's|lresolv|lnetwork|g' {} ;
Mubvunzo usingaperi: chii chiri kuitika?
/Haiku/home/tmate> ./configure LDFLAGS="-lbsd"
(...)/Haiku/home/tmate> make
(...)
# Success!# Let's run it:/Haiku/home/tmate> ./tmate
runtime_loader: /boot/system/lib/libssh.so.4.7.2: Could not resolve symbol '__stack_chk_guard'
resolve symbol "__stack_chk_guard" returned: -2147478780
runtime_loader: /boot/system/lib/libssh.so.4.7.2: Troubles relocating: Symbol not found
Iko hakuna chikonzero chekuchengeta mabikirwo muHaikuPorts kuchengetedza. Iwe unogona kugadzira imwe repository, isa mabikirwo mairi, uye wozonongedza haikuporter kwairi.
Izvo zvandinoda - kana ndisiri kutsvaga nzira yekuburitsa pachena iyo package. Asi iyi inyaya yeimwe post.
Kuisa haikuporter uye haikuports
cd /boot/home/
git clone https://github.com/haikuports/haikuporter --depth=50
git clone https://github.com/haikuports/haikuports --depth=50
ln -s /boot/home/haikuporter/haikuporter /boot/home/config/non-packaged/bin/ # make it runnable from anywhere
cd haikuporter
cp haikuports-sample.conf /boot/home/config/settings/haikuports.conf
sed -i -e 's|/mydisk/haikuports|/boot/home/haikuports|g' /boot/home/config/settings/haikuports.conf
Kunyora resipi
SUMMARY="Demo QtQuick application"
DESCRIPTION="QtQuickApp is a demo QtQuick application for testing Haiku porting and packaging"
HOMEPAGE="https://github.com/probonopd/QtQuickApp"
COPYRIGHT="None"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/probonopd/QtQuickApp.git"
#PATCHES=""
ARCHITECTURES="x86_64"
PROVIDES="
QtQuickApp = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
cmd:qmake
"BUILD()
{
qmake .
make $jobArgs
}INSTALL()
{
make install
}
Kuunganidza resipi
Ndinochengetedza faira pasi pezita QtQuickApp-1.0.recipe, mushure mezvo ndinovhura aikuporter -S ./QuickApp-1.0.recipe. Dependencies inotariswa kune ese mapakeji mune repository haikuports, izvo zvinotora nguva. Ndichaenda kunotora kofi.
Sei pasi pano ichi cheki ichifanirwa kuitwa pamushini wangu wepanzvimbo, uye kwete nechepakati pane server kamwe kune wese munhu?
~/QtQuickApp> haikuporter QtQuickApp-1.0.recipe
Checking if any dependency-infos need to be updated ...
Looking for stale dependency-infos ...
Error: QtQuickApp not found in repository
Izvi zvinoita kuti gungano rinyanye kunetsa. Ini handizvifarire zvakanyanya, asi ndinofunga zvakakosha kuti pakupedzisira ese akavhurika sosi software aonekwe muHaikuPorts.
Ndinowana zvinotevera:
~/QtQuickApp> haikuporter -S QtQuickApp-1.0.recipe
Checking if any dependency-infos need to be updated ...
updating dependency infos of QtQuickApp-1.0
Looking for stale dependency-infos ...
Error: QtQuickApp-1.0.recipe not found in tree.
Chii chanetsa? Mushure mekuverenga irc ndinoita:
~/QtQuickApp> haikuporter -S QtQuickApp
Checking if any dependency-infos need to be updated ...
updating dependency infos of QtQuickApp-1.0
Looking for stale dependency-infos ...
----------------------------------------------------------------------
app-misc::QtQuickApp-1.0
/boot/home/haikuports/app-misc/QtQuickApp/QtQuickApp-1.0.recipe
----------------------------------------------------------------------Downloading: https://github.com/probonopd/QtQuickApp.git ...
--2019-07-14 16:12:44-- https://github.com/probonopd/QtQuickApp.git
Resolving github.com... 140.82.118.3
Connecting to github.com|140.82.118.3|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://github.com/probonopd/QtQuickApp [following]
--2019-07-14 16:12:45-- https://github.com/probonopd/QtQuickApp
Reusing existing connection to github.com:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: β/boot/home/haikuports/app-misc/QtQuickApp/download/QtQuickApp.gitβ
0K . 1.34M=0.06s
2019-07-14 16:12:45 (1.34 MB/s) - β/boot/home/haikuports/app-misc/QtQuickApp/download/QtQuickApp.gitβ saved [90094]
Validating checksum of QtQuickApp.git
Warning: ----- CHECKSUM TEMPLATE -----
Warning: CHECKSUM_SHA256="cf906a65442748c95df16730c66307a46d02ab3a12137f89076ec7018d8ce18c"
Warning: -----------------------------
Error: No checksum found in recipe!
~/QtQuickApp> haikuporter -S QtQuickApp
Checking if any dependency-infos need to be updated ...
updating dependency infos of QtQuickApp-1.0
Looking for stale dependency-infos ...
----------------------------------------------------------------------
app-misc::QtQuickApp-1.0
/boot/home/haikuports/app-misc/QtQuickApp/QtQuickApp-1.0.recipe
----------------------------------------------------------------------
Skipping download of source for QtQuickApp.git
Validating checksum of QtQuickApp.git
Unpacking source of QtQuickApp.git
Error: Unrecognized archive type in file /boot/home/haikuports/app-misc/QtQuickApp/download/QtQuickApp.git
Arikuitei? Mushure mezvose, iyi git repository, iyo kodhi yatovepo zvakananga, hapana chekusunungura. Kubva pamaonero angu, chishandiso chinofanira kuve chakangwara zvakakwana kuti usatarise unpacker kana iri pamusoro peGitHub url.
~/QtQuickApp> haikuporter -S QtQuickApp
Checking if any dependency-infos need to be updated ...
Looking for stale dependency-infos ...
----------------------------------------------------------------------
app-misc::QtQuickApp-1.0
/boot/home/haikuports/app-misc/QtQuickApp/QtQuickApp-1.0.recipe
----------------------------------------------------------------------Downloading: git+https://github.com/probonopd/QtQuickApp.git ...
Warning: UNSAFE SOURCES ARE BAD AND SHOULD NOT BE USED IN PRODUCTION
Warning: PLEASE MOVE TO A STATIC ARCHIVE DOWNLOAD WITH CHECKSUM ASAP!
Cloning into bare repository '/boot/home/haikuports/app-misc/QtQuickApp/download/QtQuickApp.git'...
Unpacking source of QtQuickApp.git
tar: /boot/home/haikuports/app-misc/QtQuickApp/work-1.0/sources/QtQuickApp-1.0: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
Command 'git archive HEAD | tar -x -C "/boot/home/haikuports/app-misc/QtQuickApp/work-1.0/sources/QtQuickApp-1.0"' returned non-zero exit status 2
waiting for build package QtQuickApp-1.0-1 to be activated
waiting for build package QtQuickApp-1.0-1 to be activated
waiting for build package QtQuickApp-1.0-1 to be activated
waiting for build package QtQuickApp-1.0-1 to be activated
waiting for build package QtQuickApp-1.0-1 to be activated
(...)
Inodzokorora iyi ad infinitum. Zviripachena kuti uku kukanganisa (pane application here? Handina kuiwana).
Π‘ haikuporter uye repository haikuports Iyo haina "inongoshanda" kunzwa kwairi, asi semugadziri, pane zvimwe zvinhu zvandinoda nezvekushanda neHaiku. Kune chikamu chikuru, zvakafanana neOpen Build Service, seti yezvishandiso zvekuvaka Linux inovaka: ine simba zvakanyanya, ine yakarongeka maitiro, asi yakawandisa kune yangu diki "hello world" application.
Pamwe, izvi Mirayiridzo iri nyore ichandiitira nani here?
mkdir -p apps/
cp QtQuickApp apps/cat > .PackageInfo <<EOF
name QtQuickApp
version 1.0-1
architecture x86_64
summary "Demo QtQuick application"
description "QtQuickApp is a demo QtQuick application for testing Haiku porting and packaging"
packager "probono"
vendor "probono"
copyrights "probono"
licenses "MIT"
provides {
QtQuickApp = 1.0-1
}requires {
qt5
}
EOFpackage create -b QtQuickApp.hpkg
package add QtQuickApp.hpkg apps# See below if you also want the application
# to appear in the menu
Sei paine 2 madhairekitori ane maapplication, uyezve nei yangu QtQuickApplication iri mune imwe, asi isiri mune imwe? (Mushure mezvose, iyi haisi imwe system imwe, asi yechipiri mushandisi, izvo zvingave zvinonzwisisika kwandiri pachangu).
Ndakavhiringika uye ndinofunga izvi zvinofanirwa kuve zvakabatana.
zvakataurwa na mr. waddlesplash
Iyo Apps catalogue ine maapplication asiri kudiwa mumenyu. Asi mamiriro ane menyu anoda chaizvo kuvandudzwa, kuti awedzere kurongeka.
Kushandisa, kana kuti hazvizoitike π
Ndakashamisika: zvinonyatso fanirwa kubata maapplication mukati /system/apps, kana vashandisi vakazviona ipapo, hazvidiwe. Zvichida zvingava nani kuvaisa kune imwe nzvimbo iyo mushandisi asingasangane navo? Sezvakangoita muMac OS X, uko zviri mukati memapakeji .app, iyo isingafanirwe kuonekwa kune mushandisi mukati /Applications, kuhwanda mukati me /System/Library/β¦β`.
Ko kana ini ndichida kuwedzera imwe yeakashambidzika akavakirwa-mukati zviwanikwa kune yangu ichangobva kugadzirwa application? Zvinoitika kuti iyi inyaya inoshamisa, saka ichava hwaro hwechinyorwa chinotevera.
Maitiro ekuronga inoenderera application inovaka?
Fungidzira purojekiti yakaita seInkscape (hongu, ndinoziva kuti haisati yawanikwa muHaiku, asi iri nyore kuratidza pairi). Vane source code repository https://gitlab.com/inkscape/inkscape.
Pese kana mumwe munhu aita shanduko kune repository, mapaipi ekuvaka anotangwa, mushure mezvo shanduko dzinoyedzwa otomatiki, kuvakwa, uye application inoiswa mumapakeji akasiyana siyana, kusanganisira AppImage yeLinux (yakamira yakamira application package inogona kudhawunirodherwa kuongororwa munharaunda zvisinei. chii chinogona kana kusaiswa pane system [Ndaizviziva! - approx. muturikiri]) Chinhu chimwe chete chinoitika nebazi rega rega rekubatanidza chikumbiro, saka unogona kudhawunirodha chikumbiro chakavakwa kubva kune kodhi yakarongwa muchikumbiro chekubatanidza usati wasangana.