Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    debian/rules vs fakeroot

    Reply
    Page 1 of 2 | 1   2   | Next
    LABAUDIO | # 1 | 2009-06-30, 22:17 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    BrentDC | # 2 | 2009-06-30, 22:41 | Report

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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    LABAUDIO | # 3 | 2009-06-30, 22:46 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    qwerty12 | # 4 | 2009-06-30, 22:50 | Report

    debian/rules has the executable attribute?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    LABAUDIO | # 5 | 2009-06-30, 22:54 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by LABAUDIO; 2009-06-30 at 23:33.

     
    javispedro | # 6 | 2009-06-30, 23:40 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to javispedro For This Useful Post:
    LABAUDIO

     
    lma | # 7 | 2009-06-30, 23:55 | Report

    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?

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

    Originally Posted by
    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?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    LABAUDIO | # 8 | 2009-07-01, 00:00 | Report

    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}

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by LABAUDIO; 2009-07-01 at 00:16.

     
    javispedro | # 9 | 2009-07-01, 00:15 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by javispedro; 2009-07-01 at 00:19.

     
    LABAUDIO | # 10 | 2009-07-01, 00:20 | Report

    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

    Originally Posted by
    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

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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 1 of 2 | 1   2   | Next
vBulletin® Version 3.8.8
Normal Logout