On Sunday 26 August 2007 12:43:07 Leo Wandersleb wrote:
> Stéphane Magnenat wrote:
> > Does scons
> > has the equivalent of make install ?
>
> yes. "scons install". but weired things are happening here:
>
> I followed http://globulation2.org/wiki/Building_the_.deb_file:
> cd DirectoryYouDownloadedAndUnpackedGlob2
> scons
> sudo checkinstall -D //didn't work
> sudo checkinstall scons install //worked, so i changed that line in the
> wiki
>
> sudo dpkg -i glob2_beta1-1_amd64.deb
>
> but now:
> $ glob2
> bash: /usr/local/bin/glob2: Permission denied
> $ sudo glob2
> Password:
> (glob2 runs fine)

Hum, I think that is because checkinstall is executed as root.

I've tried:
        fakeroot checkinstall -D scons install
and
        checkinstall --fstrans -D scons install
Both produce an error, but nevertheless build the package. Yet when I try to 
install them, they fail because they try to overwrite g++, which is of utmost 
nastyness.

If anyone manage to get this thing working properly, we should put on the wiki 
the correct checkinstall command line, with correct description and 
dependencies.

The normal way to do debian package is through debian/rules which do change 
some permissions in the process. We can write handcrafted script that copies 
files by hand. That is trivial, but takes some time. If somewant want to do 
it, I've attached an example to this mail.

Have a nice day,

Steph

-- 
http://stephane.magnenat.net
#!/usr/bin/make -f

build:
        dh_testdir
        QMAKE="qmake-qt4 CONFIG+=release 
DEFINES+=FX2_FIRMWARE_DIR=\\\"/usr/share/osqoop\\\"" ./configure
        $(MAKE)

clean:
        dh_testdir
        QMAKE="qmake-qt4 CONFIG+=release" ./configure
        $(MAKE) clean
        rm -f target/datasource/*.so
        rm -f target/processing/*.so
        rm -f target/osqoop
        rm -f target/osqoop-setupfx2
        rm -rf debian/files debian/substvars debian/tmp

binary­indep: build

binary-arch: build
        dh_testdir
        rm -rf debian/tmp
        install -d debian/tmp debian/tmp/DEBIAN
        install -d debian/tmp/usr/bin
        install -d debian/tmp/usr/share/doc/osqoop
        install -d debian/tmp/usr/share/doc/osqoop/manual
        install -d debian/tmp/usr/share/osqoop
        install -d debian/tmp/usr/share/osqoop/processing
        install -d debian/tmp/usr/share/osqoop/datasource
        cp debian/changelog debian/tmp/usr/share/doc/osqoop/changelog.Debian
        cp debian/copyright debian/tmp/usr/share/doc/osqoop/
        cp changelog debian/tmp/usr/share/doc/osqoop
        cp authors debian/tmp/usr/share/doc/osqoop
        cp -r doc/manual/* debian/tmp/usr/share/doc/osqoop/manual
        cp target/osqoop debian/tmp/usr/bin
        cp target/setupfx2 debian/tmp/usr/share/osqoop/
        cp target/tseadextfw.hex debian/tmp/usr/share/osqoop/
        cp target/processing/*.so debian/tmp/usr/share/osqoop/processing
        cp target/datasource/*.so debian/tmp/usr/share/osqoop/datasource
        dh_strip
        dh_compress
        dh_shlibdeps
        dh_fixperms
        chmod 4755 debian/tmp/usr/share/osqoop/setupfx2
        dh_gencontrol
        dh_md5sums
        dh_builddeb

binary: binary-arch binary­indep
_______________________________________________
glob2-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/glob2-devel

Reply via email to