Reply
Thread Tools
LABAUDIO's Avatar
Posts: 315 | Thanked: 71 times | Joined on Oct 2008 @ €@$T Montreal Quebec Canada
#1
i try to package something whit ''dpkg-buildpackage -tc -rfakeroot'' but i got this error :

Code:
fakeroot debian/rules clean
/usr/bin/fakeroot: 166: debian/rules: not found
dpkg-buildpackage: failure: fakeroot debian/rules clean gave error exit status 127
any idea how i can resolve this issue


TX
__________________
N900 Owner N95 + N810
Fremantle Tester
Diablo Dacker
French Noob

BorgTheme ¤ BorgSounds ¤ BorgStartUp ¤ BorgClock
 
BrentDC's Avatar
Posts: 903 | Thanked: 632 times | Joined on Apr 2008
#2
Are you in the correct directory? e.g. there is a debian folder under your current dir with a rules file in it?
__________________
-Brent

Author of TouchSearch -- web searching software for Maemo 5.

Mobile Device lineage: Palm Z22 -> Palm TX -> Nokia N800 -> Nokia N900
 
LABAUDIO's Avatar
Posts: 315 | Thanked: 71 times | Joined on Oct 2008 @ €@$T Montreal Quebec Canada
#3
yes i try to package a .deb whit a source files

my folder source is in /mnt/C/foldersource

so i cd /mnt/C/foldersource

i got root@ubuntu:/mnt/C/foldersource#


in s folder source i have a debian folder

and in this folder i have rule file in it

but usualy everything work very well when i make dpkg-buildpackage -tc -rfakeroot inside the source directory

but not anymore

sounds weird and i have no clue why

here my rule file

Code:
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# This file is public domain software, originally written by Joey Hess. 

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

build: build-stamp
build-stamp:
	dh_testdir
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	rm -f debian/preinst
	rm -f debian/postinst
	rm -f debian/postrm
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	# Add here commands to install the package into debian/<packagename>
	#$(MAKE) prefix=`pwd`/debian/`dh_listpackages`/usr install
	cp -r $(CURDIR)/data/usr $(CURDIR)/debian/borg-startup/usr
	$(CURDIR)/gen_control_scripts.sh

# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
__________________
N900 Owner N95 + N810
Fremantle Tester
Diablo Dacker
French Noob

BorgTheme ¤ BorgSounds ¤ BorgStartUp ¤ BorgClock
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#4
debian/rules has the executable attribute?
 
LABAUDIO's Avatar
Posts: 315 | Thanked: 71 times | Joined on Oct 2008 @ €@$T Montreal Quebec Canada
#5
Originally Posted by qwerty12 View Post
debian/rules has the executable attribute?

Allow executing file as a program is checked on both yes

its look i have a problem whit fakeroot or something but i re install fakeroot and automake but nothing resolve this issue
__________________
N900 Owner N95 + N810
Fremantle Tester
Diablo Dacker
French Noob

BorgTheme ¤ BorgSounds ¤ BorgStartUp ¤ BorgClock

Last edited by LABAUDIO; 2009-06-30 at 23:33.
 
javispedro's Avatar
Posts: 2,355 | Thanked: 5,249 times | Joined on Jan 2009 @ Barcelona
#6
No, you don't have a problem with fakeroot.

Why you don't try running
$ debian/rules clean
and see if there's a interpreter problem or something weird.
 

The Following User Says Thank You to javispedro For This Useful Post:
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#7
Originally Posted by LABAUDIO View Post
my folder source is in /mnt/C/foldersource
Is that mounted noexec by any chance? What does "grep /mnt/C /proc/mounts" say?

i got root@ubuntu:/mnt/C/foldersource#
Ehm, why are you invoking fakeroot when you are already running as root in the first place?

here my rule file

Code:
#!/usr/bin/make -f
[...]
Just checking, just /usr/bin/make (still) exist? What happens if you try "/usr/bin/make -f debian/rules clean" instead?
 
LABAUDIO's Avatar
Posts: 315 | Thanked: 71 times | Joined on Oct 2008 @ €@$T Montreal Quebec Canada
#8
Originally Posted by lma View Post
Is that mounted noexec by any chance? What does "grep /mnt/C /proc/mounts" say?
its say

Code:
cofs1 /mnt/C cofs rw,nosuid,nodev,noexec 0 0


Originally Posted by lma View Post
Ehm, why are you invoking fakeroot when you are already running as root in the first place?
cause iam make that before when iam allready root and all work well

Originally Posted by lma View Post
Just checking, just /usr/bin/make (still) exist? What happens if you try "/usr/bin/make -f debian/rules clean" instead?

Code:
root@ubuntu:/mnt/C/sourcefolder# /usr/bin/make -f debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp
rm -f debian/preinst
rm -f debian/postinst
rm -f debian/postrm
dh_clean
all looks clear

but if i use command here for build my pack without fakeroot like this

Code:
root@ubuntu:/mnt/C/sourcefolder# dpkg-buildpackage -tc
i got this

Code:
dpkg-buildpackage: set CPPFLAGS to default value: 
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
dpkg-buildpackage: source package vista-startup
dpkg-buildpackage: source version 5.0
dpkg-buildpackage: source changed by Eric King <labaudio_f@hotmail.com>
dpkg-buildpackage: host architecture i386
 debian/rules clean
Can't exec "debian/rules": Permission denied at /usr/bin/dpkg-buildpackage line 477.
dpkg-buildpackage: failure: debian/rules clean failed with unknown exit code -1
here a output of the line 477 in the

Code:
474sub withecho {
475    shift while !$_[0];
476   print STDERR " @_\n";
477    system(@_)
478	and subprocerr("@_");
479}
__________________
N900 Owner N95 + N810
Fremantle Tester
Diablo Dacker
French Noob

BorgTheme ¤ BorgSounds ¤ BorgStartUp ¤ BorgClock

Last edited by LABAUDIO; 2009-07-01 at 00:16.
 
javispedro's Avatar
Posts: 2,355 | Thanked: 5,249 times | Joined on Jan 2009 @ Barcelona
#9
Please try to follow our instructions more carefully. You forgot both lma's "What does "grep /mnt/C /proc/mounts" say?" and mine's "Why you don't try running "debian/rules clean"" (this one now unneeded though).

Is /mnt/C a FAT or NTFS filesystem? You should not try to compile anything at all from a FAT filesystem unless you know what you're doing.

OK you edited it. So here's my EDIT: As lma's guessed, it's a noexec filesystem. For the sake of simplicity, why don't you try copying the source to your $HOME and compile it from there.

Last edited by javispedro; 2009-07-01 at 00:19.
 
LABAUDIO's Avatar
Posts: 315 | Thanked: 71 times | Joined on Oct 2008 @ €@$T Montreal Quebec Canada
#10
Originally Posted by javispedro View Post
Please try to follow our instructions more carefully. You forgot both lma's "What does "grep /mnt/C /proc/mounts" say?" and mine's "Why you don't try running "debian/rules clean"".

Is /mnt/C a FAT or NTFS filesystem? You should not try to compile anything at all from a FAT filesystem unless you know what you're doing.
NTSF


debian/rules clean say

Code:
root@ubuntu:/mnt/C/sourcefolder# /usr/bin/make -f debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp
rm -f debian/preinst
rm -f debian/postinst
rm -f debian/postrm
dh_clean

grep /mnt/C /proc/mounts say

Code:
cofs1 /mnt/C cofs rw,nosuid,nodev,noexec 0 0
__________________
N900 Owner N95 + N810
Fremantle Tester
Diablo Dacker
French Noob

BorgTheme ¤ BorgSounds ¤ BorgStartUp ¤ BorgClock
 
Reply


 
Forum Jump


All times are GMT. The time now is 17:50.