Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=879879 ben.harper@xxxxxxxxxxxxx changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ben.harper@xxxxxxxxxxxxx --- Comment #1 from ben.harper@xxxxxxxxxxxxx --- Note that I am not a sponsor, but I starting some reviews in an effort to become a packager. Looking over your description and the source RPM, it is not clear to me the issues you are having. It appears that your spec file is able to create plenty of files and folders within /var: ##################### $ cat /etc/issue Fedora release 17 (Beefy Miracle) Kernel \r on an \m (\l) $ rpmbuild -bb SPECS/moodle-xs.spec Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.UpeAWF + umask 022 + cd /home/user/879879/user/BUILD + LANG=C + export LANG + unset DISPLAY + cd /home/user/879879/user/BUILD + rm -rf moodle-xs-1.9.5.xs1.15.g7c6a865 + /usr/bin/gzip -dc /home/user/879879/user/SOURCES/moodle-xs-1.9.5.xs1.15.g7c6a865.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd moodle-xs-1.9.5.xs1.15.g7c6a865 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + find . -type f '!' -name '*.pl' -exec chmod a-x '{}' ';' + find . -name '*.cgi' -exec chmod a+x '{}' ';' + chmod a+x admin/process_email.php + chmod a+x mod/chat/chatd.php + chmod a+x mod/wiki/ewiki/fragments/mkhuge + rm search/.cvsignore + sed -i 's/\r//' lib/adodb/license.txt + sed -i 's/\r//' lib/adodb/readme.txt + sed -i 's/\r//' lib/adodb/session/adodb-sess.txt + sed -i 's/\r//' lib/mp3player/readme.txt + sed -i 's/\r//' lib/pclzip/gnu-lgpl.txt + sed -i 's/\r//' lib/pclzip/readme.txt + sed -i 's/\r//' mod/wiki/ewiki/README + sed -i 's/\r//' mod/wiki/ewiki/README.de + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.fEdmYX + umask 022 + cd /home/user/879879/user/BUILD + cd moodle-xs-1.9.5.xs1.15.g7c6a865 + LANG=C + export LANG + unset DISPLAY + rm config-dist.php install.php COPYING.txt tags.txt filter/tex/mimetex.darwin filter/tex/mimetex.exe filter/tex/mimetex.freebsd filter/tex/mimetex.linux filter/tex/README.mimetex + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.7GA74f + umask 022 + cd /home/user/879879/user/BUILD + '[' /home/user/879879/user/BUILDROOT/moodle-xs-1.9.5.xs1.15.g7c6a865-1.0.2.fc17.x86_64 '!=' / ']' + rm -rf /home/user/879879/user/BUILDROOT/moodle-xs-1.9.5.xs1.15.g7c6a865-1.0.2.fc17.x86_64 ++ dirname /home/user/879879/user/BUILDROOT/moodle-xs-1.9.5.xs1.15.g7c6a865-1.0.2.fc17.x86_64 + mkdir -p /home/user/879879/user/BUILDROOT + mkdir /home/user/879879/user/BUILDROOT/moodle-xs-1.9.5.xs1.15.g7c6a865-1.0.2.fc17.x86_64 + cd moodle-xs-1.9.5.xs1.15.g7c6a865 + LANG=C + export LANG + unset DISPLAY + mkdir -p /home/user/879879/user/BUILDROOT/moodle-xs-1.9.5.xs1.15.g7c6a865-1.0.2.fc17.x86_64/var/www/moodle/web + mkdir -p /home/user/879879/user/BUILDROOT/moodle-xs-1.9.5.xs1.15.g7c6a865-1.0.2.fc17.x86_64/var/lib/moodle + mkdir -p /home/user/879879/user/BUILDROOT/moodle-xs-1.9.5.xs1.15.g7c6a865-1.0.2.fc17.x86_64/var/log/moodle + mkdir -p /home/user/879879/user/BUILDROOT/moodle-xs-1.9.5.xs1.15.g7c6a865-1.0.2.fc17.x86_64/etc/moodle/conf.d + cp -a Makefile README.txt admin auth backup blocks blog build-version calendar course enrol error file.php files filter grade group help.php index.php install iplookup lang lib local login message mnet mod my notes pix question rpm rss search sso tag theme user userpix version.php /home/user/879879/user/BUILDROOT/moodle-xs-1.9.5.xs1.15.g7c6a865-1.0.2.fc17.x86_64/var/www/moodle/web + rm /home/user/879879/user/BUILDROOT/moodle-xs-1.9.5.xs1.15.g7c6a865-1.0.2.fc17.x86_64/var/www/moodle/web/README.txt + rm -fr /home/user/879879/user/BUILDROOT/moodle-xs-1.9.5.xs1.15.g7c6a865-1.0.2.fc17.x86_64/var/www/moodle/web/install + install -p -D -m 0644 rpm/moodle.conf /home/user/879879/user/BUILDROOT/moodle-xs-1.9.5.xs1.15.g7c6a865-1.0.2.fc17.x86_64/etc/httpd/conf.d/moodle.conf + install -p -D -m 0644 rpm/moodle-config.php /home/user/879879/user/BUILDROOT/moodle-xs-1.9.5.xs1.15.g7c6a865-1.0.2.fc17.x86_64/var/www/moodle/web/config.php + install -p -D -m 0644 rpm/moodle.cron /home/user/879879/user/BUILDROOT/moodle-xs-1.9.5.xs1.15.g7c6a865-1.0.2.fc17.x86_64/etc/cron.d/moodle + install -p -D -m 0644 rpm/moodle.logrotate /home/user/879879/user/BUILDROOT/moodle-xs-1.9.5.xs1.15.g7c6a865-1.0.2.fc17.x86_64/etc/logrotate.d/moodle + install -p -D -m 0755 rpm/moodle-cron /home/user/879879/user/BUILDROOT/moodle-xs-1.9.5.xs1.15.g7c6a865-1.0.2.fc17.x86_64/usr/sbin/moodle-cron + install -p -D -m 0755 rpm/moodle.init /home/user/879879/user/BUILDROOT/moodle-xs-1.9.5.xs1.15.g7c6a865-1.0.2.fc17.x86_64/etc/rc.d/init.d/moodle + rm -fr /home/user/879879/user/BUILDROOT/moodle-xs-1.9.5.xs1.15.g7c6a865-1.0.2.fc17.x86_64/var/www/moodle/web/rpm + rm /home/user/879879/user/BUILDROOT/moodle-xs-1.9.5.xs1.15.g7c6a865-1.0.2.fc17.x86_64/var/www/moodle/web/Makefile + find /home/user/879879/user/BUILDROOT/moodle-xs-1.9.5.xs1.15.g7c6a865-1.0.2.fc17.x86_64 -name '*.mimetex-*' -exec rm '{}' ';' + find /home/user/879879/user/BUILDROOT/moodle-xs-1.9.5.xs1.15.g7c6a865-1.0.2.fc17.x86_64 -size 0 -name '*.sql' -exec rm '{}' ';' + /usr/lib/rpm/find-debuginfo.sh --strict-build-id /home/user/879879/user/BUILD/moodle-xs-1.9.5.xs1.15.g7c6a865 + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Processing files: moodle-xs-1.9.5.xs1.15.g7c6a865-1.0.2.fc17.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.uVhMBB + umask 022 + cd /home/user/879879/user/BUILD + cd moodle-xs-1.9.5.xs1.15.g7c6a865 + DOCDIR=/home/user/879879/user/BUILDROOT/moodle-xs-1.9.5.xs1.15.g7c6a865-1.0.2.fc17.x86_64/usr/share/doc/moodle-xs-1.9.5.xs1.15.g7c6a865 + export DOCDIR + /usr/bin/mkdir -p /home/user/879879/user/BUILDROOT/moodle-xs-1.9.5.xs1.15.g7c6a865-1.0.2.fc17.x86_64/usr/share/doc/moodle-xs-1.9.5.xs1.15.g7c6a865 + cp -pr README.txt /home/user/879879/user/BUILDROOT/moodle-xs-1.9.5.xs1.15.g7c6a865-1.0.2.fc17.x86_64/usr/share/doc/moodle-xs-1.9.5.xs1.15.g7c6a865 + exit 0 warning: File listed twice: /var/www/moodle/web/config.php Provides: config(moodle-xs) = 1.9.5.xs1.15.g7c6a865-1.0.2.fc17 moodle-xs = 1.9.0 perl(AlgParser) perl(AlgParserWithImplicitExpand) perl(Expr) perl(ExprWithImplicitExpand) Requires(interp): /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /bin/sh /sbin/chkconfig pwgen Requires(preun): /bin/sh /sbin/chkconfig /sbin/service Requires: /bin/bash /bin/sh /usr/bin/perl /usr/bin/php perl(HTML::Entities) Conflicts: moodle <= 2.5.0 Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/user/879879/user/BUILDROOT/moodle-xs-1.9.5.xs1.15.g7c6a865-1.0.2.fc17.x86_64 Wrote: /home/user/879879/user/RPMS/noarch/moodle-xs-1.9.5.xs1.15.g7c6a865-1.0.2.fc17.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.s9o8IY + umask 022 + cd /home/user/879879/user/BUILD + cd moodle-xs-1.9.5.xs1.15.g7c6a865 + exit 0 $ rpm -qpl RPMS/noarch/moodle-xs-1.9.5.xs1.15.g7c6a865-1.0.2.fc17.noarch.rpm |grep -c var 5831 $ rpm -qpl RPMS/noarch/moodle-xs-1.9.5.xs1.15.g7c6a865-1.0.2.fc17.noarch.rpm |grep var |head /var/lib/moodle /var/log/moodle /var/www/moodle /var/www/moodle/web /var/www/moodle/web/admin /var/www/moodle/web/admin/antitheft.html /var/www/moodle/web/admin/antitheft.php /var/www/moodle/web/admin/auth.php /var/www/moodle/web/admin/auth_config.php /var/www/moodle/web/admin/block.php $ head -n 2 SPECS/moodle-xs.spec %define moodlewebdir %{_var}/www/moodle/web %define moodledatadir %{_var}/lib/moodle ##################### Also I was able to build a RPM and install it with a fedora-17-i386 mock environment. Here are some of the files within /var: ##################### # ls -ld /var/lib/mock/fedora-17-i386-user/root/var/www/moodle/ drwxr-xr-x. 3 root root 4096 Nov 29 16:33 /var/lib/mock/fedora-17-i386-user/root/var/www/moodle/ # ls -ld /var/lib/mock/fedora-17-i386-user/root/var/lib/moodle/ drwxr-xr-x. 2 48 48 4096 Nov 29 16:32 /var/lib/mock/fedora-17-i386-user/root/var/lib/moodle/ ##################### How are you creating this RPM and are you still having issues? -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ package-review mailing list package-review@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/package-review