Modify

Opened 9 years ago

Closed 9 years ago

#103 closed defect (fixed)

$TOP/bin/$BOARD/debian missing

Reported by: e.d.grootjans@… Owned by: amain
Priority: minor Milestone: milestone:
Component: buildsystem Version: 2.0
Severity: Keywords:
Cc:

Description

Add the end of the making of the file system,
I get an error finding a *.deb file

touch openwrt/all
ls /usr/src/debwrt/bin/brcm47xx-angel-2.0-1-default/debian/*.deb | grep -v "debwrt-kernel-headers" | while read package; do \
		pfname=`basename $package`; \
		pname=`echo $pfname | sed 's/_.*//'`; \
		echo "Installing DebWrt package: $pname"; \
		sudo cp $package /usr/src/debwrt/build/rootfs-mipsel-angel-2.0-1/var/cache/apt/archives; \
		sudo dpkg-deb -x $package /usr/src/debwrt/build/rootfs-mipsel-angel-2.0-1; \
		sudo bash -c "echo \"$pname /var/cache/apt/archives/$pfname\" >>/usr/src/debwrt/build/rootfs-mipsel-angel-2.0-1/debootstrap/debpaths" ;\
	done
ls: cannot access /usr/src/debwrt/bin/brcm47xx-angel-2.0-1-default/debian/*.deb: No such file or directory
touch debian/rootfs/debwrt-packages
touch debian/rootfs
Make DebWrt completed

DEBWRTVERSION : angel - 2.0-1 - [ 13 March 2011 (r182) ]
TARGET_ARCH   : mipsel
BOARD         : brcm47xx
SUB_BOARD     : Broadcom-b43
LINUX_VERSION :  (default)
erik@britannica:/usr/src$ 

Attachments (0)

Change History (21)

comment:1 Changed 9 years ago by anonymous

Remark: I don't have a debian directory

comment:2 Changed 9 years ago by stappers

  • Summary changed from *.deb: No such file or directory to $TOP/bin/$BOARD/debian missing

Retitled this build error ticket

comment:3 Changed 9 years ago by stappers

  • Owner changed from amain to stappers
  • Status changed from new to accepted

The same build error did happen to me.

comment:4 follow-up: Changed 9 years ago by stappers

How to recover, just to make other development possible

rm debian/package/robocfg/{deliver,build}
make debian/package/robocfg
make

comment:5 Changed 9 years ago by stappers

  • Priority changed from major to minor

Prevention from happening again is probaly done in r184.
Leaving ticket open as place to report another occurence of this build error.

B.T.W.
Shell test is valid in makefile.

[ -d /etc /usr ]

yields

bash: [: /etc/: binary operator expected

I.O.W.
The commit message for r184 could have been better.

comment:6 Changed 9 years ago by e.d.grootjans@…

I get this error, when i dont start with a clean svn, but instead do a

cd /usr/src/debwrt
svn update
make menuconfig
LANG=C make

Part of the last output:

cp /usr/src/debwrt/build/openwrt-brcm47xx-Broadcom-b43-trunk-default/build_dir/linux-brcm47xx/linux-2.6.36.4/.config /usr/src/debwrt/bin/brcm47xx-angel-2.0-1-default/openwrt/headers/usr/src/linux-headers-2.6.36.4
tar c#! /bin/bash


cd /usr/src/debwrt
svn update
rm .config
make menuconfig
vim +/CONFIG_CMDLINE= .config
LANG=C make
erik@britannica:/usr/src$ 
zf /usr/src/debwrt/bin/brcm47xx-angel-2.0-1-default/debwrt-headers-brcm47xx-Broadcom-b43-2.6.36.4-angel-2.0-1.tar.gz -C /usr/src/debwrt/bin/brcm47xx-angel-2.0-1-default/openwrt/headers .
make[1]: Leaving directory `/usr/src/debwrt'
touch openwrt/all
ls /usr/src/debwrt/bin/brcm47xx-angel-2.0-1-default/debian/*.deb | grep -v "debwrt-kernel-headers" | while read package; do \
		pfname=`basename $package`; \
		pname=`echo $pfname | sed 's/_.*//'`; \
		echo "Installing DebWrt package: $pname"; \
		sudo cp $package /usr/src/debwrt/build/rootfs-mipsel-angel-2.0-1/var/cache/apt/archives; \
		sudo dpkg-deb -x $package /usr/src/debwrt/build/rootfs-mipsel-angel-2.0-1; \
		sudo bash -c "echo \"$pname /var/cache/apt/archives/$pfname\" >>/usr/src/debwrt/build/rootfs-mipsel-angel-2.0-1/debootstrap/debpaths" ;\
	done
ls: cannot access /usr/src/debwrt/bin/brcm47xx-angel-2.0-1-default/debian/*.deb: No such file or directory
touch debian/rootfs/debwrt-packages
touch debian/rootfs
Make DebWrt completed

DEBWRTVERSION : angel - 2.0-1 - [ 15 March 2011 (r184) ]
TARGET_ARCH   : mipsel
BOARD         : brcm47xx
SUB_BOARD     : Broadcom-b43
LINUX_VERSION : 2.6.36.4 (default)
erik@britannica:/usr/src$ 

comment:7 Changed 9 years ago by e.d.grootjans@…

When i do:

rm debian/package/robocfg/{deliver,build}
make debian/package/robocfg
make 
ls /usr/src/debwrt/bin/brcm47xx-angel-2.0-1-default/debian/*.deb | grep -v "debwrt-kernel-headers" | while read package; do \
		pfname=`basename $package`; \
		pname=`echo $pfname | sed 's/_.*//'`; \
		echo "Installing DebWrt package: $pname"; \
		sudo cp $package /usr/src/debwrt/build/rootfs-mipsel-angel-2.0-1/var/cache/apt/archives; \
		sudo dpkg-deb -x $package /usr/src/debwrt/build/rootfs-mipsel-angel-2.0-1; \
		sudo bash -c "echo \"$pname /var/cache/apt/archives/$pfname\" >>/usr/src/debwrt/build/rootfs-mipsel-angel-2.0-1/debootstrap/debpaths" ;\
	done
Installing DebWrt package: robocfg
touch debian/rootfs/debwrt-packages
touch debian/rootfs
Make DebWrt completed

DEBWRTVERSION : angel - 2.0-1 - [ 15 March 2011 (r184) ]
TARGET_ARCH   : mipsel
BOARD         : brcm47xx
SUB_BOARD     : Broadcom-b43
LINUX_VERSION : 2.6.36.4 (default)
erik@britannica:/usr/src/debwrt$ 

I'm not getting this error enymore!

comment:8 Changed 9 years ago by e.d.grootjans@…

But at the next run with rev184 - still the same...

comment:9 follow-up: Changed 9 years ago by stappers

  • Owner changed from stappers to amain
  • Status changed from accepted to assigned

Amain, your help is appricated.

The reassign to you, is merely a this is too heavy for me alone.

comment:10 Changed 9 years ago by e.d.grootjans@…

Also with rev 196 this error exsits:

		sudo dpkg-deb -x $package /usr/src/debwrt/build/rootfs-mipsel-angel-2.0-1; \
		sudo bash -c "echo \"$pname /var/cache/apt/archives/$pfname\" >>/usr/src/debwrt/build/rootfs-mipsel-angel-2.0-1/debootstrap/debpaths" ;\
	done
ls: cannot access /usr/src/debwrt/bin/brcm47xx-angel-2.0-1-default/debian/*.deb: No such file or directory
touch debian/rootfs/debwrt-packages
touch debian/rootfs
Make DebWrt completed

DEBWRTVERSION : angel - 2.0-1 - [ 04 April 2011 (r196) ]
TARGET_ARCH   : mipsel
BOARD         : brcm47xx
SUB_BOARD     : Broadcom-b43
LINUX_VERSION : 2.6.36.4 (default)
erik@britannica:/usr/src$ 

comment:11 follow-up: Changed 9 years ago by stappers

The make target clean was missing

rm -f $(TOPDIR)/debian/package/rootfs

It is added in r204

comment:12 follow-up: Changed 9 years ago by e.d.grootjans@…

In rev204 (with a clean start):

../src/crypto/random.c:275: error: for each function it appears in.)
make[1]: *** [../src/crypto/random.o] Error 1
make[1]: Leaving directory `/usr/src/hostapd/hostapd-1.0/src/hostapd'
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
+ xargs -r -t -i sudo dpkg-cross -a mipsel -i '{}'
+ find /usr/src/hostapd -maxdepth 1 -name '*.deb'
touch debian/package/hostapd/build
mkdir -p /usr/src/debwrt/bin/brcm47xx-angel-2.0-1-default/debian
cp -rav /usr/src/debwrt/build/debian-brcm47xx-Broadcom-b43-squeeze/usr/src/hostapd/*.deb /usr/src/debwrt/bin/brcm47xx-angel-2.0-1-default/debian
cp: cannot stat `/usr/src/debwrt/build/debian-brcm47xx-Broadcom-b43-squeeze/usr/src/hostapd/*.deb': No such file or directory
make: *** [debian/package/hostapd/deliver] Error 1

Still cannot stat ....

comment:13 in reply to: ↑ 12 ; follow-up: Changed 9 years ago by stappers

Replying to e.d.grootjans@…:

In rev204 (with a clean start):

../src/crypto/random.c:275: error: for each function it appears in.)
make[1]: *** [../src/crypto/random.o] Error 1
make[1]: Leaving directory `/usr/src/hostapd/hostapd-1.0/src/hostapd'
make: *** [build] Error 2

That is known as ticket #116

comment:14 in reply to: ↑ 13 Changed 9 years ago by stappers

Replying to stappers:

Replying to e.d.grootjans@…:

In rev204 (with a clean start):

../src/crypto/random.c:275: error: for each function it appears in.)
make[1]: *** [../src/crypto/random.o] Error 1
make[1]: Leaving directory `/usr/src/hostapd/hostapd-1.0/src/hostapd'
make: *** [build] Error 2

That is known as ticket #116

The compile error from #116 is solved in r217

comment:15 in reply to: ↑ 11 ; follow-up: Changed 9 years ago by stappers

Replying to stappers:

The make target clean was missing

rm -f $(TOPDIR)/debian/package/rootfs

It is added in r204

The make target debian/rootfs/clean was missing

rm -f debian/package/rootfs

It is added in r229

comment:16 in reply to: ↑ 15 Changed 9 years ago by stappers

Replying to stappers:

It is added in r229

But please test with r230

comment:17 in reply to: ↑ 4 Changed 9 years ago by amain

Replying to stappers:

How to recover, just to make other development possible

rm debian/package/robocfg/{deliver,build}
make debian/package/robocfg
make

tip: use make debian/package/robocfg/clean to clean up correctly.

comment:18 in reply to: ↑ 9 ; follow-up: Changed 9 years ago by amain

Replying to stappers:

Amain, your help is appricated.

The reassign to you, is merely a this is too heavy for me alone.

hi, I'd be glad to help. But I have the feeling multiple separate issues are tracked here? Which one is needing my help? Kinda lost track.

comment:19 in reply to: ↑ 18 Changed 9 years ago by stappers

Replying to amain:

Replying to stappers:

Amain, your help is appricated.

The reassign to you, is merely a this is too heavy for me alone.

That request is about six weeks old.

hi, I'd be glad to help. But I have the feeling multiple separate issues are tracked here? Which one is needing my help? Kinda lost track.

Meanwhile are some fixes applied.
The need for help is now reporting does still occure or works for me.

comment:20 Changed 9 years ago by e.d.grootjans@…

Tested wit rev247 and error is no more.

Ticket can be closed.

comment:21 Changed 9 years ago by stappers

  • Resolution set to fixed
  • Status changed from assigned to closed

Okay, closing.
Thanks for the feedback.

Add Comment

Modify Ticket

Action
as closed The owner will remain amain.
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.