Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 104275 - www-apps/moodle: version bump
Summary: www-apps/moodle: version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL: http://moodle.org/
Whiteboard:
Keywords: EBUILD, InOverlay
: 135892 139229 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-08-30 08:41 UTC by Christian
Modified: 2010-08-21 18:30 UTC (History)
11 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
moodle-1.5.2.ebuild (moodle-1.5.2.ebuild,585 bytes, text/plain)
2005-09-02 09:26 UTC, Chris Bainbridge (RETIRED)
Details
moodle-1.5.2-r1.ebuild (moodle-1.5.2-r1.ebuild,1.19 KB, text/plain)
2005-09-10 08:23 UTC, Tomoyuki Sakurai (RETIRED)
Details
README.gentoo (README.gentoo,323 bytes, text/plain)
2005-09-10 08:24 UTC, Tomoyuki Sakurai (RETIRED)
Details
moodle-1.5.2-r1.ebuild (moodle-1.5.2-r1.ebuild,1.18 KB, text/plain)
2005-09-10 08:34 UTC, Tomoyuki Sakurai (RETIRED)
Details
moodle-1.9.3.ebuild Just renamed the ebuild and changed the download location. Works fine for me (moodle-1.9.3.ebuild,1.23 KB, text/plain)
2008-11-16 09:38 UTC, Momesso Andrea
Details
The ebuild (moodle-1.9.9.ebuild,2.79 KB, text/plain)
2010-07-17 12:45 UTC, Anthony Basile
Details
Postinstall instructions if a database was selected (postinstall-en.txt,4.51 KB, text/plain)
2010-07-17 12:46 UTC, Anthony Basile
Details
Postinstall instructions if no database (or multiple databases) are selected (postinstall-nodb-en.txt,171 bytes, text/plain)
2010-07-17 12:47 UTC, Anthony Basile
Details
Gentoo-ish config.php file (config.php,718 bytes, text/plain)
2010-07-17 12:47 UTC, Anthony Basile
Details
Package metadata (metadata.xml,255 bytes, text/plain)
2010-07-17 12:48 UTC, Anthony Basile
Details
Attempted install of moodle-1.9.9 (www-apps:moodle-1.9.9:20100821-170825.log,2.47 KB, text/plain)
2010-08-21 17:31 UTC, Jan Vandermeer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian 2005-08-30 08:41:34 UTC
Moodle is a open source course management system, I would like portage to have it

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2005-08-30 09:16:20 UTC
Hmm, "connection refused" for moodle.org, not a good sign.
Comment 2 Chris Bainbridge (RETIRED) gentoo-dev 2005-09-02 09:26:23 UTC
Created attachment 67493 [details]
moodle-1.5.2.ebuild

moodle.org works fine for me, try checking your network setup.

I've attached an initial ebuild. Unfortunately it takes over 30 mins to emerge
because webapp-config is really slow! So it doesn't look practical to have an
ebuild for this package at the moment...
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-09-02 21:12:22 UTC
@chrb: Hint: Putting chrb@gentoo.org, stuart@gentoo.org, web-apps@gentoo.org to
Add CC at the same time generates two bugspams less. ;p
Comment 4 Tomoyuki Sakurai (RETIRED) gentoo-dev 2005-09-10 08:23:11 UTC
Created attachment 68117 [details]
moodle-1.5.2-r1.ebuild

-r1 with small improvements
Comment 5 Tomoyuki Sakurai (RETIRED) gentoo-dev 2005-09-10 08:24:12 UTC
Created attachment 68118 [details]
README.gentoo

short rtfm message
Comment 6 Tomoyuki Sakurai (RETIRED) gentoo-dev 2005-09-10 08:34:58 UTC
Created attachment 68122 [details]
moodle-1.5.2-r1.ebuild

fixed silly mistake
Comment 7 Tomoyuki Sakurai (RETIRED) gentoo-dev 2005-11-29 21:29:41 UTC
tcsh's time shows that the latest webapp-config improved its speed.
with webapp-config-1.50.1, it installs more than 12,000 files

# time emerge www-apps/moodle
384.429u 113.666s 10:41.26 77.6%        0+0k 0+0io 526pf+0w

in 10 min. the CPU is PIII 800Mhz with 256MB RAM, the HDD is 7200 rpm, 80G, PATA.
Comment 8 Renat Lumpau (RETIRED) gentoo-dev 2006-01-05 08:44:10 UTC
moodle is now in our unofficial overlay:
http://svn.gnqs.org/projects/gentoo-webapps-overlay/browser

Please note that the overlay is unofficial, not a Gentoo project, and not
supported. It is intended to provide easier access to new web applications.
Comment 9 Chris Bainbridge (RETIRED) gentoo-dev 2006-01-05 12:49:00 UTC
I didn't even know there was such a thing. What is the timescale for inclusion into the real portage tree?
Comment 10 Gunnar Wrobel (RETIRED) gentoo-dev 2006-01-05 13:09:39 UTC
The overlay was created last month and has not yet been "officially" announced. 

The requirements for inclusion of an ebuild into the main portage tree are stated here: 
http://svn.gnqs.org/projects/gentoo-webapps-overlay/wiki/HowToGetYourEbuildIntoPortage

The main blocker is usually "a Gentoo dev willing to maintain the package".
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2006-06-07 04:20:23 UTC
*** Bug 135892 has been marked as a duplicate of this bug. ***
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2006-07-04 15:35:53 UTC
*** Bug 139229 has been marked as a duplicate of this bug. ***
Comment 13 Renat Lumpau (RETIRED) gentoo-dev 2006-07-06 16:27:30 UTC
reopening for version bump request
Comment 14 Renat Lumpau (RETIRED) gentoo-dev 2006-07-09 14:34:22 UTC
1.6 is in the overlay. At this time, I don't really want to add an svn ebuild.
Comment 15 Momesso Andrea 2008-11-16 09:38:44 UTC
Created attachment 171950 [details]
moodle-1.9.3.ebuild

Just renamed the ebuild and changed the download location.

Works fine for me
Comment 16 Gunnar Wrobel (RETIRED) gentoo-dev 2008-12-07 07:48:25 UTC
Lets reopen. I think this one should be available in portage.
Comment 17 simon 2009-07-20 23:50:06 UTC
modified ebuild from Comment #15 works here for moodle-1.9.5+ (weekly cvs build downloaded manually).
Would be nice to see it in portage soon.
Comment 18 Alex Legler (RETIRED) archtester gentoo-dev Security 2010-04-01 15:24:01 UTC
There has been a vulnerability report for moodle:
http://docs.moodle.org/en/Moodle_1.9.8_release_notes

* MSA-10-0001 Vulnerability in KSES text cleaning
* MSA-10-0002 XSS vulnerabilty in the phpcas module
* MSA-10-0003 Disclosure of full user names
* MSA-10-0004 Improved access control in course restore
* MSA-10-0005 Incorrect validation of forms data
* MSA-10-0006 SQL injection in Wiki module
* MSA-10-0007 Reflective Cross Site Scripting (XSS) in the Moodle Global Search Engine
* MSA-10-0008 Persistent XSS when using Login-as feature
* MSA-10-0009 Session fixation prevention now turned on by default

Please ensure that these issues are fixed before the package is added to the tree. Thanks
Comment 19 Anthony Basile gentoo-dev 2010-07-15 02:45:34 UTC
I take this one if no one else wants to maintain it.  My institution makes heavy use of moodle.  I'm working on an ebuild now and should have it done in a few days.  I'll post here for review before putting it on the tree.  I want to do a bit more with prep of the db than the previously posted ebuilds.
Comment 20 Anthony Basile gentoo-dev 2010-07-17 12:44:41 UTC
Okay, I've got an ebuild written and tested.  Its on my overlay.  For those who don't have access, I'll attach the components here.

@web-apps: is it okay if I maintain this one?  Unless you guys want otherwise, I'll put it in no-herd and me as the maintainer --- taking full responsibility.
Comment 21 Anthony Basile gentoo-dev 2010-07-17 12:45:35 UTC
Created attachment 239129 [details]
The ebuild
Comment 22 Anthony Basile gentoo-dev 2010-07-17 12:46:20 UTC
Created attachment 239131 [details]
Postinstall instructions if a database was selected
Comment 23 Anthony Basile gentoo-dev 2010-07-17 12:47:08 UTC
Created attachment 239133 [details]
Postinstall instructions if no database (or multiple databases) are selected
Comment 24 Anthony Basile gentoo-dev 2010-07-17 12:47:49 UTC
Created attachment 239135 [details]
Gentoo-ish config.php file
Comment 25 Anthony Basile gentoo-dev 2010-07-17 12:48:18 UTC
Created attachment 239137 [details]
Package metadata

Taking full responsibility.
Comment 26 Anthony Basile gentoo-dev 2010-07-19 14:07:31 UTC
In the tree.
Comment 27 Jan Vandermeer 2010-08-21 17:31:25 UTC
Created attachment 243917 [details]
Attempted install of moodle-1.9.9

So I tried to install moodle-1.9.9 and received this as an error message. I have tried to manually install the config.php and played with various configurations of using the config.php from 1.9.3 where I made some progress but eventually after several step of the actual moodle install, at about when it asks for the preferred language and puts together a config.php, I grind to a halt. I'd like this to work, I have had moodle working with previous versions and it seems that it might be an easy fix but I am at a loss.

So I have included below the error message from

emerge =moodle-1.9.9

and per instructions the output of 

emerge --info =www-apps/moodle-1.9.9'  and
emerge -pqv =www-apps/moodle-1.9.9'

Any assistance / directions would be appreciated.

Jan Vandermeer

* ebuild fault: file '/usr/share/webapps/moodle/1.9.9/htdocs/config.php' not found
 * Please report this as a bug at http://bugs.gentoo.org/
 * ERROR: www-apps/moodle-1.9.9 failed:
 *   ebuild fault: file '/usr/share/webapps/moodle/1.9.9/htdocs/config.php' not found
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_install
 *   environment, line 3442:  Called webapp_configfile '/usr/share/webapps/moodle/1.9.9/htdocs/config.php'
 *   environment, line 4185:  Called webapp_checkfileexists '/usr/share/webapps/moodle/1.9.9/htdocs/config.php' '/var/tmp/portage/www-apps/moodle-1.9.9/image/'
 *   environment, line 4176:  Called die
 * The specific snippet of code:
 *           die "$msg";
 * 
 * If you need support, post the output of 'emerge --info =www-apps/moodle-1.9.9',
 * the complete build log and the output of 'emerge -pqv =www-apps/moodle-1.9.9'.
 * This ebuild is from an overlay: '/usr/local/portage/'
 * The complete build log is located at '/var/log/emerge-logs/www-apps:moodle-1.9.9:20100821-170825.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-apps/moodle-1.9.9/temp/environment'.
 * S: '/var/tmp/portage/www-apps/moodle-1.9.9/work/moodle'

>>> Failed to emerge www-apps/moodle-1.9.9, Log file:

>>>  '/var/log/emerge-logs/www-apps:moodle-1.9.9:20100821-170825.log'

 * Messages for package www-apps/moodle-1.9.9:

 * (server owned) hostroot/moodle
 * ebuild fault: file '/usr/share/webapps/moodle/1.9.9/htdocs/config.php' not found
 * Please report this as a bug at http://bugs.gentoo.org/
 * ERROR: www-apps/moodle-1.9.9 failed:
 *   ebuild fault: file '/usr/share/webapps/moodle/1.9.9/htdocs/config.php' not found
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_install
 *   environment, line 3442:  Called webapp_configfile '/usr/share/webapps/moodle/1.9.9/htdocs/config.php'
 *   environment, line 4185:  Called webapp_checkfileexists '/usr/share/webapps/moodle/1.9.9/htdocs/config.php' '/var/tmp/portage/www-apps/moodle-1.9.9/image/'
 *   environment, line 4176:  Called die
 * The specific snippet of code:
 *           die "$msg";
 * 
 * If you need support, post the output of 'emerge --info =www-apps/moodle-1.9.9',
 * the complete build log and the output of 'emerge -pqv =www-apps/moodle-1.9.9'.
 * This ebuild is from an overlay: '/usr/local/portage/'
 * The complete build log is located at '/var/log/emerge-logs/www-apps:moodle-1.9.9:20100821-170825.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-apps/moodle-1.9.9/temp/environment'.
 * S: '/var/tmp/portage/www-apps/moodle-1.9.9/work/moodle'


emerge --info =www-apps/moodle-1.9.9
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.11.2-r0, 2.6.32-gentoo-r4 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.32-gentoo-r4-x86_64-AMD_Sempron-tm-_Processor_2800+-with-gentoo-2.0.1
Timestamp of tree: Tue, 17 Aug 2010 21:50:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.4.4-r13, 2.5.2-r7, 2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.5, 1.6.3-r1, 1.7.9-r2, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.1.2, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm AdobeFlash-9.0.31.0 AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans"
GENTOO_MIRRORS="ftp://gentoo.arcticnetwork.ca/pub/gentoo/ http://gentoo.arcticnetwork.ca/ http://gentoo.gossamerhost.com rsync://gentoo.gossamerhost.com/gentoo-distfiles/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_CA.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync21.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gnutls gpm gtk hal iconv ipv6 jpeg lcms ldap libnotify mad midi mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp oss pam pango pcre pdf perl png ppds pppd python qt3support qt4 readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

emerge -pqv =www-apps/moodle-1.9.9
[ebuild  NS   ] www-apps/moodle-1.9.9 [1.9.3] USE="imap ldap mysql odbc -postgres -radius -vhosts"
Comment 28 Anthony Basile gentoo-dev 2010-08-21 18:30:01 UTC
(In reply to comment #27)
> Created an attachment (id=243917) [details]
> Attempted install of moodle-1.9.9
> 
> So I tried to install moodle-1.9.9 and received this as an error message. I

Hi Jan, this bug was for getting the moodle ebuild into the tree and has been closed.  We should really open another bug for your problem.  Having said that, I'm going to try to reproduce your issue.

Can you also try to emerge moodle-1.9.9-r1 recently added to the tree?  If you hit the problem again, open up a new bug and assign it to blueness@gentoo.org.

Thanks :)