[opensuse-packaging] [bwgraph] - Need help with error *** No rule to make target `install'
![](https://seccdn.libravatar.org/avatar/29b81b0b98e8ef7ad3358a1a78734f79.jpg?s=120&d=mm&r=g)
Hello I'm using an existing make file in building this package. The make file is as follows it just has one line in it. all: bw The package error log shows the following: + cd /usr/src/packages/BUILD + /bin/rm -rf /usr/src/packages/BUILDROOT/bwgraph-1-2.1.x86_64 ++ dirname /usr/src/packages/BUILDROOT/bwgraph-1-2.1.x86_64 + /bin/mkdir -p /usr/src/packages/BUILDROOT + /bin/mkdir /usr/src/packages/BUILDROOT/bwgraph-1-2.1.x86_64 + cd bwgraph + test -x ./configure + make cc bw.c -o bw + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.SC1SKd + umask 022 + cd /usr/src/packages/BUILD + cd bwgraph + make DESTDIR=/usr/src/packages/BUILDROOT/bwgraph-1-2.1.x86_64 install make: *** No rule to make target `install'. Stop. error: Bad exit status from /var/tmp/rpm-tmp.SC1SKd (%install) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.SC1SKd (%install) System halted. - Question: What other entries do i need in the make file to do the compile ? The package has four files in total. Makefile 8 README 727 bw.c 8.5K bwbar 273 project -> https://build.opensuse.org/package/show?package=bwgraph&project=home%3Adoigg... Last build log -> https://build.opensuse.org/package/live_build_log?arch=x86_64&package=bwgrap... spec file -> https://build.opensuse.org/package/view_file?file=bwgraph.spec&package=bwgra... Thanks for the assistance. Glenn. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/45bf5eef0471996074efa055ea252116.jpg?s=120&d=mm&r=g)
On 03/10/09 09:26, doiggl@velocitynet.com.au wrote:
- Question: What other entries do i need in the make file to do the compile ?
There are many ways to solve your problem, I will suggest you two of them - during %install use %{__install} utility to put the bw binary in %{buildroot}%{_bindir} - You can use the following "Cmake" script to replace the makefile save as CMakeLists.txt PROJECT(bwgraph C) SET(CMAKE_VERBOSE_MAKEFILE ON) ADD_EXECUTABLE(bw bw.c) INSTALL(PROGRAMS bw DESTINATION bin) now you have an "install" target.. however your story does not end there, "bwbar" is meant to be an init script, see Packaging Guidelines to know how to convert it to a proper init script. Cheers. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/45bf5eef0471996074efa055ea252116.jpg?s=120&d=mm&r=g)
On 03/10/09 09:55, Cristian Rodríguez wrote:
On 03/10/09 09:26, doiggl@velocitynet.com.au wrote:
- Question: What other entries do i need in the make file to do the compile ?
There are many ways to solve your problem, I will suggest you two of them
- during %install use %{__install} utility to put the bw binary in %{buildroot}%{_bindir}
- You can use the following "Cmake" script to replace the makefile
save as CMakeLists.txt
PROJECT(bwgraph C) SET(CMAKE_VERBOSE_MAKEFILE ON) ADD_EXECUTABLE(bw bw.c) INSTALL(PROGRAMS bw DESTINATION bin)
now you have an "install" target.. however your story does not end there, "bwbar" is meant to be an init script, see Packaging Guidelines to know how to convert it to a proper init script.
Also, note this harcoded stuff in bw.c /* note that file is converted to pnm 2x the desired size so pnmscale can antialias */ static char *convert_ps2pnm = "gs -q -r144 -sOutputFile=/tmp/bw.pnm -sDEVICE=pnm -dBATCH -dNOPAUSE /tmp/bw.ps"; static char *convert_pnm2png = "pnmscale 0.5 -quiet /tmp/bw.pnm | pnmtopng -quiet >/tmp/bw.png"; static char *convert_ps2pdf = "ps2pdf14 /tmp/bw.ps /tmp/bw.pdf"; static char *movecmd = "cp -f /tmp/bw.png /home/httpd/html/bw-%s.png ; cp -f /tmp/bw.pdf /home/httpd/html/bw-%s.pdf"; Looks like that you certainly: - Dont want that ;-) - It will race. - you need to Require those tools in the spec file. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/7689edd9ec408ec55061fddbe8607b56.jpg?s=120&d=mm&r=g)
Hi Glenn, Am Samstag 03 Oktober 2009 15:26:57 wrote doiggl@velocitynet.com.au:
Hello I'm using an existing make file in building this package.
The make file is as follows it just has one line in it.
all: bw
The package error log shows the following:
+ cd /usr/src/packages/BUILD + /bin/rm -rf /usr/src/packages/BUILDROOT/bwgraph-1-2.1.x86_64 ++ dirname /usr/src/packages/BUILDROOT/bwgraph-1-2.1.x86_64 + /bin/mkdir -p /usr/src/packages/BUILDROOT + /bin/mkdir /usr/src/packages/BUILDROOT/bwgraph-1-2.1.x86_64 + cd bwgraph + test -x ./configure + make cc bw.c -o bw + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.SC1SKd + umask 022 + cd /usr/src/packages/BUILD + cd bwgraph + make DESTDIR=/usr/src/packages/BUILDROOT/bwgraph-1-2.1.x86_64 install make: *** No rule to make target `install'. Stop. error: Bad exit status from /var/tmp/rpm-tmp.SC1SKd (%install) Maybe you have to change: # if test -x ./configure; then # %configure # fi %configure
That is my first proposal.I have to check the source -- Sincerely yours Sascha Manns openSUSE Member openSUSE Ambassador openSUSE Marketing Team openSUSE Build Service Web: http://saschamanns.gulli.to Blog: http://saigkill.wordpress.com ClaimID: http://claimid.com/saigkill -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/7689edd9ec408ec55061fddbe8607b56.jpg?s=120&d=mm&r=g)
Am Samstag 03 Oktober 2009 15:26:57 wrote doiggl@velocitynet.com.au:
Hello I'm using an existing make file in building this package.
The make file is as follows it just has one line in it.
all: bw
The package error log shows the following:
+ cd /usr/src/packages/BUILD + /bin/rm -rf /usr/src/packages/BUILDROOT/bwgraph-1-2.1.x86_64 ++ dirname /usr/src/packages/BUILDROOT/bwgraph-1-2.1.x86_64 + /bin/mkdir -p /usr/src/packages/BUILDROOT + /bin/mkdir /usr/src/packages/BUILDROOT/bwgraph-1-2.1.x86_64 + cd bwgraph + test -x ./configure + make cc bw.c -o bw + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.SC1SKd + umask 022 + cd /usr/src/packages/BUILD + cd bwgraph + make DESTDIR=/usr/src/packages/BUILDROOT/bwgraph-1-2.1.x86_64 install make: *** No rule to make target `install'. Stop. error: Bad exit status from /var/tmp/rpm-tmp.SC1SKd (%install)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.SC1SKd (%install) System halted. I must better read the Mails You have written that the Source only have an Makefile:-) If i view the Makefile i can see that just have one Entry "all". But no Entry for "install" . So you have to install it by foot.
%__install -d -m 755 %{buildroot}%{_bindir} %__install -m 755 %namedesbinary %{_buildroot}%{_bindir} -- Sincerely yours Sascha Manns openSUSE Member openSUSE Ambassador openSUSE Marketing Team openSUSE Build Service Web: http://saschamanns.gulli.to Blog: http://saigkill.wordpress.com ClaimID: http://claimid.com/saigkill -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/45bf5eef0471996074efa055ea252116.jpg?s=120&d=mm&r=g)
On 03/10/09 10:33, Sascha 'saigkill' Manns wrote:
If i view the Makefile i can see that just have one Entry "all". But no Entry for "install" . So you have to install it by foot.
It wont work, anyway, the tool needs work to be usable in other systems different from the developer's one. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/29b81b0b98e8ef7ad3358a1a78734f79.jpg?s=120&d=mm&r=g)
On Sat, 03 Oct 2009 10:34:22 -0400, Cristian Rodríguez <crrodriguez@opensuse.org> wrote:
On 03/10/09 10:33, Sascha 'saigkill' Manns wrote:
If i view the Makefile i can see that just have one Entry "all". But no Entry for "install" . So you have to install it by foot.
It wont work, anyway, the tool needs work to be usable in other systems different from the developer's one.
Hello I copied these files to a local laptop and ran make and it compiled bw.c to bw ok. # cat Makefile all: bw # make cc bw.c -o bw # ll total 44 -rw-r--r-- 1 root root 8 Oct 4 10:51 Makefile -rwxr-xr-x 1 root root 21947 Oct 4 10:55 bw -rw-r--r-- 1 root root 8662 Oct 4 10:51 bw.c -rw-r--r-- 1 root root 273 Oct 4 10:51 bwbar It produced a file called 'bw' which is excutable I'm still puzzled on how do I get the projects makefile to compile the module on obs ? project -> https://build.opensuse.org/package/show?package=bwgraph&project=home%3Adoigg... Last build log -> https://build.opensuse.org/package/live_build_log?arch=x86_64&package=bwgrap... spec file -> https://build.opensuse.org/package/view_file?file=bwgraph.spec&package=bwgra... Help appreciated. Thanks Glenn -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/45bf5eef0471996074efa055ea252116.jpg?s=120&d=mm&r=g)
On 05/10/09 22:51, doiggl@velocitynet.com.au wrote:
# ll total 44 -rw-r--r-- 1 root root 8 Oct 4 10:51 Makefile -rwxr-xr-x 1 root root 21947 Oct 4 10:55 bw -rw-r--r-- 1 root root 8662 Oct 4 10:51 bw.c -rw-r--r-- 1 root root 273 Oct 4 10:51 bwbar
It produced a file called 'bw' which is excutable
I'm still puzzled on how do I get the projects makefile to compile the module on obs ?
It just did.. "bw" is the resulting executable.. Please read the other mails I wrote before, -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (3)
-
Cristian Rodríguez
-
doiggl@velocitynet.com.au
-
Sascha 'saigkill' Manns