Skip to contentSkip to conversation

generating debian source packages (dsc)

DISCUSSION Rodrigo Vivi 3 participants 5 messages May 2, 2007 – May 9, 2007

lore
Share & tools
lore
#0 lore raw

Hi all,

I'm trying to code a bbclass to build debian source packages, because I need these files under mamona repository:

* .dsc - debian source package control file
* .orig.tar.gz - Original source package
* .diff.gz - patches that we apply

Since this is my first bbclass I need some help to figure some doubts out.

first of all I've created a package_dsc task and added it before do_configure.

This task creates the debian/control and debian/changelog file that dpkg-source ask for dsc generation. I know that I need to generate the debian/rules file too because without it the dsc will not be usefull. But this is not my real problem yet.

The current problem that I'm trying to solve and need help is the following:

before the do_configure all packages have a .pc dir that is not under orig.tar.gz file neither inside some patch breaking the dpkg-source but that is pretty easy to ignore doing
$dpkg-source -i"\.pc" ...
But glibc has a ports directory that is not under orig.tar.gz neither under patches so I need to ignore this file too. And I know that is NOT a good idea to ignore it doing
dpkg-source -i"\.pc|ports"
And I've noticed that there are another files that breaks dpkg-source... like util-linux_2.12r-12.diff.gz under patches dir of util-linux

I'm thinking to create a exclude-list or a dictionary to have an exclude-list for each package. What do you thing about it? Do you know a better and simplest way to do this?

I'm anexing my bbclass file in case you want to have a look and help me! ;)

Thanks,
Best Regards,
Vivi.

#1 lore raw
Quoted 11 lines · Rodrigo Vivi

Hi all,

I'm trying to code a bbclass to build debian source packages, because I need these files under mamona repository:

* .dsc - debian source package control file
* .orig.tar.gz - Original source package
* .diff.gz - patches that we apply

Since this is my first bbclass I need some help to figure some doubts out.

classes/sourcepkg.bbclass is something which you want to extend

Signature · 5 lines
JID: hrw-jabber.org
OpenEmbedded developer/consultant

      I'm trying to decide if I should kill you or simply feign death
      until you feel awkward and leave.
#2 lore raw
Quoted 1 line

classes/sourcepkg.bbclass is something which you want to extend

I've thought about it but I'm not sure that it is a good idea because just few projects (or just mine) needs the dsc file .......... unless that I code another sourcedsc.bbclass that inherit the sourcedpkg.bbclass... o you think that it will work??? I'll think about it...

Another doubt that I forgot to mention on last email is about changelog:
I'm generating a almost empty changelog file. Is there any official and/or more appropriated way to do that?

Thanks,
Vivi.

Quoted 15 lines

--
JID: hrw-jabber.org
OpenEmbedded developer/consultant

I'm trying to decide if I should kill you or simply feign death until you feel awkward and leave.

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#3 lore raw
Quoted 8 lines · Rodrigo Vivi
Quoted 1 line

classes/sourcepkg.bbclass is something which you want to extend

I've thought about it but I'm not sure that it is a good idea because just few projects (or just mine) needs the dsc file .......... unless that I code another sourcedsc.bbclass that inherit the sourcedpkg.bbclass... o you think that it will work??? I'll think about it...

Yes, this is what Marcin meant. Create your own sourcedsc.bbclass which inherits sourcepkg.bbclass. This is how, for example, efl.bbclass and e.bbclass work.

Quoted 28 lines

Another doubt that I forgot to mention on last email is about changelog:
I'm generating a almost empty changelog file. Is there any official and/or more appropriated way to do that?

Thanks,
Vivi.

Quoted 10 lines

--
JID: hrw-jabber.org
OpenEmbedded developer/consultant

I'm trying to decide if I should kill you or simply feign death until you feel awkward and leave.

Quoted 5 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Signature · 1 line
Justin Patrin
#4 lore raw

I'm trying to use inherit sourcepkg without success. Does anybody has any suggestion about the following error?

NOTE: package shasum-native-1.0: started
NOTE: package shasum-native-1.0-r1: task do_create_orig_tgz: started
NOTE: <type 'exceptions.IndexError'>:list index out of range while evaluating:

mkdir -p /indt/mamona/openembedded/tmp/deploy/source cd /indt/mamona/openembedded/tmp/work/shasum-native-1.0-r1 for i in .pc autom4te.cache; do
echo $i >> temp/exclude-from-file
done

src_tree=${@get_src_tree(d)}

echo $src_tree
oenote "Creating .orig.tar.gz in
/indt/mamona/openembedded/tmp/deploy/source/shasum-native-1.0.orig.tar.gz"
tar cvzf
/indt/mamona/openembedded/tmp/deploy/source/shasum-native-1.0.orig.tar.gz --exclude-from temp/exclude-from-file $src_tree
cp -pPR $src_tree $src_tree.orig

NOTE: <type 'exceptions.IndexError'>:list index out of range while evaluating:

cd /indt/mamona/openembedded/tmp/work/shasum-native-1.0-r1 for i in .pc autom4te.cache; do
echo $i >> temp/exclude-from-file
done

src_tree=${@get_src_tree(d)}

for i in find . -maxdepth 1 -type f; do
mkdir -p $src_tree/mamona/files
cp $i $src_tree/mamona/files
done

oenote "Creating .diff.gz in
/indt/mamona/openembedded/tmp/deploy/source/shasum-native-1.0-r1.diff.gz"

       LC_ALL=C TZ=UTC0 diff --exclude-from=temp/exclude-from-file

-Naur $src_tree.orig $src_tree | gzip -c > /indt/mamona/openembedded/tmp/deploy/source/shasum-native-1.0-r1.diff.gz
rm -rf $src_tree.orig

NOTE: <type 'exceptions.IndexError'>:list index out of range while evaluating:

src_tree=${@get_src_tree(d)} dest=/indt/mamona/openembedded/tmp/work/shasum-native-1.0-r1/$src_tree/mamona mkdir -p $dest

cp /indt/mamona/openembedded/org.openembedded.dev/packages/shasum/shasum-native.bb
$dest

ERROR: function do_create_orig_tgz failed
ERROR: log data follows (/indt/mamona/openembedded/tmp/work/shasum-native-1.0-r1/temp/log.do_create_orig_tgz.6911) | /indt/mamona/openembedded/tmp/work/shasum-native-1.0-r1/temp/run.do_create_orig_tgz.6911:
line 510: sourcepkg_do_create_orig_tgz: command not found
NOTE: Task failed:
/indt/mamona/openembedded/tmp/work/shasum-native-1.0-r1/temp/log.do_create_orig_tgz.6911
NOTE: package shasum-native-1.0-r1: task do_create_orig_tgz: failed
ERROR: TaskFailed event exception, aborting
NOTE: package shasum-native-1.0: failed

Quoted 52 lines · Justin Patrin
Quoted 8 lines · Rodrigo Vivi
Quoted 1 line

classes/sourcepkg.bbclass is something which you want to extend

I've thought about it but I'm not sure that it is a good idea because just few projects (or just mine) needs the dsc file .......... unless that I code another sourcedsc.bbclass that inherit the sourcedpkg.bbclass... o you think that it will work??? I'll think about it...

Yes, this is what Marcin meant. Create your own sourcedsc.bbclass which inherits sourcepkg.bbclass. This is how, for example, efl.bbclass and e.bbclass work.

Quoted 23 lines

Another doubt that I forgot to mention on last email is about changelog:
I'm generating a almost empty changelog file. Is there any official and/or more appropriated way to do that?

Thanks,
Vivi.

Quoted 10 lines

--
JID: hrw-jabber.org
OpenEmbedded developer/consultant

I'm trying to decide if I should kill you or simply feign death until you feel awkward and leave.

Quoted 5 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Quoted 5 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

--
Justin Patrin

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel