Debian Package Building Broken
While following the instructions to build a Debian package from git:
http://xenomai.org/index.php/Building_Debian_packages
...I ran into a problem. There is a "configure" file in the git repository that looks like it shouldn't be there. The build scripts delete this file, then complain that the local working copy has modifications and refuse to build the package.
I was able to work around this by just deleting the configure file and committing the changes, but you might want to do this upstream as well.
I am building from the 2.6.3 tag, but the configure file still exists in master:
http://git.xenomai.org/xenomai-2.6.git/tree/
Signature · 2 lines
Charles Steinkuehler [email protected]
Quoted 9 lines · Charles Steinkuehler
While following the instructions to build a Debian package from git:
http://xenomai.org/index.php/Building_Debian_packages
...I ran into a problem. There is a "configure" file in the git repository that looks like it shouldn't be there. The build scripts delete this file, then complain that the local working copy has modifications and refuse to build the package.
Quoted 7 lines
I was able to work around this by just deleting the configure file and committing the changes, but you might want to do this upstream as well.
I am building from the 2.6.3 tag, but the configure file still exists in master:
No, the configure file is in the tree, this is intentional, this avoids requiring people which compile the package from the git tree to have the autotools installed. If debian/rules does not support that, it should be fixed to support it.
Signature · 1 line
Gilles.
Quoted 9 lines · Charles Steinkuehler
While following the instructions to build a Debian package from git:
http://xenomai.org/index.php/Building_Debian_packages
...I ran into a problem. There is a "configure" file in the git repository that looks like it shouldn't be there. The build scripts delete this file, then complain that the local working copy has modifications and refuse to build the package.
Quoted 8 lines
I was able to work around this by just deleting the configure file and committing the changes, but you might want to do this upstream as well.
I am building from the 2.6.3 tag, but the configure file still exists in master:
Does this still happen if you remove the line "autoreconf -fi" from debian/rules ?
Signature · 1 line
Gilles.
Quoted 11 lines · Gilles Chanteperdrix
Quoted 5 lines · Charles Steinkuehler
I am building from the 2.6.3 tag, but the configure file still exists in master:
No, the configure file is in the tree, this is intentional, this avoids requiring people which compile the package from the git tree to have the autotools installed. If debian/rules does not support that, it should be fixed to support it.
I'm not sure if debian/rules allows that or not...I'm just trying to build 2.6.3 packages from git following the directions on the wiki:
http://xenomai.org/index.php/Building_Debian_packages#from_a_Git_repository
...mostly because for some reason Debian doesn't build the armhf flavor of the Xenomai packages:
https://packages.debian.org/sid/xenomai-runtime
...there's armel, but no armhf. :(
Signature · 2 lines
Charles Steinkuehler [email protected]
Quoted 16 lines · Charles Steinkuehler
Quoted 11 lines · Gilles Chanteperdrix
Quoted 5 lines · Charles Steinkuehler
I am building from the 2.6.3 tag, but the configure file still exists in master:
No, the configure file is in the tree, this is intentional, this avoids requiring people which compile the package from the git tree to have the autotools installed. If debian/rules does not support that, it should be fixed to support it.
I'm not sure if debian/rules allows that or not...I'm just trying to build 2.6.3 packages from git following the directions on the wiki:
Quoted 9 lines
http://xenomai.org/index.php/Building_Debian_packages#from_a_Git_repository
...mostly because for some reason Debian doesn't build the armhf flavor of the Xenomai packages:
https://packages.debian.org/sid/xenomai-runtime
...there's armel, but no armhf. :(
This is a known issue, which has been fixed in xenomai git:
http://git.xenomai.org/xenomai-2.6.git/commit/?id=b10527ed14399a6485f69b935988d9d5211066d0
You will not have it when building from the 2.6.3 tag, though.
Signature · 1 line
Gilles.
Quoted 3 lines · Gilles Chanteperdrix
Quoted 1 line
Does this still happen if you remove the line "autoreconf -fi" from debian/rules ?
Yes, see below (pasted as a quote to hopefully avoid wrapping). The build complains about uncommitted changes immediately after deleting the configure file, which is what causes the uncommitted change.
I have some other problem as well, even if I remove the configure file the build still dies, but I think that's something on my end. It's unrelated to the configure file, anyway.
Quoted 22 lines
linuxcnc@mah2:~/xenomai$ git-buildpackage --git-debian-branch=v2.6.3-deb --git-export-dir=.. -uc -us dh_testdir dh_testroot rm -f configure-stamp build-indep-stamp build-arch-stamp if test -f Makefile ; then \ /usr/bin/make distclean ; \ fi dh_clean rm -fR /home/linuxcnc/xenomai/tmp rm -f /home/linuxcnc/xenomai/*.patch rm -f configure gbp:error: You have uncommitted changes in your source tree: gbp:error: # On branch v2.6.3-deb # Changes not staged for commit: # (use "git add/rm <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # # deleted: configure # no changes added to commit (use "git add" and/or "git commit -a")gbp:error: Use --git-ignore-new to ignore.
Signature · 2 lines
Charles Steinkuehler [email protected]
Quoted 5 lines · Charles Steinkuehler
Quoted 3 lines · Gilles Chanteperdrix
Quoted 1 line
Does this still happen if you remove the line "autoreconf -fi" from debian/rules ?
Quoted 19 lines
Yes, see below (pasted as a quote to hopefully avoid wrapping). The build complains about uncommitted changes immediately after deleting the configure file, which is what causes the uncommitted change.
I have some other problem as well, even if I remove the configure file the build still dies, but I think that's something on my end. It's unrelated to the configure file, anyway.
Quoted 11 lines
linuxcnc@mah2:~/xenomai$ git-buildpackage --git-debian-branch=v2.6.3-deb --git-export-dir=.. -uc -us dh_testdir dh_testroot rm -f configure-stamp build-indep-stamp build-arch-stamp if test -f Makefile ; then \ /usr/bin/make distclean ; \ fi dh_clean rm -fR /home/linuxcnc/xenomai/tmp rm -f /home/linuxcnc/xenomai/*.patch rm -f configure
Ok, that is the "clean" target, so we should remove the rm configure from the clean target.
Signature · 1 line
Gilles.
Quoted 15 lines · Gilles Chanteperdrix
Quoted 13 lines · Charles Steinkuehler
Quoted 13 lines
linuxcnc@mah2:~/xenomai$ git-buildpackage --git-debian-branch=v2.6.3-deb --git-export-dir=.. -uc -us dh_testdir dh_testroot rm -f configure-stamp build-indep-stamp build-arch-stamp if test -f Makefile ; then \ /usr/bin/make distclean ; \ fi dh_clean rm -fR /home/linuxcnc/xenomai/tmp rm -f /home/linuxcnc/xenomai/*.patch rm -f configure
Quoted 2 lines
Ok, that is the "clean" target, so we should remove the rm configure from the clean target.
Yes, commenting "-rm -f configure" in the clean target gets it past this particular problem.
Signature · 2 lines
Charles Steinkuehler [email protected]
Quoted 5 lines · Charles Steinkuehler
Quoted 3 lines · Gilles Chanteperdrix
Quoted 1 line
Does this still happen if you remove the line "autoreconf -fi" from debian/rules ?
Quoted 7 lines
Yes, see below (pasted as a quote to hopefully avoid wrapping). The build complains about uncommitted changes immediately after deleting the configure file, which is what causes the uncommitted change.
I have some other problem as well, even if I remove the configure file the build still dies, but I think that's something on my end. It's unrelated to the configure file, anyway.
Actually, it is better if you start from Xenomai 2.6 git head instead of the v2.6.3 tag, as you will avoid the few issues (including the fact that it does not compile for armhf) which have been fixed since the 2.6.3 release.
Signature · 1 line
Gilles.
Quoted 5 lines · Gilles Chanteperdrix
Actually, it is better if you start from Xenomai 2.6 git head instead of the v2.6.3 tag, as you will avoid the few issues (including the fact that it does not compile for armhf) which have been fixed since the 2.6.3 release.
Between commenting the rm configure and using 2.6 HEAD, I got packages to successfully build.
Thanks for the help!
Signature · 2 lines
Charles Steinkuehler [email protected]