Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Unknown option: buildsystem" error #32

Closed
tomduck opened this issue Jun 26, 2010 · 6 comments
Closed

"Unknown option: buildsystem" error #32

tomduck opened this issue Jun 26, 2010 · 6 comments

Comments

@tomduck
Copy link

tomduck commented Jun 26, 2010

I have installed stdeb 0.6.0 from sources on a debian Lenny system. When running the provided test.sh, I get an "Unknown option: buildsystem" error after "dh clean", followed by an abort. The full output of test.sh is given below.

Thanks for your efforts on stdeb. I hope to use it to build numpy and friends for a few of the different architectures I need.

Thanks,
Tom

$ ./test.sh
--2010-06-26 12:00:44-- http://astraw.com/misc_files/simplepack-8.0.1+r23437.tar.gz
Resolving astraw.com... 69.163.194.242
Connecting to astraw.com|69.163.194.242|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 518 [application/x-tar]
Saving to: `simplepack-8.0.1+r23437.tar.gz'

100%[======================================>] 518 --.-K/s in 0s

2010-06-26 12:00:45 (18.8 MB/s) - `simplepack-8.0.1+r23437.tar.gz' saved [518/518]

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
running the following command in directory: deb_dist/tmp_py2dsc/simplepack-8.0.1+r23437
/usr/bin/python setup.py --command-packages stdeb.command sdist_dsc --dist-dir=/home/tomduck/install/archive/stdeb-0.6.0/deb_dist --use-premade-distfile=/home/tomduck/install/archive/stdeb-0.6.0/simplepack-8.0.1+r23437.tar.gz
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
running sdist_dsc
CALLING dpkg-source -b simplepack-8.0.1+r23437 simplepack_8.0.1+r23437.orig.tar.gz (in dir /home/tomduck/install/archive/stdeb-0.6.0/deb_dist)
dpkg-source: info: using source format `1.0'
dpkg-source: info: building simplepack using existing simplepack_8.0.1+r23437.orig.tar.gz
dpkg-source: info: building simplepack in simplepack_8.0.1+r23437-1.diff.gz
dpkg-source: info: building simplepack in simplepack_8.0.1+r23437-1.dsc
dpkg-source: warning: extracting unsigned source package (simplepack_8.0.1+r23437-1.dsc)
dpkg-source: extracting simplepack in simplepack-8.0.1+r23437
dpkg-source: info: unpacking simplepack_8.0.1+r23437.orig.tar.gz
dpkg-source: info: applying simplepack_8.0.1+r23437-1.diff.gz
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value:
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package simplepack
dpkg-buildpackage: source version 8.0.1+r23437-1
dpkg-buildpackage: source changed by unknown unknown@unknown
dpkg-buildpackage: host architecture i386
fakeroot debian/rules clean
dh clean
Unknown option: buildsystem
dh: unknown option; aborting
make: *** [clean] Error 1
dpkg-buildpackage: failure: fakeroot debian/rules clean gave error exit status 2

@astraw
Copy link
Owner

astraw commented Jun 26, 2010

Use the "--force-buildsystem=False" option to disable passing the option. I will investigate why I had True as the default and see if it can be changed.

@tomduck
Copy link
Author

tomduck commented Jun 26, 2010

Thanks for the incredibly quick feedback!

I made the recommended changes to test.sh, ran the script, and "All tests passed". The universal diff for test.sh is given below for reference.

Cheers,
Tom

--- test.sh 2010-06-26 13:04:15.000000000 -0300
+++ test.sh.orig 2010-06-18 21:51:11.000000000 -0300
@@ -30,7 +30,7 @@

case 1: build from pre-existing source tarball

==============================================================

-py2dsc --force-buildsystem=False $SOURCE_TARBALL; if [[ $? -ne 0 ]]; then exit $?; fi
+py2dsc $SOURCE_TARBALL; if [[ $? -ne 0 ]]; then exit $?; fi

cd deb_dist/$DEBSOURCE; if [[ $? -ne 0 ]]; then exit $?; fi
dpkg-buildpackage -rfakeroot -uc -us; if [[ $? -ne 0 ]]; then exit $?; fi
@@ -45,7 +45,7 @@

==============================================================

tar xzf $SOURCE_TARBALL; if [[ $? -ne 0 ]]; then exit $?; fi
cd $SOURCE_TARBALL_DIR; if [[ $? -ne 0 ]]; then exit $?; fi
-python setup.py --command-packages=stdeb.command sdist_dsc --force-buildsystem=False; if [[ $? -ne 0 ]]; then exit $?; fi
+python setup.py --command-packages=stdeb.command sdist_dsc; if [[ $? -ne 0 ]]; then exit $?; fi
cd deb_dist/$DEBSOURCE; if [[ $? -ne 0 ]]; then exit $?; fi
dpkg-buildpackage -rfakeroot -uc -us; if [[ $? -ne 0 ]]; then exit $?; fi
cd ..; if [[ $? -ne 0 ]]; then exit $?; fi

@tomduck
Copy link
Author

tomduck commented Jun 26, 2010

Hi,

Sorry to be a pain -- I'm new here -- but I'm not sure why this report is closed. I don't see any new commits to github, so the original problem still exists.

Cheers,
Tom

@astraw
Copy link
Owner

astraw commented Jun 27, 2010

I didn't think I closed it. Maybe some github weirdness or maybe my fault for pressing the wrong button. Now I can't seem to re-open it...

@fidlej
Copy link
Contributor

fidlej commented Jul 12, 2011

Note that some packages fail to build when using "--force-buildsystem=False". It happens when a Makefile is present next to the setup.py. The "makefile" buildsystem would be selected in that case.

The list of alternative buildsystems:

autoconf             GNU Autoconf (configure)
perl_makemaker       Perl ExtUtils::MakeMaker (Makefile.PL)
makefile             simple Makefile
python_distutils     Python Distutils (setup.py)
perl_build           Perl Module::Build (Build.PL)
cmake                CMake (CMakeLists.txt)
ant                  Ant (build.xml)
qmake                qmake (*.pro)

@astraw
Copy link
Owner

astraw commented Jul 27, 2014

As of now (40b3704), I'm not seeing this issue on Debian wheezy. Please re-open if you are still having trouble.

@astraw astraw closed this as completed Jul 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants