openwrt / openwrt/packages

luajit: LuaJIT has a "rolling release" where we should follow git HEAD

Open
#25,299 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

Maintainer: @milani
Environment: build system

Description: LuaJIT has a "rolling release" where we should follow git HEAD[1]. I believe that the currently tagged version is tracking code from 2017. Can we update our package to track HEAD? I made an attempt to modify it based off lang/luajit2/Makefile but the patches need a refresh.

  1. https://luajit.org/download.html
diff --git a/lang/luajit/Makefile b/lang/luajit/Makefile
index c5d86a7065f5..c81168810f63 100644
--- a/lang/luajit/Makefile
+++ b/lang/luajit/Makefile
@@ -1,13 +1,14 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=luajit
-PKG_VERSION:=2.1.0-beta3
-PKG_RELEASE:=7
+PKG_SOURCE_DATE:=2024-10-02
+PKG_VERSION:=2.1.$(subst -,.,$(PKG_SOURCE_DATE))
+PKG_RELEASE:=1
 
-PKG_SOURCE:=LuaJIT-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://luajit.org/download
-PKG_HASH:=1ad2e34b111c802f9d0cdf019e986909123237a28c746b21295b63c9e785d9c3
-PKG_BUILD_DIR:=$(BUILD_DIR)/LuaJIT-$(PKG_VERSION)
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_URL:=https://github.com/LuaJIT/LuaJIT
+PKG_SOURCE_VERSION:=97813fb924edf822455f91a5fbbdfdb349e5984f
+PKG_MIRROR_HASH:=cbf1647acbd340c62b9c342dae43290762efa1b26d8bf8457f143fabf8ed86c7
 
 PKG_MAINTAINER:=Morteza Milani <milani@pichak.co>
 PKG_LICENSE:=MIT
-- 
2.47.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect lang/luajit/Makefile and compare it with lang/luajit2/Makefile first. Refresh the patches for the git-based LuaJIT source, then build the package to verify it follows the intended HEAD snapshot and the package build completes.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, lua
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.