Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support adding third party package using package link #1151

Closed
ghost opened this issue Jan 12, 2025 · 6 comments
Closed

support adding third party package using package link #1151

ghost opened this issue Jan 12, 2025 · 6 comments

Comments

@ghost
Copy link

ghost commented Jan 12, 2025

Please consider support building third party package using repo link

@efahl
Copy link
Contributor

efahl commented Jan 13, 2025

The basic pieces are in the server code, it's just not fleshed out, and the new setup.sh based snapshot scheme breaks it completely...

I'm looking at making it work, do you have any specific 3rd party repos in mind that you could post so I can test against them? Probably need the keys, too, so pretty much everything you've got in /etc/opkg/ (or /etc/apk/ if you're on snapshots).

@efahl
Copy link
Contributor

efahl commented Jan 14, 2025

The ASU server doesn't do any building or compilation of packages, it will need a link to a standard opkg (or apk as appropriate) package repo, like https://downloads.openwrt.org/releases/packages-24.10/mips_24kc/packages/. This feed repo must contain the package index, signature and architecture-specific packages in .ipk/.apk format.

The ASU server is simply handing off a list of package names to the image builder, which then uses the bundled package manager to read the feeds.conf containing the link to that repo to resolve and install all of the desired packages.

@ghost ghost changed the title support building third party package using git repo link support building third party package using package repo link Jan 14, 2025
@ghost
Copy link
Author

ghost commented Jan 14, 2025

@efahl Can i simply provide a single ipk file link?

@efahl
Copy link
Contributor

efahl commented Jan 14, 2025

No, that's not a capability offered by the image builders. It would require a significant rework of the build system outside of the ASU server to implement.

@ghost
Copy link
Author

ghost commented Jan 15, 2025

Ok. Forget about that.

I changed the issue to be "provide a link to package repo. "
That's something to be implemented, right?

@ghost ghost changed the title support building third party package using package repo link support adding third party package using package link Jan 15, 2025
@efahl
Copy link
Contributor

efahl commented Jan 17, 2025

Since image builder can't install packages that are outside of a package feed, the only supported mechanism in the ASU server will be by supplying a feed file that contains something like

src/gz openwrt_telephony https://downloads.openwrt.org/releases/24.10-SNAPSHOT/packages/x86_64/telephony

and then you'll be able to add a package from that feed, like asterisk or whatever the feed supplies.

This is the same thing you'd do on the device itself, which would look like this.

# Configure the new feed.
$ echo 'src/gz openwrt_telephony https://downloads.openwrt.org/releases/24.10-SNAPSHOT/packages/x86_64/telephony' >> /etc/opkg/customfeeds.conf

# Install a package from it.
$ opkg update
$ opkg install asterisk

@ghost ghost closed this as completed Jan 20, 2025
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant