| 1   2   | Next
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   debian/rules vs fakeroot (https://talk.maemo.org/showthread.php?t=30011)

LABAUDIO 2009-06-30 22:17

debian/rules vs fakeroot
 
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

BrentDC 2009-06-30 22:41

Re: debian/rules vs fakeroot
 
Are you in the correct directory? e.g. there is a debian folder under your current dir with a rules file in it?

LABAUDIO 2009-06-30 22:46

Re: debian/rules vs fakeroot
 
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


qwerty12 2009-06-30 22:50

Re: debian/rules vs fakeroot
 
debian/rules has the executable attribute?

LABAUDIO 2009-06-30 22:54

Re: debian/rules vs fakeroot
 
Quote:

Originally Posted by qwerty12 (Post 301232)
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

javispedro 2009-06-30 23:40

Re: debian/rules vs fakeroot
 
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.

lma 2009-06-30 23:55

Re: debian/rules vs fakeroot
 
Quote:

Originally Posted by LABAUDIO (Post 301230)
my folder source is in /mnt/C/foldersource

Is that mounted noexec by any chance? What does "grep /mnt/C /proc/mounts" say?

Quote:

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

Quote:

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 2009-07-01 00:00

Re: debian/rules vs fakeroot
 
Quote:

Originally Posted by lma (Post 301255)
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


Quote:

Originally Posted by lma (Post 301255)
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

Quote:

Originally Posted by lma (Post 301255)
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}


javispedro 2009-07-01 00:15

Re: debian/rules vs fakeroot
 
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.

LABAUDIO 2009-07-01 00:20

Re: debian/rules vs fakeroot
 
Quote:

Originally Posted by javispedro (Post 301259)
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

Quote:

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

Quote:

Code:

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



| 1   2   | Next
All times are GMT. The time now is 08:55.

vBulletin® Version 3.8.8