[opensuse-packaging] What spec changes allows package to build [libtrash]
![](https://seccdn.libravatar.org/avatar/29b81b0b98e8ef7ad3358a1a78734f79.jpg?s=120&d=mm&r=g)
Hello, What spec changes allows package to build [libtrash] --Glenn --specfile https://build.opensuse.org/package/view_file/home:doiggl/libtrash/libtrash.s... --project https://build.opensuse.org/package/show/home:doiggl/libtrash --source http://rpm.pbone.net/index.php3/stat/3/srodzaj/2/search/libtrash-3.3-2.fc21.... last buildlog: [ 78s] Wrote: /home/abuild/rpmbuild/SRPMS/libtrash-3.3-44.1.src.rpm [ 78s] Wrote: /home/abuild/rpmbuild/RPMS/x86_64/libtrash-3.3-44.1.x86_64.rpm [ 79s] Wrote: /home/abuild/rpmbuild/RPMS/x86_64/libtrash-debugsource-3.3-44.1.x86_64.rpm [ 79s] Wrote: /home/abuild/rpmbuild/RPMS/x86_64/libtrash-devel-3.3-44.1.x86_64.rpm [ 79s] Wrote: /home/abuild/rpmbuild/RPMS/x86_64/libtrash-debuginfo-3.3-44.1.x86_64.rpm [ 79s] Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.BxMD7h [ 79s] + umask 022 [ 79s] + cd /home/abuild/rpmbuild/BUILD [ 79s] + cd libtrash-3.3 [ 79s] + rm -rf /home/abuild/rpmbuild/BUILDROOT/libtrash-3.3-44.1.x86_64 [ 79s] + exit 0 [ 79s] ... checking for files with abuild user/group [ 79s] ... running 00-check-install-rpms [ 79s] ... installing all built rpms [ 79s] Preparing packages... [ 79s] libtrash-3.3-44.1.x86_64 [ 79s] libtrash-devel-3.3-44.1.x86_64 [ 79s] libtrash-debuginfo-3.3-44.1.x86_64 [ 79s] libtrash-debugsource-3.3-44.1.x86_64 [ 79s] ... running 01-check-debuginfo [ 79s] ... testing for empty debuginfo packages [ 79s] ... running 02-check-gcc-output [ 79s] ... testing for serious compiler warnings [ 79s] (using /usr/lib/build/checks-data/check_gcc_output) [ 79s] (using //.build.log) [ 79s] [ 79s] I: Program returns random data in a function [ 79s] E: libtrash no-return-in-nonvoid-function open-funs.c:751 [ 79s] [ 79s] I: Program returns random data in a function [ 79s] E: libtrash no-return-in-nonvoid-function open-funs.c:751 [ 79s] ### WATCHDOG MARKER START ### [ 82s] [ 48.373480] SysRq : Power Off [ 82s] [ 48.377799] reboot: Power down [ 82s] ### WATCHDOG MARKER END ### About:http://rpm.pbone.net/index.php3/stat/4/idpl/27034233/dir/fedora_21/com/libtr... Summary : Libraries to move files to a trash-folder on delete Description : Libtrash is the shared library which, when preloaded, implements a trash can under GNU/Linux. Through the interception of function calls which might lead to accidental data loss libtrash effectively ensures that your data remains protected from your own mistakes. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/5cdd10d836bdda3796cf6bc1ab2d5a78.jpg?s=120&d=mm&r=g)
On Fri, 2015-02-13 at 22:56 +1100, doiggl@velocitynet.com.au wrote:
Hello, What spec changes allows package to build [libtrash] --Glenn
--specfile https://build.opensuse.org/package/view_file/home:doiggl/libtrash/libtrash.s...
--project https://build.opensuse.org/package/show/home:doiggl/libtrash
--source http://rpm.pbone.net/index.php3/stat/3/srodzaj/2/search/libtrash-3.3-2.fc21....
last buildlog: [ 78s] Wrote: /home/abuild/rpmbuild/SRPMS/libtrash-3.3-44.1.src.rpm [ 78s] Wrote: /home/abuild/rpmbuild/RPMS/x86_64/libtrash-3.3-44.1.x86_64.rpm [ 79s] Wrote: /home/abuild/rpmbuild/RPMS/x86_64/libtrash-debugsource-3.3-44.1.x86_64.rpm [ 79s] Wrote: /home/abuild/rpmbuild/RPMS/x86_64/libtrash-devel-3.3-44.1.x86_64.rpm [ 79s] Wrote: /home/abuild/rpmbuild/RPMS/x86_64/libtrash-debuginfo-3.3-44.1.x86_64.rpm [ 79s] Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.BxMD7h [ 79s] + umask 022 [ 79s] + cd /home/abuild/rpmbuild/BUILD [ 79s] + cd libtrash-3.3 [ 79s] + rm -rf /home/abuild/rpmbuild/BUILDROOT/libtrash-3.3-44.1.x86_64 [ 79s] + exit 0 [ 79s] ... checking for files with abuild user/group [ 79s] ... running 00-check-install-rpms [ 79s] ... installing all built rpms [ 79s] Preparing packages... [ 79s] libtrash-3.3-44.1.x86_64 [ 79s] libtrash-devel-3.3-44.1.x86_64 [ 79s] libtrash-debuginfo-3.3-44.1.x86_64 [ 79s] libtrash-debugsource-3.3-44.1.x86_64 [ 79s] ... running 01-check-debuginfo [ 79s] ... testing for empty debuginfo packages [ 79s] ... running 02-check-gcc-output [ 79s] ... testing for serious compiler warnings [ 79s] (using /usr/lib/build/checks-data/check_gcc_output) [ 79s] (using //.build.log) [ 79s] [ 79s] I: Program returns random data in a function [ 79s] E: libtrash no-return-in-nonvoid-function open-funs.c:751 [ 79s] [ 79s] I: Program returns random data in a function [ 79s] E: libtrash no-return-in-nonvoid-function open-funs.c:751 [ 79s] ### WATCHDOG MARKER START ### [ 82s] [ 48.373480] SysRq : Power Off [ 82s] [ 48.377799] reboot: Power down [ 82s] ### WATCHDOG MARKER END ###
About:http://rpm.pbone.net/index.php3/stat/4/idpl/27034233/dir/fedora_21/com/libtr...
Summary : Libraries to move files to a trash-folder on delete Description : Libtrash is the shared library which, when preloaded, implements a trash can under GNU/Linux. Through the interception of function calls which might lead to accidental data loss libtrash effectively ensures that your data remains protected from your own mistakes.
You will need to write a patch that makes this go away; there are functions that CAN reach their end without returning a value (but the function definition says there should be a return value). Nothing you can (should) do from within the .spec file (other than Patach: my-nifty-patch.oatch and %patch). Cheers, -- Dimstar / Dominique Leuenberger <dimstar@opensuse.org> -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/8352b2ca702e57abc768876768d1959f.jpg?s=120&d=mm&r=g)
The problem is not in the spec file but in the sourcecode itself. [ 79s] I: Program returns random data in a function [ 79s] E: libtrash no-return-in-nonvoid-function open-funs.c:751 [ 79s] [ 79s] I: Program returns random data in a function [ 79s] E: libtrash no-return-in-nonvoid-function open-funs.c:751 You need to edit the open-funcs.c file and on like 751 there is some function that is lacking return call with value it is supposed to have. Then you need to adjust the file and provide the fix as patch (here to upstream too) and it should build for you. Cheers Tom
participants (3)
-
Dimstar / Dominique Leuenberger
-
doiggl@velocitynet.com.au
-
Tomáš Chvátal