How do you get prevu to create source and binary packages?

Asked by Bob Tanner

Trying to get prevu to create both source and binary packages. Ideally I would like access to the .changes files so I can use dput to set my backported backed to my ppa.

Any help?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu prevu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Bob Tanner (tanner) said :
#1

Think I might have answered my own question.

http://ubuntuforums.org/showpost.php?p=3521485&postcount=234

No; there isn't; if you need to sign the source or get source packages, then you should have the knowledge to do this by hand ( a simple dch -i, edit the changelog with the correct version number, then debuild -S -sa)

prevu is intended for people who are unfamiliar with the Debian packaging tools and simply want to do a personal backport.

Revision history for this message
Sam_ (and-sam) said :
#2
Revision history for this message
Bob Tanner (tanner) said :
#3

Probably not appropriate but here's what I did:

--- prevu 2011-02-18 04:30:41.311077377 -0600
+++ /usr/bin/prevu 2010-08-10 11:54:49.000000000 -0500
@@ -104,13 +104,13 @@
       os.system('dch -v %s -b "Automated backport by prevu. No source changes"' % self.backport_version())
   def do_compile(self):
     '''Invokes the build. Call when source package is unpacked and version number is set'''
- ret=os.system('unset DEBEMAIL; pdebuild --use-pdebuild-internal --buildresult %s/result -- --basetgz /var/cache/prevu/%s.tgz --buildplace /var/cache/prevu/builds --bindmounts /var/cache/prevu/%s-debs --debbuildopts "-S -sa" ' % (self.working_path, self.target_distro, self.target_distro))
+ ret=os.system('unset DEBEMAIL; pdebuild --use-pdebuild-internal --buildresult %s/result -- --basetgz /var/cache/prevu/%s.tgz --buildplace /var/cache/prevu/builds --bindmounts /var/cache/prevu/%s-debs ' % (self.working_path, self.target_distro, self.target_distro))
     if ret != 0:
       raise ValueError("Build failed.")
     else:
       # Build succeeded
       # First, move all the built debs to their final resting site :)
- for pkg in glob.glob(self.working_path+"/result/*"):
+ for pkg in glob.glob(self.working_path+"/result/*.deb"):
         shutil.move(pkg,'/var/cache/prevu/%s-debs' % self.target_distro)
       os.chdir('/var/cache/prevu/%s-debs' % self.target_distro)
       os.system('dpkg-scanpackages . /dev/null > Packages 2>/dev/null')

Revision history for this message
Bob Tanner (tanner) said :
#4

Fail on my diff got file reversed.

--- /usr/bin/prevu 2010-08-10 11:54:49.000000000 -0500
+++ ./prevu 2011-02-18 04:30:41.311077377 -0600
@@ -104,13 +104,13 @@
       os.system('dch -v %s -b "Automated backport by prevu. No source changes"' % self.backport_version())
   def do_compile(self):
     '''Invokes the build. Call when source package is unpacked and version number is set'''
- ret=os.system('unset DEBEMAIL; pdebuild --use-pdebuild-internal --buildresult %s/result -- --basetgz /var/cache/prevu/%s.tgz --buildplace /var/cache/prevu/builds --bindmounts /var/cache/prevu/%s-debs ' % (self.working_path, self.target_distro, self.target_distro))
+ ret=os.system('unset DEBEMAIL; pdebuild --use-pdebuild-internal --buildresult %s/result -- --basetgz /var/cache/prevu/%s.tgz --buildplace /var/cache/prevu/builds --bindmounts /var/cache/prevu/%s-debs --debbuildopts "-S -sa" ' % (self.working_path, self.target_distro, self.target_distro))
     if ret != 0:
       raise ValueError("Build failed.")
     else:
       # Build succeeded
       # First, move all the built debs to their final resting site :)
- for pkg in glob.glob(self.working_path+"/result/*.deb"):
+ for pkg in glob.glob(self.working_path+"/result/*"):
         shutil.move(pkg,'/var/cache/prevu/%s-debs' % self.target_distro)
       os.chdir('/var/cache/prevu/%s-debs' % self.target_distro)
       os.system('dpkg-scanpackages . /dev/null > Packages 2>/dev/null')

Can you help with this problem?

Provide an answer of your own, or ask Bob Tanner for more information if necessary.

To post a message you must log in.