Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Carsten Schoenert <c.schoenert@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v0] Add support for automated building of Opkg repository
Date: Wed, 13 Feb 2013 22:43:13 +0100	[thread overview]
Message-ID: <511C08F1.702@googlemail.com> (raw)
In-Reply-To: <1358268430-2431-1-git-send-email-jezz@sysmic.org>

Hello J?r?me,

Am 15.01.2013 17:47, schrieb J?r?me Pouiller:
> 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 looks impressive and the OPKG packaging would be a really "killer"
feature in buildroot for me! OPKG packages is one of the features I'm
really missing.

> 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

This would be much more than I use currently in an other existing
project, sounds like you wanted to build the *one* big solution. ;)

> 
> 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.

Creating the control file in runtime would remove the necessary to
rework the current packages, if this works ... great!

> 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.

I would say this depends on the nature of the script, but this can be
tested.

> 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

In the buildsystem-cs [1] (a system for building images for various DVB
setopboxes) a friend of mine use some scripts [2] to get the
dependencies and doing the creating of the packages incl. the comparing
if the package is really new. Maybe there is something useful to find.

>   - 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

What about a package with the basic rootfs after passing the overlay and
post-build.sh script? Do you have allready think about that?

[1] http://gitorious.org/neutrino-hd/buildsystem-cs
[2] https://gitorious.org/neutrino-hd/buildsystem-cs/trees/master/scripts

-- 
Mit freundlichen Gr??en
Carsten Sch?nert

      parent reply	other threads:[~2013-02-13 21:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=511C08F1.702@googlemail.com \
    --to=c.schoenert@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox