Where is the opkg source code?

Hi,
I want to contribute a tiny change to opkg.
As a small challenge, I'd like to open a Pull Request rather than just submit a ticket.
But I can't find its source code anywhere under https://github.com/openwrt/openwrt
The closest I found is https://github.com/openwrt/openwrt/tree/openwrt-22.03/package/system/opkg/files, which is also where the "Source Code" box in https://openwrt.org/packages/pkgdata/opkg points to.
This directory looks like it contains some configuration and installation directions, not the actual source code of /bin/opkg
Could someone please point me in the right direction?
Thank you.

EDIT: Is this it? https://github.com/openwrt/opkg-lede

Change version tag to 24.10, then seek that tag in openwrt-lede
Later versions will use alpine apk for package manager.

1 Like

Where should I change the tag? I see a tag in the top-level openwrt release (https://github.com/openwrt/openwrt/releases/tag/v24.10.0) but there are none on https://github.com/openwrt/opkg-lede/tags

And back to my original question - is a PR on https://github.com/openwrt/opkg-lede/ enough to get my suggestion done or do I need to do this somewhere else?

Whrn you get to openwrt/openwrt repo from wildly outdated pkgdata pages right above file listing there is a box showing branch 22.03, click and change to 24.10.

The main repository is here:

https://git.openwrt.org/?p=project/opkg-lede.git;a=tree;h=refs/heads/master;hb=refs/heads/master

The Github mirror is here:

https://github.com/openwrt/opkg-lede

(and I see that there is a PR created 40 minutes ago which I assume means that you figured it out already)

That said, I doubt that your PR will get merged or even looked at because OpenWrt is on the way to switch to another package manager - apk, possibly already in the next release.

2 Likes

Ah ok.
I didn't realise that the github repo is not the source of truth.