juanfranblanco / rt-n56u

Automatically exported from code.google.com/p/rt-n56u
0 stars 0 forks source link

1.0.1.8d-p2 build fails without root priviledges #140

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1)
Some subpackages require root priviledges on build.
Fixes:

--- 8d-p2/source/Makefile
+++ ASUS/source/Makefile
@@ -295,7 +295,7 @@

 .PHONY: romfs.post
 romfs.post:
-       chown root:root $(ROMFSDIR)
+       sudo chown root:root $(ROMFSDIR)
        $(MAKEARCH) -C vendors romfs.post
        -find $(ROMFSDIR)/. -name CVS | xargs -r rm -rf

--- 8d-p2/source/vendors/Ralink/RT3883/Makefile
+++ ASUS/source/vendors/Ralink/RT3883/Makefile
@@ -80,7 +80,7 @@

        rm -rf $(ROMFSDIR)/bin/g++-uc
 # *** Changes by Padavan ***
-       /sbin/ldconfig -r $(ROMFSDIR) -C /etc_ro/ld.so.cache
+       sudo /sbin/ldconfig -r $(ROMFSDIR) -C /etc_ro/ld.so.cache
 # *** Changes by Padavan ***

--- 8d-p2/source/user/comgt-0.32/Makefile 
+++ ASUS/source/user/comgt-0.32/Makefile
@@ -30,7 +30,7 @@
 all: $(CPROG)

 romfs:
-       chown root:root scripts/devices/*
+       sudo chown root:root scripts/devices/*
        $(ROMFSINST) /bin/$(CPROG)

--- 8d-p2/source/user/miniupnpd/Makefile
+++ ASUS/source/user/miniupnpd/Makefile
@@ -132,7 +132,7 @@
        $(INSTALL) -d $(PREFIX)/etc/init.d
        $(INSTALL) linux/miniupnpd.init.d.script $(PREFIX)/etc/init.d/miniupnpd

-romfs: install
+romfs: miniupnpd
        $(ROMFSINST) /usr/bin/miniupnpd

2)
IPTABLESVERSION determination in miniupnpd/Makefile fails due to lack of 
../iptables/config.h file

Original issue reported on code.google.com by anikee...@gmail.com on 2 Mar 2012 at 11:28

GoogleCodeExporter commented 8 years ago
1) Thanks for fix.
2) Yes, miniupnpd/Makefile needed some fixes. But iptables version in firmware 
< 1.43, and build successfull without -DIPTABLES_134. 

Original comment by andy.pad...@gmail.com on 2 Mar 2012 at 6:45

GoogleCodeExporter commented 8 years ago
2) I have added iptables/config.h with content:
#define VERSION "1.3.5"

for resolve miniupnpd/Makefile issue.

Original comment by andy.pad...@gmail.com on 2 Mar 2012 at 7:00

GoogleCodeExporter commented 8 years ago

Original comment by d...@soulblader.com on 5 Mar 2012 at 2:26