Skip to contentSkip to conversation

witpa - content addressable package URL maintenance

ANNOUNCE Leon Woestenberg 3 participants 5 messages Mar 9, 2008

lore
Share & tools
lore
#0 lore raw

Hello,

The result of a weekend code sprint, as an excuse to learn sqlite3 but mostly because OpenEmbedded builds often break if downloads/ is empty.

http://www.sidebranch.com/witpa/

A package URL maintenance tool. See usage and example below. Would be neat to have this as a web service.

./witpa -h

witpa - where is that package at?
Maintains a list with valid URLs for a package, has Google capabilities.

create - Create new database 'package.db'.
add <url> - Add known good URL.
google <pkg> - Find/validate/add package URLs.
where <pkg> - Print all URLs of a package.
delete <pkg> - Delete package data.

show <pkg>   - Show all info of given package.
list         - Show all packages with sums.
import       - Import known-good data from (OpenEmbedded) checksums.ini.

Example:

./witpa create
Creating database 'packages.db'.

./witpa import ~/sandbox/openembedded/org.openembedded.dev/conf/checksums.ini Importing package data from 'checksums.ini'...
(This may take a minute.)
Imported 3265 packages.

./witpa add http://bitshrine.org/gpp/dtc-1.0.0.tgz
Inserting new package.
http://bitshrine.org/gpp/dtc-1.0.0.tgz
cca7b9219bc6e39926480f651c30d67a 8228023bb787460e33f6e63ab8cc032599b0ca2f54db4db97dd3e9006f983c59[NEW ADDED ]

./witpa google http://bitshrine.org/gpp/dtc-1.0.0.tgz

./witpa where http://bitshrine.org/gpp/dtc-1.0.0.tgz
http://bitshrine.org/gpp/dtc-1.0.0.tgz
http://kambing.ui.edu/gentoo/distfiles/dtc-1.0.0.tgz
http://gentoo.netnitco.net/distfiles/dtc-1.0.0.tgz
http://distfiles.gentoo.org/distfiles/dtc-1.0.0.tgz
http://www.las.ic.unicamp.br/pub/gentoo/distfiles/dtc-1.0.0.tgz
http://tldp.etf.bg.ac.yu/gentoo/distfiles/dtc-1.0.0.tgz
http://gentoo.mirrors.pair.com/distfiles/dtc-1.0.0.tgz
http://cudlug.cudenver.edu/gentoo/distfiles/dtc-1.0.0.tgz
http://ftp.cgu.edu.tw/Linux/Gentoo/gentoo/distfiles/dtc-1.0.0.tgz
http://gentoo.modulix.net/gentoo/distfiles/dtc-1.0.0.tgz
http://gentoo.llarian.net/distfiles/dtc-1.0.0.tgz

Waiting for feedback,

Regards,

Signature · 1 line
Leon
#1 lore raw
Quoted 9 lines · On Sunday 09 March 2008 15:50:32 Leon Woestenberg wrote:

Hello,

The result of a weekend code sprint, as an excuse to learn sqlite3 but mostly because OpenEmbedded builds often break if downloads/ is empty.

http://www.sidebranch.com/witpa/

A package URL maintenance tool. See usage and example below. Would be neat to have this as a web service.

Cool! How is CDT of Eclipse? Did it help you?

z.

#2 lore raw

Hello Holger,

Quoted 8 lines · Holger Freyther
Quoted 4 lines · On Sunday 09 March 2008 15:50:32 Leon Woestenberg wrote:

http://www.sidebranch.com/witpa/

A package URL maintenance tool. See usage and example below. Would be neat to have this as a web service.

Cool! How is CDT of Eclipse? Did it help you?

I'm quite editor-agnostic, I switch between nano/gedit/eclipse mostly depending on how remotely I am :-)

Yes, Eclipse helps me in a number of ways, but I guess that goes for every editor you have learned to love.

On my todo is still an Eclipse plugin for bitbake but my Java programming is too shallow.

Regards,

Signature · 1 line
Leon
#3 lore raw

Hello,

Quoted 3 lines · Leon Woestenberg
Quoted 3 lines
Quoted 2 lines

A package URL maintenance tool. See usage and example below. Would be neat to have this as a web service.

It's only proof-of-concept. I would like to see OpenEmbedded move away from a single SRC_URI.

Is it possible to change the checksums.ini / fetcher / hash validation code in OpenEmbedded/Bitbake to cope with multiple URLs?

Ideally, if the SRC_URI fails to fetch, its package filename has a one-to-one mapping with the package hash-pair.
The package name and hash-pair are then used to find alternative URLs, that match the hash-pair.

Regards,

Signature · 1 line
Leon
#4 lore raw
Quoted 10 lines · Leon Woestenberg
Quoted 3 lines · Leon Woestenberg
Quoted 3 lines
Quoted 2 lines

A package URL maintenance tool. See usage and example below. Would be neat to have this as a web service.

It's only proof-of-concept. I would like to see OpenEmbedded move away from a single SRC_URI.

Is it possible to change the checksums.ini / fetcher / hash validation code in OpenEmbedded/Bitbake to cope with multiple URLs?

We already have the MIRRORs/PREMIRRORs code, it should just be a case of extending the knowlege of that code to add extra sources.

Cheers,

Richard