Bug#409026: wims: FTBFS: cp: cannot stat `/wims-3.60/wims/public_html/wims': No such file or directory
Raphael Hertzog a écrit : You are trying to compile WIMS as 'root'! You should not do that. Compile as 'wims', please. Thanks! Georges, is there a good reason explaining why wims is doing that ? Of course, Raphael, there is a check in the script which compiles wims, to detect if it has root privilege. If it has such privilege, it throws the message You are trying to compile WIMS as 'root'! and stops. So the failure to compile the package is completely explicated, and it cannot be considered as a bug. I can see one reason why the package should be built as 'wims' user : if it is to be maintained by a 'wims' user later. As we do a package for Debian, the files will finally be owned by 'root', so it does not matter if their are built by 'root'. Hereafter I write some thoughts about the permissions we should organise for the public wims tree : If we do not give back some files and directories to 'wims' at post-installation time, the server won't be able to synchronize with other Wims servers (that means: benefit from newer educational modules, and allow automatic upgrading). My opinion is that we should allow exchanges of educational modules and give the relevant directories to 'wims', but that we should not allow the server to upgrade directly. So the permission schema should not be the same that the one scheduled in the upstream side. Therefore it does not matter if we compile it as 'root' : the permissions will be definitely set by the post-installation script. Otherwise, consider removing that check for the next upload. OK, I do that. Should we upload it shortly, or do we wait for a new upstream release? Note that even debuild -r sudo doesn't build as root, it only installs cleans as root. Which explains why I couldn't reproduce the failure. Cheers, -- Raphaël Hertzog Premier livre français sur Debian GNU/Linux : http://www.ouaza.com/livre/admin-debian/ -- Georges KHAZNADAR et Jocelyne FOURNIER 22 rue des mouettes, 59240 Dunkerque France. Téléphone +33 (0)3 28 29 17 70 signature.asc Description: Digital signature
Bug#409026: wims: FTBFS: cp: cannot stat `/wims-3.60/wims/public_html/wims': No such file or directory
On Wed, 07 Feb 2007, Georges Khaznadar wrote: Otherwise, consider removing that check for the next upload. OK, I do that. Should we upload it shortly, or do we wait for a new upstream release? We can safely wait. Cheers, -- Raphaël Hertzog Premier livre français sur Debian GNU/Linux : http://www.ouaza.com/livre/admin-debian/
Bug#409026: wims: FTBFS: cp: cannot stat `/wims-3.60/wims/public_html/wims': No such file or directory
On Mon, 05 Feb 2007, Andreas Jochens wrote: On 07-Feb-05 08:08, Raphael Hertzog wrote: Please send the build log (or make it available) so that we can decide whether there's something to fix or not. attached is the full build log from a build on amd64/unstable when building as 'root'. Basically, wims refuses to compile with the following message: You are trying to compile WIMS as 'root'! You should not do that. Compile as 'wims', please. Thanks! Georges, is there a good reason explaining why wims is doing that ? Otherwise, consider removing that check for the next upload. Note that even debuild -r sudo doesn't build as root, it only installs cleans as root. Which explains why I couldn't reproduce the failure. Cheers, -- Raphaël Hertzog Premier livre français sur Debian GNU/Linux : http://www.ouaza.com/livre/admin-debian/
Bug#409026: wims: FTBFS: cp: cannot stat `/wims-3.60/wims/public_html/wims': No such file or directory
Hello Raphael, thank you for the precise hint about the origin of the bug. I was just able to write that the bug was not reproducible, but I had no idea about the conditions which might lead to that bug. Raphael Hertzog a écrit : severity 409026 important tag 409026 + unreproducible Amitiés,Georges. signature.asc Description: Digital signature
Bug#409026: wims: FTBFS: cp: cannot stat `/wims-3.60/wims/public_html/wims': No such file or directory
Hi, On Sat, 03 Feb 2007, Andreas Jochens wrote: I could finally reproduce the problem, but only when I build the package as 'root'. So I guess this is not really a bug after all. Feel free to close this report if you think that this is appropriate. Please send the build log (or make it available) so that we can decide whether there's something to fix or not. Cheers, -- Raphaël Hertzog Premier livre français sur Debian GNU/Linux : http://www.ouaza.com/livre/admin-debian/
Bug#409026: wims: FTBFS: cp: cannot stat `/wims-3.60/wims/public_html/wims': No such file or directory
Hello, On 07-Feb-05 08:08, Raphael Hertzog wrote: Please send the build log (or make it available) so that we can decide whether there's something to fix or not. attached is the full build log from a build on amd64/unstable when building as 'root'. Basically, wims refuses to compile with the following message: You are trying to compile WIMS as 'root'! You should not do that. Compile as 'wims', please. After this message, the subsequent packaging commands fail. The same happens on i386/unstable when building as root. Regards Andreas Jochens Building wims on unstable/amd64... dpkg-source: extracting wims in wims-3.60 dpkg-source: unpacking wims_3.60.orig.tar.gz dpkg-source: applying ./wims_3.60-6.diff.gz Reading package lists... Building dependency tree... The following extra packages will be installed: debconf debconf-i18n defoma ed file fontconfig-config gettext gettext-base html2text intltool-debian libexpat1 libexpat1-dev libfontconfig1 libfontconfig1-dev libfreetype6 libfreetype6-dev libgd2-xpm libice6 libjpeg62 libjpeg62-dev libkpathsea4 liblocale-gettext-perl libmagic1 libnewt0.52 libpaper1 libpng12-0 libpng12-dev libpoppler0c2 libpopt0 libsm6 libt1-5 libx11-6 libx11-data libx11-dev libxau-dev libxau6 libxaw7 libxdmcp-dev libxdmcp6 libxext-dev libxext6 libxmu6 libxpm-dev libxpm4 libxt6 mime-support pkg-config tetex-base tex-common ttf-dejavu ucf whiptail x11-common x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-xext-dev xtrans-dev zlib1g-dev Suggested packages: debconf-doc debconf-utils libterm-readline-gnu-perl libgnome2-perl libqt-perl libnet-ldap-perl dh-make defoma-doc psfontmgr x-ttcidfont-conf dfontmgr cvs gettext-doc libgd-tools libgnome-dev tetex-extra gs-gpl gs-esp gs-afpl gv postscript-viewer xpdf-reader pdf-viewer texinfo texi2html dvipng chktex lacheck rubber sam2p xbase-clients Recommended packages: libft-perl curl wget lynx libfribidi0 libpaper-utils libmail-sendmail-perl libcompress-zlib-perl tetex-doc psutils perl-tk libxml-parser-perl The following NEW packages will be installed: debconf debconf-i18n debhelper defoma ed file fontconfig-config gettext gettext-base html2text intltool-debian libexpat1 libexpat1-dev libfontconfig1 libfontconfig1-dev libfreetype6 libfreetype6-dev libgd2-xpm libgd2-xpm-dev libice6 libjpeg62 libjpeg62-dev libkpathsea4 liblocale-gettext-perl libmagic1 libnewt0.52 libpaper1 libpng12-0 libpng12-dev libpoppler0c2 libpopt0 libsm6 libt1-5 libx11-6 libx11-data libx11-dev libxau-dev libxau6 libxaw7 libxdmcp-dev libxdmcp6 libxext-dev libxext6 libxmu6 libxpm-dev libxpm4 libxt6 mime-support pkg-config po-debconf tetex-base tetex-bin tex-common ttf-dejavu ucf whiptail x11-common x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-xext-dev xtrans-dev zlib1g-dev 0 upgraded, 63 newly installed, 0 to remove and 10 not upgraded. Need to get 42.4MB of archives. After unpacking 138MB of additional disk space will be used. Get:1 http://127.0.0.1 unstable/main liblocale-gettext-perl 1.05-1 [19.6kB] Get:2 http://127.0.0.1 unstable/main debconf-i18n 1.5.11 [151kB] Get:3 http://127.0.0.1 unstable/main debconf 1.5.11 [146kB] Get:4 http://127.0.0.1 unstable/main x11-common 1:7.1.0-11 [339kB] Get:5 http://127.0.0.1 unstable/main libxau6 1:1.0.1-2 [7608B] Get:6 http://127.0.0.1 unstable/main libxdmcp6 1:1.0.1-2 [11.5kB] Get:7 http://127.0.0.1 unstable/main libx11-data 2:1.0.3-5 [157kB] Get:8 http://127.0.0.1 unstable/main libx11-6 2:1.0.3-5 [590kB] Get:9 http://127.0.0.1 unstable/main x11proto-core-dev 7.0.7-2 [78.4kB] Get:10 http://127.0.0.1 unstable/main libxau-dev 1:1.0.1-2 [11.7kB] Get:11 http://127.0.0.1 unstable/main libxdmcp-dev 1:1.0.1-2 [15.3kB] Get:12 http://127.0.0.1 unstable/main libxext6 1:1.0.1-2 [28.6kB] Get:13 http://127.0.0.1 unstable/main x11proto-input-dev 1.3.2-4 [13.5kB] Get:14 http://127.0.0.1 unstable/main x11proto-xext-dev 7.0.2-5 [41.8kB] Get:15 http://127.0.0.1 unstable/main libxext-dev 1:1.0.1-2 [80.6kB] Get:16 http://127.0.0.1 unstable/main x11proto-kb-dev 1.0.3-2 [26.8kB] Get:17 http://127.0.0.1 unstable/main xtrans-dev 1.0.1-3 [59.0kB] Get:18 http://127.0.0.1 unstable/main libx11-dev 2:1.0.3-5 [1315kB] Get:19 http://127.0.0.1 unstable/main libxpm4 1:3.5.5-2 [35.6kB] Get:20 http://127.0.0.1 unstable/main libxpm-dev 1:3.5.5-2 [43.4kB] Get:21 http://127.0.0.1 unstable/main libice6 1:1.0.1-2 [45.9kB] Get:22 http://127.0.0.1 unstable/main libsm6 1:1.0.1-3 [20.1kB] Get:23 http://127.0.0.1 unstable/main libxt6 1:1.0.2-2 [174kB] Get:24 http://127.0.0.1 unstable/main libexpat1 1.95.8-3.4 [64.5kB] Get:25 http://127.0.0.1 unstable/main libfreetype6 2.2.1-5 [355kB] Get:26 http://127.0.0.1 unstable/main ucf 2.0018.1 [57.3kB] Get:27 http://127.0.0.1 unstable/main libnewt0.52 0.52.2-10 [67.6kB] Get:28 http://127.0.0.1 unstable/main libpopt0 1.10-3 [34.5kB] Get:29 http://127.0.0.1 unstable/main whiptail 0.52.2-10 [35.3kB] Get:30 http://127.0.0.1 unstable/main libmagic1 4.19-1
Bug#409026: wims: FTBFS: cp: cannot stat `/wims-3.60/wims/public_html/wims': No such file or directory
severity 409026 important tag 409026 + unreproducible thanks Hello, On Tue, 30 Jan 2007, Andreas Jochens wrote: Hello, when building 'wims' in a clean unstable chroot, I get the following error: # populating /var/lib/wims orig_dir=$(pwd)/wims; \ [...] cp ${orig_dir}/src/Wimslogd/wimslogd bin/ cp: cannot stat `/wims-3.60/wims/public_html/wims': No such file or directory cp: cannot stat `/wims-3.60/wims/src/Wimslogd/wimslogd': No such file or directory make[1]: *** [install] Error 1 make[1]: Leaving directory `/wims-3.60' make: *** [install-arch] Error 2 Andreas, are you building the package with sudo instead of fakeroot ? Which shell are you using as /bin/sh ? Please send us the full build log and tell us on which architecture you tried the build. This version has successully built on all arches and I couldn't reproduce the bug locally. Thus downgrading to important. At first look, I first thought of a variant of the standard error when building with sudo: usually $(PWD) is not defined because sudo is stripping most environment variables. But here we're using $$(pwd) in the Makefile which leads to $(pwd) given to the shell and this returns a value. And I built the package with debuild -r sudo and it worked. Cheers, -- Raphaël Hertzog Premier livre français sur Debian GNU/Linux : http://www.ouaza.com/livre/admin-debian/
Bug#409026: wims: FTBFS: cp: cannot stat `/wims-3.60/wims/public_html/wims': No such file or directory
severity 409026 wishlist thanks Hello, thanks for looking at this. I tried to reproduce this bug again, but as you state in your email the package really builds fine under standard conditions. I could finally reproduce the problem, but only when I build the package as 'root'. So I guess this is not really a bug after all. Feel free to close this report if you think that this is appropriate. Sorry for the noise. Regards Andreas Jochens -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#409026: wims: FTBFS: cp: cannot stat `/wims-3.60/wims/public_html/wims': No such file or directory
Package: wims Version: 3.60-6 Severity: serious Hello, when building 'wims' in a clean unstable chroot, I get the following error: # populating /var/lib/wims orig_dir=$(pwd)/wims; \ cd /wims-3.60/debian/wims/var/lib/wims; \ for d in backup download/modules public_html/modules/contrib public_html/w/texgif; do \ mkdir -p $d; \ done; \ for f in bin download localwims other README sessions tmp lib log s2 update.sh; do \ cp -Rd ${orig_dir}/$f .; \ done; \ cp ${orig_dir}/public_html/wims public_html; \ ln -sf wims public_html/wims.cgi; \ cp ${orig_dir}/src/Wimslogd/wimslogd bin/ cp: cannot stat `/wims-3.60/wims/public_html/wims': No such file or directory cp: cannot stat `/wims-3.60/wims/src/Wimslogd/wimslogd': No such file or directory make[1]: *** [install] Error 1 make[1]: Leaving directory `/wims-3.60' make: *** [install-arch] Error 2 Regards Andreas Jochens -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]