FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian dpkg

 
 
LinkBack Thread Tools
 
Old 01-03-2011, 10:15 AM
Dan Dragos
 
Default Manual creation of dpkg package

I have created a script in perl to create a dpkg from a specs file for rpm.
I create the package, it begins to install but only copies some data.

for example
-- START EXAMPLE --
D000010: ensure_pathname_nonexisting `/var/lib/dpkg/tmp.ci'

D000010: ensure_pathname_nonexisting running rm -rf
D000001: process_archive oldversionstatus=broken due to failed removal or installation
D000002: fork/exec /var/lib/dpkg/tmp.ci/preinst ( upgrade 5.7.0 )

D000010: tarobject ti->Name=`./etc/ld.so.conf.d/ultrascale.conf' Mode=2745 owner=0.0 Type=48(-) ti->LinkName=`' namenode=`/etc/ld.so.conf.d/ultrascale.conf' flags=2 instead=`<none>'
D000100: setupvnamevbs main=`/etc/ld.so.conf.d/ultrascale.conf' tmp=`/etc/ld.so.conf.d/ultrascale.conf.dpkg-tmp' new=`/etc/ld.so.conf.d/ultrascale.conf.dpkg-new'

D000100: tarobject already exists
D000010: ensure_pathname_nonexisting `/etc/ld.so.conf.d/ultrascale.conf.dpkg-new'
D000010: ensure_pathname_nonexisting `/etc/ld.so.conf.d/ultrascale.conf.dpkg-tmp'
D000100: tarobject NormalFile[01] open size=30

D000100: tarobject nondirectory, `link' backup
D000100: tarobject done and installation deferred
D000010: tarobject ti->Name=`./etc/init.d/ultrascaled' Mode=755 owner=0.0 Type=48(-) ti->LinkName=`' namenode=`/etc/init.d/ultrascaled' flags=2 instead=`<none>'

D000100: setupvnamevbs main=`/etc/init.d/ultrascaled' tmp=`/etc/init.d/ultrascaled.dpkg-tmp' new=`/etc/init.d/ultrascaled.dpkg-new'
D000100: tarobject already exists
D000010: ensure_pathname_nonexisting `/etc/init.d/ultrascaled.dpkg-new'

D000010: ensure_pathname_nonexisting `/etc/init.d/ultrascaled.dpkg-tmp'
D000100: tarobject NormalFile[01] open size=2178
D000100: tarobject nondirectory, `link' backup
D000100: tarobject done and installation deferred

D000010: tarobject ti->Name=`./opt/Ecrion/Resources/XSLSyntax.enc' Mode=2745 owner=0.0 Type=48(-) ti->LinkName=`' namenode=`/opt/Ecrion/Resources/XSLSyntax.enc' flags=2 instead=`<none>'
D000100: setupvnamevbs main=`/opt/Ecrion/Resources/XSLSyntax.enc' tmp=`/opt/Ecrion/Resources/XSLSyntax.enc.dpkg-tmp' new=`/opt/Ecrion/Resources/XSLSyntax.enc.dpkg-new'

D000100: tarobject nonexistent
D000010: ensure_pathname_nonexisting `/opt/Ecrion/Resources/XSLSyntax.enc.dpkg-new'
D000010: ensure_pathname_nonexisting `/opt/Ecrion/Resources/XSLSyntax.enc.dpkg-tmp'
D000100: tarobject NormalFile[01] open size=27792

D000100: tarobject new - no backup
D000100: tarobject done and installation deferred
-- END EXAMPLE --

ultrascale.conf is present but /opt/Ecrion/Resources folder and files are not existant.

In my script I build the tar.gz the control files the scripts, the ar with correct file order etc.

Why are the files not present.
For example I do have a directory that appears it is named /opt/Ecrion/Common, why is /opt/Ecrion/Resources missing.
The only folder in /opt/Ecrion is Common and it only contains one file from all it's files.


Thank you,
D.Dragos
 
Old 01-03-2011, 02:52 PM
Raphael Hertzog
 
Default Manual creation of dpkg package

Hi,

On Mon, 03 Jan 2011, Dan Dragos wrote:
> ultrascale.conf is present but /opt/Ecrion/Resources folder and files are
> not existant.
>
> In my script I build the tar.gz the control files the scripts, the ar with
> correct file order etc.
> Why are the files not present.

Are you sure the files are in the correct order in the tar file?

Why not let dpkg-deb -b do the job of creating the package? You should
just create a directory with the files and a DEBIAN sub-directory, it
would be much easier for your script.

Is there any reason why you don't want to have debian packaging files
alongside the specs file instead of doing some less-than-perfect
auto-conversion?

Do you know that "alien" already exists to convert between RPM and DEB?

Cheers,
--
Raphaël Hertzog ◈ Debian Developer

Follow my Debian News ▶ http://RaphaelHertzog.com (English)
▶ http://RaphaelHertzog.fr (Français)


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110103155239.GA15583@rivendell.home.ouaza.com">h ttp://lists.debian.org/20110103155239.GA15583@rivendell.home.ouaza.com
 
Old 01-03-2011, 03:11 PM
Dan Dragos
 
Default Manual creation of dpkg package

On Mon, Jan 3, 2011 at 5:52 PM, Raphael Hertzog <hertzog@debian.org> wrote:

Hi,



On Mon, 03 Jan 2011, Dan Dragos wrote:

> ultrascale.conf is present but /opt/Ecrion/Resources folder and files are

> not existant.

>

> In my script I build the tar.gz the control files the scripts, the ar with

> correct file order etc.

> Why are the files not present.



Are you sure the files are in the correct order in the tar file?



Why not let dpkg-deb -b do the job of creating the package? You should

just create a directory with the files and a DEBIAN sub-directory, it

would be much easier for your script.



Is there any reason why you don't want to have debian packaging files

alongside the specs file instead of doing some less-than-perfect

auto-conversion?



Do you know that "alien" already exists to convert between RPM and DEB?



Cheers,

--

Raphaël Hertzog ◈ Debian Developer



Follow my Debian News ▶ http://RaphaelHertzog.com (English)

* * * * * * * * * * *▶ http://RaphaelHertzog.fr (Français)


It works, the problem was that I was not uninstalling the previous package on the machine.
I had to depend on a spec file from rpm and we were making on centos and did not want introduce other programs like dpkg-deb.

The small perl script is attached.
About alien, the boss did not like the idea of alien...
 
Old 01-04-2011, 03:32 PM
Kris Deugau
 
Default Manual creation of dpkg package

Dan Dragos wrote:

I have created a script in perl to create a dpkg from a specs file for rpm.
I create the package, it begins to install but only copies some data.


Have a look at the version I wrote: http://www.deepnet.cx/debbuild/

Note that it will probably fail on very complex .spec files, but those
are the ones that will typically need some rewriting anyway due to
differences in eg dependency handling.


-kgd


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4D234B83.7060802@vianet.ca">http://lists.debian.org/4D234B83.7060802@vianet.ca
 

Thread Tools




All times are GMT. The time now is 05:10 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org