Package Details: bitbake-vim 2.2.1-1

Git Clone URL: https://aur.archlinux.org/bitbake.git (read-only, click to copy)
Package Base: bitbake
Description: Build tool executing tasks and managing metadata
Upstream URL: https://www.openembedded.org/wiki/Main_Page
Licenses: GPL2
Submitter: ftonello
Maintainer: None
Last Packager: FabioLolix
Votes: 4
Popularity: 0.000000
First Submitted: 2016-07-21 14:48 (UTC)
Last Updated: 2023-03-11 21:26 (UTC)

Dependencies (0)

Required by (0)

Sources (1)

Latest Comments

1 2 3 4 5 Next › Last »

nicolai_d commented on 2024-03-29 14:05 (UTC) (edited on 2024-03-29 14:09 (UTC) by nicolai_d)

DO NOT DO what the packages tells you about adding the bb python module's path to your PYTHONPATH variable. This will break so much on you system... Doing so means that python will use that directory to search for modules first, and it contains a build.py file, so from that point on, python -m build will not work anymore and you won't be able to build anymore python packages... Could you provide the reason for asking the user to do such a thing ? Especially since the python modules is installed as it should, where it should and I see nowhere in the documentation anything about changing the PYTHONPATH.

EDIT: looking at the comment history of this PKGBUILD it seems that it was brought up at some point a few years back to fix something (??? the logs are gone so I don't know what). But I would argue it is still a very bad idea to just ask the user to do that without any warning or explanation

gbin commented on 2023-10-28 19:40 (UTC)

This bumps the package to 2.4.3 and fix the bitbake-server path error. This is not well tested at all but at least we can move forward a little bit on this one.

diff --git a/PKGBUILD b/PKGBUILD
index e23a64d..3992f13 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@

 pkgbase=bitbake
 pkgname=(bitbake bitbake-vim)
-pkgver=2.2.1
+pkgver=2.4.3
 pkgrel=1
 pkgdesc="Build tool executing tasks and managing metadata"
 url="https://www.openembedded.org/wiki/Main_Page"
@@ -14,8 +14,10 @@ arch=(any)
 depends=(python python-beautifulsoup4 python-ply python-codegen
          python-progressbar python-pyinotify python-simplediff)
 #checkdepends=(git wget)
-source=("https://git.openembedded.org/bitbake/snapshot/bitbake-${pkgver}.tar.gz")
-sha256sums=('12eb41839071c60c60a005ffadbac13e1017a7cb4c2a38b04946471dc22bb5bc')
+source=("https://git.openembedded.org/bitbake/snapshot/bitbake-${pkgver}.tar.gz"
+        "wrong-bitbake-server-path.patch")
+sha256sums=('97cf069e0b34274c701dcce96284783aa6d883c6829f50a2147fa7659fe301cf'
+            'f8cb0cde5155198baf2ead776fa445ec5740a99952e9421a22dc8648e3947549')

 #check() {
 #    if ! git config --global --get user.name; then
@@ -46,6 +48,9 @@ package_bitbake() {
     cd "${pkgbase}-${pkgver}"

     find . -iname "*.log" -delete
+
+    patch --forward --strip=2 --input="${srcdir}/wrong-bitbake-server-path.patch"
+
     install -d "${pkgdir}/usr/bin"
     install bin/bitbake* "${pkgdir}/usr/bin"

diff --git a/wrong-bitbake-server-path.patch b/wrong-bitbake-server-path.patch
new file mode 100644
index 0000000..8d409d7
--- /dev/null
+++ b/wrong-bitbake-server-path.patch
@@ -0,0 +1,12 @@
+diff --unified --recursive --text package.orig/bitbake-2.4.3/lib/bb/server/process.py package.new/bitbake-2.4.3/lib/bb/server/process.py
+--- package.orig/bitbake-2.4.3/lib/bb/server/process.py    2023-10-28 14:13:45.546979668 -0500
++++ package.new/bitbake-2.4.3/lib/bb/server/process.py 2023-10-28 14:14:56.171216329 -0500
+@@ -619,7 +619,7 @@
+         os.close(self.readypipe)
+         os.set_inheritable(self.bitbake_lock.fileno(), True)
+         os.set_inheritable(self.readypipein, True)
+-        serverscript = os.path.realpath(os.path.dirname(__file__) + "/../../../bin/bitbake-server")
++        serverscript = "/usr/bin/bitbake-server"
+         os.execl(sys.executable, "bitbake-server", serverscript, "decafbad", str(self.bitbake_lock.fileno()), str(self.readypipein), self.logfile, self.bitbake_lock.name, self.sockname,  str(self.server_timeout or 0), str(int(self.profile)), str(self.xmlrpcinterface[0]), str(self.xmlrpcinterface[1]))
+ 
+ def execServer(lockfd, readypipeinfd, lockname, sockname, server_timeout, xmlrpcinterface, profile):

Freed commented on 2023-06-16 08:50 (UTC)

Anyone can try https://aur.archlinux.org/packages/python-bitbake.

Freed commented on 2023-06-05 07:59 (UTC)

bitbake has new version 2.4

Freed commented on 2023-06-05 06:17 (UTC)

I met

$ bitbake

/usr/lib/python3.11/site-packages/pyinotify.py:71: DeprecationWarning: The asyncore module is deprecated and will be removed in Python 3.12. The recommended replacement is asyncio
  import asyncore
ERROR: Unable to start bitbake server (None)
ERROR: Server didn't start, last 60 loglines (/dev/shm/bitbake-cookerdaemon.log):
bitbake-server: can't open file '/usr/lib/python3.11/bin/bitbake-server': [Errno 2] No such file or directory

FabioLolix commented on 2021-06-06 16:00 (UTC)

This need a layerindexlib python module and don't know where to grab it

 import layerindexlib

ModuleNotFoundError: No module named 'layerindexlib'

curlywei commented on 2021-01-23 10:48 (UTC) (edited on 2021-01-23 11:41 (UTC) by curlywei)

python-django18 This package seems disappear. Does python-django might be suitable?

<deleted-account> commented on 2020-08-16 15:04 (UTC)

DO NOT INSTALL THIS PACKAGE.

The PKGBUILD will change your git config user and email to "Bitbake Tester". The maintainer has been notified about this but has not responded or updated the package.

DO NOT INSTALL THIS PACKAGE.

ivdok commented on 2020-05-10 10:44 (UTC) (edited on 2020-05-10 10:46 (UTC) by ivdok)

test_dependency_resolution (layerindexlib.tests.cooker.LayerIndexCookerTest) ERROR (truncated, detailed log here: https://0paste.com/67244).

git, diffstat, unzip, texinfo, python, chrpath, wget, xterm, sdl, rpcsvc-proto, socat, cpio and inetutils are installed, so what gives?