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

建议:将 FriendlyWrt 23.05 中的 unrar 升级到和 OpenWRT 官方一样的 7.0 以解决并行编译 FriendlyWrt 的时候 unrar 编译随机失败的问题 #81

Open
AlanIWBFT opened this issue Oct 27, 2024 · 0 comments

Comments

@AlanIWBFT
Copy link

AlanIWBFT commented Oct 27, 2024

目前会出现下面的问题:

ERROR: package/feeds/packages/unrar failed to build (build variant: bin).

unrar 7.0 的 makefile 中多出来下面一段,专门声明了解决并行编译问题:

# We removed 'clean' from dependencies, because it prevented parallel
# 'make -Jn' builds.

unrar:	$(OBJECTS) $(UNRAR_OBJ)
	@rm -f unrar
	$(LINK) -o unrar $(LDFLAGS) $(OBJECTS) $(UNRAR_OBJ) $(LIBS)	
	$(STRIP) unrar

或者如果不升级的话,我制作了一个 patch 来补丁现在 6.x 版本的 makefile,但要在编译之前丢到 feeds/packages/utils/unrar/patches/ 底下
101-suffix-rule-dependency.PATCH

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