Modify

Opened 6 years ago

Last modified 4 years ago

#10605 new defect

usbutils unbuildable offline

Reported by: Rolf Leggewie <dev.openwrt.org@…> Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Backfire 10.03.1 RC6
Keywords: Cc:

Description

usbutils keeps downloading http://www.linux-usb.org/usb.ids even when that file has just recently been updated. This breaks any offline build where that package is included.

I'm building from the backfire branch.

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by anonymous

this patch should solve your problems, except for the very first time, but you solve that by manually keeping a copy of the file.

--- a/update-usbids.sh.in
+++ b/update-usbids.sh.in
@@ -8,6 +8,14 @@

SRC="http://www.linux-usb.org/usb.ids"
DEST=usb.ids.gz


+# if usb.ids.gz already exists,
+# then just skip this whole process.
+if [ -e ${DEST} ]
+then

+ ${quiet}
echo "${DEST} already exists, exiting."

+ exit 0
+fi
+

# if usb.ids.gz is read-only (because the filesystem is read-only),
# then just skip this whole process.
if ! touch ${DEST} >&2 >/dev/null ; then

comment:2 Changed 4 years ago by jow

  • Milestone changed from Backfire 10.03.2 to Chaos Calmer (trunk)

Milestone Backfire 10.03.2 deleted

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.