[opensuse-buildservice] Problem with the build command.
Hi, I'm having some problems when using "build" from console. I have no problems with stock packages but I'm trying to build from a spec of my own and I get these errors: ------------ Showing the errors part only ------------------- + test -x /usr/sbin/Check -a 0 = 0 -o -x /usr/sbin/Check -a '!' -z /var/tmp/base-0.1-build + echo 'I call /usr/sbin/Check...' I call /usr/sbin/Check... + /usr/sbin/Check lrwxrwxrwx 1 root root 13 Jan 7 18:03 /var/tmp/base-0.1-build//usr/info.gz -> share/info.gz lrwxrwxrwx 1 root root 12 Jan 7 18:03 /var/tmp/base-0.1-build//usr/local/man.gz -> share/man.gz Checking permissions and ownerships - using the permissions files /tmp/Check.perms.kG3293 setting /var/tmp/base-0.1-build/root to root:root 0700. (wrong permissions 0750) Checking permissions and ownerships - using the permissions files /tmp/Check.perms.kG3293 setting /usr/src/packages/SOURCES/ to root:root 1777. (wrong permissions 0755) setting /usr/src/packages/BUILD/ to root:root 1777. (wrong permissions 0755) setting /usr/src/packages/RPMS/ to root:root 1777. (wrong permissions 0755) setting /usr/src/packages/RPMS/i386/ to root:root 1777. (wrong permissions 0755) setting /usr/src/packages/RPMS/i686/ to root:root 1777. (wrong permissions 0755) setting /usr/src/packages/RPMS/noarch/ to root:root 1777. (wrong permissions 0755) setting /usr/src/packages/SPECS/ to root:root 1777. (wrong permissions 0755) setting /usr/src/packages/SRPMS/ to root:root 1777. (wrong permissions 0755) + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-symlink ERROR: link target doesn't exist (neither in build root nor in installed system): /usr/local/man.gz -> /usr/local/share/man.gz Add the package providing the target to neededforbuild and Requires ERROR: link target doesn't exist (neither in build root nor in installed system): /usr/info.gz -> /usr/share/info.gz Add the package providing the target to neededforbuild and Requires error: Bad exit status from /var/tmp/rpm-tmp.86508 (%install) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.86508 (%install) ------------------------------------ I've been reading the Check script and I guess that it tries to compress info and man pages, but my source package is just a skeleton of a root filesystem and it has the /usr/local/{share,info,man} dirs symlinked to /usr/{share,info,man}. I could make dirs instead of symlinks but I would like to know if it is possible to make it work with my symlinks. Thanks. Samuel Partida. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
El Domingo, 7 de Enero de 2007 19:21, Samuel Partida escribió:
Hi, I'm having some problems when using "build" from console. I have no problems with stock packages but I'm trying to build from a spec of my own and I get these errors:
------------ Showing the errors part only ------------------- + test -x /usr/sbin/Check -a 0 = 0 -o -x /usr/sbin/Check -a '!' -z /var/tmp/base-0.1-build + echo 'I call /usr/sbin/Check...' I call /usr/sbin/Check... + /usr/sbin/Check lrwxrwxrwx 1 root root 13 Jan 7 18:03 /var/tmp/base-0.1-build//usr/info.gz -> share/info.gz lrwxrwxrwx 1 root root 12 Jan 7 18:03 /var/tmp/base-0.1-build//usr/local/man.gz -> share/man.gz Checking permissions and ownerships - using the permissions files /tmp/Check.perms.kG3293 setting /var/tmp/base-0.1-build/root to root:root 0700. (wrong permissions 0750) Checking permissions and ownerships - using the permissions files /tmp/Check.perms.kG3293 setting /usr/src/packages/SOURCES/ to root:root 1777. (wrong permissions 0755) setting /usr/src/packages/BUILD/ to root:root 1777. (wrong permissions 0755) setting /usr/src/packages/RPMS/ to root:root 1777. (wrong permissions 0755) setting /usr/src/packages/RPMS/i386/ to root:root 1777. (wrong permissions 0755) setting /usr/src/packages/RPMS/i686/ to root:root 1777. (wrong permissions 0755) setting /usr/src/packages/RPMS/noarch/ to root:root 1777. (wrong permissions 0755) setting /usr/src/packages/SPECS/ to root:root 1777. (wrong permissions 0755) setting /usr/src/packages/SRPMS/ to root:root 1777. (wrong permissions 0755) + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-symlink ERROR: link target doesn't exist (neither in build root nor in installed system): /usr/local/man.gz -> /usr/local/share/man.gz Add the package providing the target to neededforbuild and Requires ERROR: link target doesn't exist (neither in build root nor in installed system): /usr/info.gz -> /usr/share/info.gz Add the package providing the target to neededforbuild and Requires error: Bad exit status from /var/tmp/rpm-tmp.86508 (%install)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.86508 (%install) ------------------------------------
I've been reading the Check script and I guess that it tries to compress info and man pages, but my source package is just a skeleton of a root filesystem and it has the /usr/local/{share,info,man} dirs symlinked to /usr/{share,info,man}.
I could make dirs instead of symlinks but I would like to know if it is possible to make it work with my symlinks.
Thanks.
Samuel Partida.
For sure you can use ln -s in your spec. Have you noticed this?: /var/tmp/base-0.1-build//usr/local/man.gz -> share/man.gz There are two slash there, got it? By the way, I wonder why do you want to link set up man pages in /usr/local instead of using manpages as a normal PATH: For instance %{_mandir}/man1/info.gz %{_mandir}/man1/man.gz Anyway, it's better if you provided us full spec file All the best. -- Manuel Arostegui Ramirez. Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Am Sunday 07 January 2007 19:21 schrieb Samuel Partida:
Hi, I'm having some problems when using "build" from console. I have no problems with stock packages but I'm trying to build from a spec of my own and I get these errors:
...
+ /usr/lib/rpm/brp-symlink ... /usr/local/man.gz -> /usr/local/share/man.gz ... /usr/info.gz -> /usr/share/info.gz
These symlinks seems to be broken anyway, because they do not belong here. You could maybe remove them after calling "make install" or you find the bogus part in the Makefiles... bye adrian -- Adrian Schroeter SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany email: adrian@suse.de --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (3)
-
Adrian Schröter
-
Manuel Arostegui Ramirez
-
Samuel Partida