Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v0] Add support for automated building of Opkg repository
@ 2013-01-15 16:47 Jérôme Pouiller
  2013-01-15 16:47 ` [Buildroot] [PATCH 1/3] Add an entry in images sub-menu for ipk repository building Jérôme Pouiller
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Jérôme Pouiller @ 2013-01-15 16:47 UTC (permalink / raw)
  To: buildroot

Dear,

I wrote a first draft of support of building deb or ipk file in Buildroot. The 
result looks like this:
  http://sysmic.org/~jezz/ipk_repository

This patch use inotify to spy which file are installed by package. Once 
installation is done, it copy file to a temporary directory where ipk file is 
built.

During this copy, file are splited in 5 ipk files:
        - main package with debug symbols stripped off
        - debug symbols
        - development files
        - documentation files
        - locales

All these files exist since it is done before target-finalize rule. 

Next script create "control" files needed for building. Script parse Config.in 
file to extract help and place it as Description in ipk file.

Finaly, dpkg-deb is used to create files. Files get deb extention but they are 
compatible with opkg/ipkg. I don't know if it would be better to use opkg-build 
script.

Result is not so bad, as you can see on URL above and it is not intrusive. I would
be glad to get your opinion about this work. What do you think about it?

Current restrictions and things to do:
  - Be able to correctly extract Help from complex Config.in
  - Parse Depends field of Config.in
  - Check dependencies using ldd
  - Add packages for skeleton copy, libc copy and target-finalize rule
  - Detect file written by multiple packages
  - Be able to package setuid binaries
  - Kill inotify if make is interrupted
  - Allow to customize Maintener name, Company name, etc...
  - Allow to append a suffix to package versions
  - Re-use strip commands defined in .config
  - Add gnu-debuglink to binaries
  - I need plenty of Makefile variables. It would be better if ipk-pre.sh and 
    ipk-post.sh were converted to Makefiles?
  - Make Architecture field a standard field recognized by Debian
  - Check inotifywait is correctly started before continue installation
  - Be able to do parallel installation
  - Check host tools dependencies
  

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-02-13 21:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-15 16:47 [Buildroot] [PATCH v0] Add support for automated building of Opkg repository Jérôme Pouiller
2013-01-15 16:47 ` [Buildroot] [PATCH 1/3] Add an entry in images sub-menu for ipk repository building Jérôme Pouiller
2013-01-15 16:47 ` [Buildroot] [PATCH 2/3] Add main scripts for opkg " Jérôme Pouiller
2013-01-15 16:47 ` [Buildroot] [PATCH 3/3] Add parsing of Config.in in ipk-post.sh Jérôme Pouiller
2013-01-17 10:23 ` [Buildroot] [PATCH v0] Add support for automated building of Opkg repository Jérôme Pouiller
2013-01-17 12:54   ` Thomas Petazzoni
2013-01-17 14:39     ` Jérôme Pouiller
2013-02-13 21:43 ` Carsten Schoenert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox