Modify

Opened 9 years ago

Closed 9 years ago

#69 closed defect (fixed)

debian/buildenv/packages/all: kernel headers package missing

Reported by: E.D.Grootjans <e.d.grootjans@…> Owned by: stappers
Priority: minor Milestone: milestone:
Component: debian/rootfs Version: 2.0
Severity: Keywords:
Cc:

Description (last modified by amain)

edit: when not building openwrt first ( with make openwrt/all ) there is not a debian kernel headers package available. Therefore building debian packages for the debwrt rootfs will fail.

I did an update to rev151 and tryed to make the rootfs.
I get an error on the existens of an directory.
See output...

U trunk/debian/buildenv/debian.mk
U trunk/debian/package/hostapd/debian/hostapd.init
U trunk/debian/rootfs/debian.mk
U trunk/Makefile
U trunk/openwrt/openwrt-deliver.mk
Checked out revision 151.
erik@britannica:~$ ./makefs
(Using defaults)
config/mconf/mconf Config.in
#
# using defaults found in .config
#

* End of DebWrt configuration.
* Execute 'make' to build the DebWrt or try 'make help'.

mkdir -p /home/erik/src/trunk/bin/brcm47xx-angel-2.0-1-default/debian
cp -rav /home/erik/src/trunk/build/debian-brcm47xx-Broadcom-b43-squeeze/usr/src/debwrt-kernel-headers/*.deb /home/erik/src/trunk/bin/brcm47xx-angel-2.0-1-default/debian
cp: kan stat niet toepassen op '/home/erik/src/trunk/build/debian-brcm47xx-Broadcom-b43-squeeze/usr/src/debwrt-kernel-headers/*.deb': Bestand of map bestaat niet
make: * [debian/package/debwrt-kernel-headers/deliver] Fout 1
erik@britannica:~$

When i look in the directory:

erik@britannica:~$ ls -al /home/erik/src/trunk/build/debian-brcm47xx-Broadcom-b43-squeeze/usr/src/debwrt-kernel-headers/*.deb
ls: kan geen toegang krijgen tot /home/erik/src/trunk/build/debian-brcm47xx-Broadcom-b43-squeeze/usr/src/debwrt-kernel-headers/*.deb: Bestand of map bestaat niet
erik@britannica:~$ ls -al /home/erik/src/trunk/build/debian-brcm47xx-Broadcom-b43-squeeze/usr/src/
totaal 20
drwxr-xr-x 5 erik erik 4096 jan 15 10:23 .
drwxr-xr-x 12 root root 4096 jan 15 10:23 ..
drwxr-xr-x 4 erik erik 4096 jan 15 10:23 debwrt-kernel-headers
drwxr-xr-x 3 erik erik 4096 jan 15 10:23 iw
drwxr-xr-x 3 erik erik 4096 jan 15 10:23 libnl
erik@britannica:~$ ls -al /home/erik/src/trunk/build/debian-brcm47xx-Broadcom-b43-squeeze/usr/src/debwrt-kernel-headers/
totaal 10256
drwxr-xr-x 4 erik erik 4096 jan 15 10:23 .
drwxr-xr-x 5 erik erik 4096 jan 15 10:23 ..
drwxr-xr-x 3 erik erik 4096 jan 15 00:36 debian
-rw-r--r-- 1 erik erik 10464570 jan 15 10:23 debwrt-headers-brcm47xx-Broadcom-b43-2.6.34.5-angel-2.0-1.tar.gz
drwxr-xr-x 3 erik erik 4096 jan 15 10:23 debwrt-kernel-headers-2.6.34.5
-rwxr-xr-x 1 erik erik 1186 jan 15 00:36 debwrt-kernel-headers.sh
erik@britannica:~$

Conclussion: the directory exists, but the file *.deb does not.

Attachments (1)

voor_Fout_1 (29.4 KB) - added by E.D.Grootjans <e.d.grootjans@…> 9 years ago.
Totale output naar terminal voor Fout_1

Download all attachments as: .zip

Change History (15)

comment:1 Changed 9 years ago by E.D.Grootjans <e.d.grootjans@…>

If I make an rootfs starting with an empty tree i get the following....

src leeg gemaakt

  • opnieuw svn opgestart --> rev151 neergezet
  • sudo chmod a+w /home/erik/src/trunk/build gedaan en opgenomen in scripts (makesvn updatesvn)
  • makefs gedaan

Fetched 121 MB in 4min 44s (426 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously deselected package openssh-blacklist.

Fout met schrijven naar log.... zie boven

en nogmaals ...

Unpacking debootstrap (from .../debootstrap_1.0.26_all.deb) ...
Selecting previously deselected package equivs.
Unpacking equivs (from .../archives/equivs_2.0.8_all.deb) ...
Processing triggers for man-db ...
Processing triggers for install-info ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up openssh-blacklist (0.4.1) ...
Setting up openssh-blacklist-extra (0.4.1) ...

en de volgende ....

Setting up ca-certificates (20090814+nmu2) ...
Updating certificates in /etc/ssl/certs... WARNING: Skipping duplicate certificate brasil.gov.br.pem
141 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
Setting up libcurl3-gnutls (7.21.2-4) ...
Setting up liberror-perl (0.17-1) ...
Setting up git (1:1.7.2.3-2.2) ...
Setting up autopoint (0.18.1.1-3) ...
Setting up libdbus-1-3 (1.2.24-4) ...
Setting up dbus (1.2.24-4) ...
Can't start system message bus - /proc is not mounted ... failed!
Setting up dctrl-tools (2.14.5) ...
Setting up html2text (1.3.2a-15) ...

just an warning

After this operation, 38.0 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!

gcc-4.3-mipsel-linux-gnu-base binutils-mipsel-linux-gnu cpp-4.3-mipsel-linux-gnu libc6-mipsel-cross libgcc1-mipsel-cross
gcc-4.3-mipsel-linux-gnu libstdc++6-mipsel-cross linux-libc-dev-mipsel-cross libc6-dev-mipsel-cross libstdc++6-4.3-dev-mipsel-cross
g++-4.3-mipsel-linux-gnu

en weer

Can not write log, openpty() failed (/dev/pts not mounted?)

en dan een make-error ...
Eindigend in Fout 1

dh_shlibdeps
	dpkg-shlibdeps -Tdebian/debwrt-kernel-headers.substvars debian/debwrt-kernel-headers/usr/src/linux-headers-2.6.34.5/scripts/mod/modpost debian/debwrt-kernel-headers/usr/src/linux-headers-2.6.34.5/scripts/mod/mk_elfconfig debian/debwrt-kernel-headers/usr/src/linux-headers-2.6.34.5/scripts/basic/fixdep debian/debwrt-kernel-headers/usr/src/linux-headers-2.6.34.5/scripts/basic/hash debian/debwrt-kernel-headers/usr/src/linux-headers-2.6.34.5/scripts/basic/docproc debian/debwrt-kernel-headers/usr/src/linux-headers-2.6.34.5/scripts/kconfig/conf
dpkg-shlibdeps: error: couldn't find library libncurses.so.5 needed by debian/debwrt-kernel-headers/usr/src/linux-headers-2.6.34.5/scripts/kconfig/conf (ELF format: 'elf64-little'; RPATH: '').
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
To help dpkg-shlibdeps find private libraries, you might need to set LD_LIBRARY_PATH.
dh_shlibdeps: dpkg-shlibdeps -Tdebian/debwrt-kernel-headers.substvars debian/debwrt-kernel-headers/usr/src/linux-headers-2.6.34.5/scripts/mod/modpost debian/debwrt-kernel-headers/usr/src/linux-headers-2.6.34.5/scripts/mod/mk_elfconfig debian/debwrt-kernel-headers/usr/src/linux-headers-2.6.34.5/scripts/basic/fixdep debian/debwrt-kernel-headers/usr/src/linux-headers-2.6.34.5/scripts/basic/hash debian/debwrt-kernel-headers/usr/src/linux-headers-2.6.34.5/scripts/basic/docproc debian/debwrt-kernel-headers/usr/src/linux-headers-2.6.34.5/scripts/kconfig/conf returned exit code 2
make: *** [binary-arch] Error 9
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
+ find /usr/src/debwrt-kernel-headers -maxdepth 1 -name '*.deb'
+ xargs -r -t -i sudo dpkg-cross -a mipsel -i '{}'
touch debian/package/debwrt-kernel-headers/build
mkdir -p /home/erik/src/trunk/bin/brcm47xx-angel-2.0-1-default/debian
cp -rav /home/erik/src/trunk/build/debian-brcm47xx-Broadcom-b43-squeeze/usr/src/debwrt-kernel-headers/*.deb /home/erik/src/trunk/bin/brcm47xx-angel-2.0-1-default/debian
cp: kan stat niet toepassen op '/home/erik/src/trunk/build/debian-brcm47xx-Broadcom-b43-squeeze/usr/src/debwrt-kernel-headers/*.deb': Bestand of map bestaat niet
make: *** [debian/package/debwrt-kernel-headers/deliver] Fout 1
erik@britannica:~$ 
Last edited 9 years ago by stappers (previous) (diff)

comment:2 Changed 9 years ago by E.D.Grootjans <e.d.grootjans@…>

De totale listing van de terminal heb ik bijgevoegd als bestand....

Changed 9 years ago by E.D.Grootjans <e.d.grootjans@…>

Totale output naar terminal voor Fout_1

comment:3 Changed 9 years ago by E.D.Grootjans <e.d.grootjans@…>

NB uit bijlage http://www.emdebian.org/debian/ stable/main verwijderd ivm melding spam

comment:4 Changed 9 years ago by stappers

  • Owner changed from amain to stappers
  • Priority changed from major to trivial
  • Status changed from new to accepted

What I understand from this ticket, is that the ticket reporter is saying his makefs script is not working.

It would be nice if

the content
of the makefs script
between triple curly brackets open
and triple curly brackets close

would be added to this ticket.

comment:5 follow-up: Changed 9 years ago by E.D.Grootjans <e.d.grootjans@…>

The contents of makefs:

#! /bin/bash
cd /home/erik

cd src
cd trunk


# root filesystem

make menuconfig
make debian/rootfs

Last edited 9 years ago by stappers (previous) (diff)

comment:6 in reply to: ↑ 5 Changed 9 years ago by stappers

Replying to E.D.Grootjans <e.d.grootjans@…>:

make menuconfig
make debian/rootfs

That doesn't work after a fresh svn checkout

And I doubt if it makes sense to fix it.

The documented

make menuconfig
make

will build all, so including the root file system.

If

make menconfig
make

is done, it possible to do

make debian/rootfs

to (re)generate a root file system.

Leaving ticket open, because either make target debian/rootfs
should get a dependency on other make targets,
or the copy of the *.deb file should be changed.

comment:7 Changed 9 years ago by stappers

For what it's Worth:

In case

make menuconfig
make

yields the same error, then update this ticket.

If there is another error, then update another ticket.

If there is a new error, then file a new ticket.

P.S.

LANG=C make

shows international (error)messages.

think global, act local

comment:9 Changed 9 years ago by E.D.Grootjans <e.d.grootjans@…>

I did at the prompt:

make menuconfig
make

Here is the last part of the terminal output.....

....
rm -rf /home/erik/src/trunk/bin/brcm47xx-angel-2.0-1-default/openwrt/headers
mkdir -p /home/erik/src/trunk/bin/brcm47xx-angel-2.0-1-default/openwrt/headers
mkdir -p /home/erik/src/trunk/bin/brcm47xx-angel-2.0-1-default/openwrt/headers/usr/src/linux-headers-2.6.36.2
cd /home/erik/src/trunk/build/openwrt-brcm47xx-Broadcom-b43-trunk-default/build_dir/linux-brcm47xx/linux-2.6.36.2 && make headers_install ARCH=mipsel INSTALL_HDR_PATH=/home/erik/src/trunk/bin/brcm47xx-angel-2.0-1-default/openwrt/headers/usr/src/linux-headers-2.6.36.2
make[2]: Map '/home/erik/src/trunk/build/openwrt-brcm47xx-Broadcom-b43-trunk-default/build_dir/linux-brcm47xx/linux-2.6.36.2' wordt binnengegaan
Makefile:544: /home/erik/src/trunk/build/openwrt-brcm47xx-Broadcom-b43-trunk-default/build_dir/linux-brcm47xx/linux-2.6.36.2/arch/mipsel/Makefile: Bestand of map bestaat niet
make[2]: *** Er is geen regel om doel '/home/erik/src/trunk/build/openwrt-brcm47xx-Broadcom-b43-trunk-default/build_dir/linux-brcm47xx/linux-2.6.36.2/arch/mipsel/Makefile' te maken.  Gestopt.
make[2]: Map '/home/erik/src/trunk/build/openwrt-brcm47xx-Broadcom-b43-trunk-default/build_dir/linux-brcm47xx/linux-2.6.36.2' wordt verlaten
make[1]: *** [openwrt/deliver/kernel-headers] Fout 2
make[1]: Map '/home/erik/src/trunk' wordt verlaten
make: *** [openwrt/all] Fout 2

See Makefile 544 -- Bestand of map bestaat niet -- Fout 2
An other file what doesnot exist, now error 2 and not error 1

Last edited 9 years ago by stappers (previous) (diff)

comment:12 Changed 9 years ago by stappers

BEWARE and TAKE CARE:

In case

make menuconfig
make

yields the same error, then update this ticket.

If there is another error, then update another ticket.

If there is a new error, then file a new ticket.

P.S.

LANG=C make

shows international (error)messages.

think global, act local

READ

comment:13 Changed 9 years ago by amain

Erik, your help is very much appreciated, but please read stappers repeated message above!

I created, fixed and closed ticket #70 for the make kernel_headers problem mentioned above.

One other note: don't use file name paths in the bug subject. Try to come up with more functional descriptions.

comment:14 Changed 9 years ago by amain

note: use export LC_ALL=C to get international error messages

comment:15 Changed 9 years ago by amain

  • Description modified (diff)
  • Summary changed from /home/erik/src/trunk/build/debian-brcm47xx-Broadcom-b43-squeeze/usr/src/debwrt-kernel-headers/*.deb': Bestand of map bestaat niet to debian/buildenv/packages/all: kernel headers package missing

comment:16 Changed 9 years ago by amain

Initially I did support the following procedure:

make menuconfig
make debian/rootfs

e.g. without building a recent openwrt and without building a debian package of the latest kernel headers. However, it should fall back to a pre-packaged debian header packages from SVN.

Investigating...

comment:17 Changed 9 years ago by amain

  • Priority changed from trivial to minor
  • Resolution set to fixed
  • Status changed from accepted to closed

fixed in r. #156

note: fallback kernel package might only work for mipsel!

closing ticket.

Add Comment

Modify Ticket

Action
as closed The owner will remain stappers.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.