Build Debian Package Locally?
Hello all,
I was wondering if there was a way to build a ROS debian package locally (for testing purposes). While using Bloom, I have had some trouble in my release. So, before I submit my package again, I'd like to verify that it will build.
thanks,
-Hunter A.
I ran the commands you suggested, but encountered an error:
allenh1@allenh1-Vostro-430:~/p2os-release$ git checkout debian/ros-hydro-p2os-urdf_1.0.1-0_precise
Note: checking out 'debian/ros-hydro-p2os-urdf_1.0.1-0_precise'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at cd7c4f8... Generated debian files for precise
allenh1@allenh1-Vostro-430:~/p2os-release$ git-buildpackage -uc -us --git-ignore-branch --git-ignore-new
dh clean
dh_testdir
Unknown option: buildsystem
dh_testdir: warning: ignored unknown options in DH_OPTIONS
dh_auto_clean
dh_clean
Unknown option: buildsystem
dh_clean: warning: ignored unknown options in DH_OPTIONS
rm -f debian/ros-hydro-p2os-urdf.substvars
rm -f debian/ros-hydro-p2os-urdf.*.debhelper
rm -rf debian/ros-hydro-p2os-urdf/
rm -f debian/*.debhelper.log
rm -f debian/files
find . \( \( -type f -a \
\( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \
-o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
-o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \
-o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \
\) -exec rm -f {} \; \) -o \
\( -type d -a -name autom4te.cache -prune -exec rm -rf {} \; \) \)
rm -f *-stamp
Warning generated by debuild:
Making debian/rules executable!
fatal: ref HEAD is not a symbolic ref
gbp:error: release/hydro/p2os_urdf/1.0.1-0 is not a valid branch
I'm sure it's something simple.
I haven't run into this, I thought this would be covered by the `--git-ignore-branch`, but maybe not...
This seems to indicate that calling this from a tag is a problem, but that hasn't been my experience. I have no idea why this doesn't work, @tfoote any ideas?
Since bloom uses a tag, not a branch, you might need to use "--git-export=WC" to use the "working copy" that is checked out?
That seems to make sense. Do I need to change the rest of the command?
I found that I needed to add the --git-upstream-tree=tag flags to get GBP to run properly on 13.10.
Austin—just ran into this trying to make builds on 14.04. Thanks for the heads-up.
Ditto...cheers Austin.