* [gentoo-embedded] GNAP extensions
@ 2006-10-23 7:00 Petr Podrabsky
2006-10-23 7:25 ` Janusz Syrytczyk
2006-10-23 8:06 ` Sune Kloppenborg Jeppesen
0 siblings, 2 replies; 8+ messages in thread
From: Petr Podrabsky @ 2006-10-23 7:00 UTC (permalink / raw
To: gentoo-embedded
Hello guys,
I have some questions about GNAP. I have GNAP, catalyst 2.0 versions,
squashfs-tools 3.0, gcc 4.1.1. A default portage snapshot from gnap
package is very small (1,7MB). I can see there are missing some
packages that I need (hostap-driver, and so on…). Ok. In this case I
have to define extensions in myspecs01 dir:
--extensions-conf:
# List of extensions to build
extensions: less hostap-driver hostap-utils quagga
# hostap-driver extension
hostap-driver/packlist: hostap-driver
#hostap-driver/cleanup: /usr/share
# hostp-utils extension
hostap-utils/packlist: hostap-utils
#hostap-utils/cleanup: /usr/share
# less extension
less/packlist: less
less/cleanup: /usr/share
# quagga extension
quagga/packlist: quagga
quagga/cleanup: /usr/share /etc/quagga/samples /usr/include /usr/lib/perl5
--end of file extensions.conf
Then I tried to do extensions like this:
#gnap_make -t extensions -e less -e hostap-driver -e hostap-utils -e
quagga -p portage-20061006.tar.bz2 -o router05 -e myspecs01 -v
20061006C
Gnap_make ends with error:
.....
app-misc/pax-utils
selected: 0.1.10
protected: 0.1.13
omitted: none
>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.
>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging app-misc/pax-utils-0.1.10...
No package files given... Grabbing a set.
--- !mtime obj /usr/bin/scanelf
--- !mtime obj /usr/bin/pspax
--- !mtime obj /usr/bin/dumpelf
--- !empty dir /usr/bin
--- !empty dir /usr
>>> emerge (9 of 20) sys-apps/portage-2.1.1 to /
!!! Security Violation: A file exists that is not in the manifest.
!!! File: files/digest-portage-2.1.2_pre2-r2
Traceback (most recent call last):
File "modules/grp_target.py", line 58, in run_local
+" "+pkgset+" "+mypackages,env=self.env)
File "/usr/lib/catalyst/modules/catalyst_support.py", line 487, in cmd
raise CatalystError,myexc
CatalystError: <unprintable instance object>
None
!!! catalyst: GRP build aborting due to error.
Catalyst aborting....
lockfile does not exist
'/var/tmp/catalyst/tmp/gnap/grp-x86-20061006C/.catalyst_lock'
How I can solve this portage problem?
Is there any problem I use for GNAP nearly latest portage snapshot
(portage-20061006.tar.bz2 = ~37MB) ?
Should I use some "better" and smaller portage for GNAP?
Where should I find „better" portage snapshot (not big like 37MB)
where hostap-driver, hostap-utils,quagga are included?
Can I do gnap_make –t all with latest portage like this:
gnap_make –t all –p portage-20061017.tar.bz2
Thanks for any info.
Petr
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-embedded] GNAP extensions
2006-10-23 7:00 [gentoo-embedded] GNAP extensions Petr Podrabsky
@ 2006-10-23 7:25 ` Janusz Syrytczyk
2006-10-23 8:06 ` Sune Kloppenborg Jeppesen
1 sibling, 0 replies; 8+ messages in thread
From: Janusz Syrytczyk @ 2006-10-23 7:25 UTC (permalink / raw
To: gentoo-embedded
On Monday 23 October 2006 09:00, Petr Podrabsky wrote:
> Hello guys,
>
> I have some questions about GNAP. I have GNAP, catalyst 2.0 versions,
> squashfs-tools 3.0, gcc 4.1.1. A default portage snapshot from gnap
> package is very small (1,7MB). I can see there are missing some
> packages that I need (hostap-driver, and so on…). Ok. In this case I
> have to define extensions in myspecs01 dir:
Hi,
my way to do extensions is constructing custom portage by inserting extra
ebuilds to the standard GNAP portage. All you need is to compress your
Portage.
Remember that your ebuild may have dependiences so you may have include them
as well.
> !!! Security Violation: A file exists that is not in the manifest.
> !!! File: files/digest-portage-2.1.2_pre2-r2
As general Portage rules apply, the error is clear. You can use for instance:
ebuild /path/to/quagga digest
to recreate quagga manifests. Of course you need to do it inside Portage
tree :-)
Janusz
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-embedded] GNAP extensions
2006-10-23 7:00 [gentoo-embedded] GNAP extensions Petr Podrabsky
2006-10-23 7:25 ` Janusz Syrytczyk
@ 2006-10-23 8:06 ` Sune Kloppenborg Jeppesen
2006-10-24 18:31 ` Petr Podrabsky
1 sibling, 1 reply; 8+ messages in thread
From: Sune Kloppenborg Jeppesen @ 2006-10-23 8:06 UTC (permalink / raw
To: gentoo-embedded
Hi Petr,
On Monday 23 October 2006 09:00, Petr Podrabsky wrote:
> How I can solve this portage problem?
When using portage overlays the original packages are not removed, so if the
package is both in the overlay and in the snapshot your resulting package
directory will contain both the contents from the snapshot and the content
from the overlay.
If all the files from the snapshot are not in the overlay the generated
Manifest file will be invalid as some files from the snapshot will remain.
To workaround this you have to copy the contents of the portage snapshot to
your overlay and do an ebuild packagename digest.
That wasn't too clear but I hope it helps otherwise just ask again.
> Is there any problem I use for GNAP nearly latest portage snapshot
> (portage-20061006.tar.bz2 = ~37MB) ?
> Should I use some "better" and smaller portage for GNAP?
> Where should I find „better" portage snapshot (not big like 37MB)
> where hostap-driver, hostap-utils,quagga are included?
>
> Can I do gnap_make –t all with latest portage like this:
> gnap_make –t all –p portage-20061017.tar.bz2
You should be able to do that. This also solves the overlay problems above.
--
Sune Kloppenborg Jeppesen (Jaervosz)
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-embedded] GNAP extensions
2006-10-23 8:06 ` Sune Kloppenborg Jeppesen
@ 2006-10-24 18:31 ` Petr Podrabsky
2006-10-24 19:37 ` Sune Kloppenborg Jeppesen
0 siblings, 1 reply; 8+ messages in thread
From: Petr Podrabsky @ 2006-10-24 18:31 UTC (permalink / raw
To: gentoo-embedded
Ok. My next steps were like this:
1) I added to original gnap-portagesnapshot my wireless apps
(hostap-driver, hostap-utils, wireless-tools, quagga)
2) I had to add metadata for these apps (I am not familiar with portage) :-)
3) Gnap_make ended with error libpcap was missing.
4) I added libpcap do portage and to matedata
5) Gnap_make went further. But next error appeared:
----
./usr/share/doc/wireless-tools-28/README.gz
>>> Regenerating /etc/ld.so.cache...
>>> Downloading http://distfiles.gentoo.org/distfiles/hostap-driver-0.4.9.tar.gz
--19:21:17-- http://distfiles.gentoo.org/distfiles/hostap-driver-0.4.9.tar.gz
=> `/usr/portage/distfiles/hostap-driver-0.4.9.tar.gz'
Resolving distfiles.gentoo.org... 64.50.238.52, 156.56.247.195,
216.165.129.135, ...
Connecting to distfiles.gentoo.org|64.50.238.52|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 202,959 (198K) [application/x-gzip]
0K .......... .......... .......... .......... .......... 25% 56.1K 0:02
50K .......... .......... .......... .......... .......... 50% 171K
100K .......... .......... .......... .......... .......... 75% 313K
150K .......... .......... .......... .......... ........ 100% 362K
19:21:19 (134.24 KB/s) -
`/usr/portage/distfiles/hostap-driver-0.4.9.tar.gz' saved
[202959/202959]
!!! ERROR: net-wireless/hostap-driver-0.4.9 failed.
!!! Function linux-info_pkg_setup, Line 537, Exitcode 1
!!! Unable to calculate Linux Kernel version
!!! If you need support, post the topmost build error, NOT this status message.
I have kernel.conf with my actual kernel config. How can I go on?
Petr
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-embedded] GNAP extensions
2006-10-24 18:31 ` Petr Podrabsky
@ 2006-10-24 19:37 ` Sune Kloppenborg Jeppesen
2006-10-26 6:07 ` Petr Podrabsky
0 siblings, 1 reply; 8+ messages in thread
From: Sune Kloppenborg Jeppesen @ 2006-10-24 19:37 UTC (permalink / raw
To: gentoo-embedded
[-- Attachment #1: Type: text/plain, Size: 386 bytes --]
On Tuesday 24 October 2006 20:31, Petr Podrabsky wrote:
> 5) Gnap_make went further. But next error appeared:
Packages htat builds against the kernel must be listed in livecd.conf and not
in packages.conf.
You can add the following line between the two other boot/kernel lines:
boot/kernel/gentoo/packages: net-wireless/hostap-driver
HTH
--
Sune Kloppenborg Jeppesen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-embedded] GNAP extensions
2006-10-24 19:37 ` Sune Kloppenborg Jeppesen
@ 2006-10-26 6:07 ` Petr Podrabsky
2006-10-29 21:39 ` Petr Podrabsky
0 siblings, 1 reply; 8+ messages in thread
From: Petr Podrabsky @ 2006-10-26 6:07 UTC (permalink / raw
To: gentoo-embedded
Yes, It helped a lot. Gnap_make ended before end. 38 packages from 39
were done. I am on way to clean some manifest to get rid of not used
ebuilds. Thanks.
Petr
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-embedded] GNAP extensions
2006-10-26 6:07 ` Petr Podrabsky
@ 2006-10-29 21:39 ` Petr Podrabsky
2006-10-31 19:19 ` Sune Kloppenborg Jeppesen
0 siblings, 1 reply; 8+ messages in thread
From: Petr Podrabsky @ 2006-10-29 21:39 UTC (permalink / raw
To: gentoo-embedded
I had to change kernel to 2.6.16-hardened-r11 (default kernel has
problem with squashfs-tools). I copied from latest portage hardened
kernel to portage/sys-kernel/hardened/ and added
linux-2.6.16-hardened-r11 to metadata as well. Now I have in my
portagesnapshot kernel 2.6.16-hardened-r11. Kernel 2.6.16-hardened-r11
is linked to /usr/src/linux. livecd-stage1 ends with error:
.....
./usr/share/doc/wireless-tools-28/README.gz
>>> Regenerating /etc/ld.so.cache...
!!! ERROR: net-wireless/hostap-driver-0.4.9 failed.
!!! Function linux-info_pkg_setup, Line 537, Exitcode 1
!!! Unable to calculate Linux Kernel version
!!! If you need support, post the topmost build error, NOT this status message.
I have no idea where I shloud correct it.
Petr
2006/10/26, Petr Podrabsky <petrpo@gmail.com>:
> Yes, It helped a lot. Gnap_make ended before end. 38 packages from 39
> were done. I am on way to clean some manifest to get rid of not used
> ebuilds. Thanks.
>
> Petr
>
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-embedded] GNAP extensions
2006-10-29 21:39 ` Petr Podrabsky
@ 2006-10-31 19:19 ` Sune Kloppenborg Jeppesen
0 siblings, 0 replies; 8+ messages in thread
From: Sune Kloppenborg Jeppesen @ 2006-10-31 19:19 UTC (permalink / raw
To: gentoo-embedded
[-- Attachment #1: Type: text/plain, Size: 1206 bytes --]
On Sunday 29 October 2006 22:39, Petr Podrabsky wrote:
> I had to change kernel to 2.6.16-hardened-r11 (default kernel has
> problem with squashfs-tools). I copied from latest portage hardened
> kernel to portage/sys-kernel/hardened/ and added
> linux-2.6.16-hardened-r11 to metadata as well. Now I have in my
> portagesnapshot kernel 2.6.16-hardened-r11. Kernel 2.6.16-hardened-r11
> is linked to /usr/src/linux. livecd-stage1 ends with error:
>
> .....
> ./usr/share/doc/wireless-tools-28/README.gz
>
> >>> Regenerating /etc/ld.so.cache...
>
> !!! ERROR: net-wireless/hostap-driver-0.4.9 failed.
> !!! Function linux-info_pkg_setup, Line 537, Exitcode 1
> !!! Unable to calculate Linux Kernel version
> !!! If you need support, post the topmost build error, NOT this status
> message.
>
> I have no idea where I shloud correct it.
Sounds like the previous problem. Did you readd hostap-driver to
packages.conf?
It should not be listed in packages.conf but only in livecd.conf like I
described in the last message.
Did you try to clean out the temp files in /var/tmp/catalyst and building all
stages?
HTH
--
Sune Kloppenborg Jeppesen
Gentoo Linux Security Team
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-10-31 19:20 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-23 7:00 [gentoo-embedded] GNAP extensions Petr Podrabsky
2006-10-23 7:25 ` Janusz Syrytczyk
2006-10-23 8:06 ` Sune Kloppenborg Jeppesen
2006-10-24 18:31 ` Petr Podrabsky
2006-10-24 19:37 ` Sune Kloppenborg Jeppesen
2006-10-26 6:07 ` Petr Podrabsky
2006-10-29 21:39 ` Petr Podrabsky
2006-10-31 19:19 ` Sune Kloppenborg Jeppesen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox