Showing 81 - 90 of 699 Postings (
summary)
Created by OpenACS community, last modified by Gustaf Neumann 06 Oct 2019, at 12:54 PM
Current topic: What approach should we use to upgrade the documentation?
Here are some recent approaches expressed in one form or another for managing the documentation in the context of "the plan":
Approach 0. Why not use docbook, which was the previous way documentation was being handled?
- docbook is open-source.
- A growing community surrounds DocBook (has mailing lists)
- A number of free and commercial tools are available for editing and publishing DocBook documents.
- docbook enables us to publish in a variety of formats.
- XML separates content from presentation: It relieves each contributor of the burden of presentation, freeing each writer to focus on content and sharing knowledge.
- docbook is well tested technology. It has been in development since the early 1990's).
problems: In 2002, Docbook still was not fully capable of representing online books as practiced by book publishers and expected from readers with regards to usability on the web. That meant DocBook did not entirely meet OpenACS publishing requirements at that time.
In 2004, Docbook released version 4.2, which complies with all the OpenACS publishing requirements. Producing a web friendly book hierarchy arguably remains DocBooks' weakest point. For example, a dynamically built document should be able to extract details of a specific reference from a bibliographic (table) and present a footnote at the point where referenced. DocBook 4.2 allows for this with bibliocoverage, bibliorelation, and bibliosource. Yet, OpenACS documentation does not follow a standard book hierarchy since most of the documentation was written before version 4.2, and re-organizing it in docbook source would be challenging.
Other problems with using docbook:
- Only developers can make changes, which makes it difficult for the rest of the community to coordinate changes and updates, especially when they are seemingly small (such as typos).
- OpenACS docbook has long documents, which puts extra stress on using consistent style to separate topics on the same page. For example, readers get confused when trying to follow the installation documents. Some instructions get missed, other instructions are done when they shouldn't have been.
- OpenACS docbook uses multiple tags for the same function and requires only certain tags to be used in certain contexts. The documentation in HTML is convoluted and displays inconsistent.
Based on the other recent suggestions, there seems to be a general consensus to move away from docbook, but perhaps keep the docbook organization.
Robert writes:
- First: ..attempt to take the rest of Documentation over to XoWiki..
- Secondly: ..try to setup an automated versioning system. We should end up with categories such as 5.2 Documentation, 5.3 Documentation, HEAD Documentation, etc. My current thinking is that we can work on HEAD category of documentation, once 5.3 is release it becomes categorized as such and a copy of the docs gets created and re-categorized as HEAD once again. This should allow versioning and easy upgrades/editing of docs (well easy may not be the right word, docs are a lot of work)
Robert, "Secondly" is how versioning has been accomplished using docbook. This method seems to work fine, and we can do it with xowiki docs by creating a set of static pages from the xowiki ones. --Torben
Approach 2
Robert writes:
Documentation: [move] ..the rest of the documents to XoWiki. The idea would be to have categorized documents. We would start by moving the 5.2 docs over and expanding on them. When 5.3 is release we would do an automated copy/paste of the 5.2 docs, re-categorize as 5.3 and start the editing process. This is just preliminary thinking at this point..
Robert, everyone seems to have their own way of slicing and dicing docs into categories. We ought to use the existing documentation requirements to guide how the documents are organized, and then they can be categorized any number of ways since multiple categories can be applied to each page. --Torben
Approach 3 (and previously 5). Refactoring original docbook docs en:New_Documentation_Process
STAGE A: CONVERT DOCUMENTATION TO XOWIKI (note: all api docs remain the same) Step #1. Catalog the current documentation.
(Malte writes) ..modify the script Gustaf provided to import the whole documentation in one go into a new XoWiki instance with the structure (page_order) that has been added in XoWiki 0.42 taken from the chapters of the documentation so that we do have an exact mirror of the documentation as it stands now. [Done, see https://openacs.org/test-doc].
Malte, why would we want an exact mirror of something that is not organized well.. too many topics per page and pages inconsistently presented.. requires a new reader to jump around to get familiarized with material. etc etc? Why not copy the docbook contents into a cleaner outline and work from there (as in approach 3 above)? --Torben
Torben, the /doc section is organized. That you do not like it is obvious and we could rework it later, but until we have the resource to rewrite the whole documentation, it makes much more sense to improve the documentation we have instead of putting it into the graveyard. And we need to come to terms. This discussion does not yield any results at the moment but keep us from doing the actual work: Improving the documentation -- Malte
[Then] ..assign categories to the documentation, allowing for an alternative view on the documents (so you could say "instead of showing the whole documentation only show the documents for a specific category"). Probably this needs some more detailed discussion with Gustaf finding out how this could be achieved in XoWIKI and what would make most sense. Ideally we could provide a different structure based on the target group (e.g. category) but this is probably shooting too far. Getting categorization and page ordering in a decent shape should provide us a lot of possibilities..
Malte, have you seen docs-admin-toc , docs-end-user-toc and docs-eng? These are outlines of existing pages in XoWiki that represent a revised version of the Table of Contents (TOC) in the docbook version. Feel free to propose new pages there for us to fill in content. --Torben
Yes I have seen them. Do they resemble a book in any way to you? They are alternative structures, indeed, but you can impose them on a book view as well, any time. A book is what we need, something people can go to and start reading. If the book starts with four different pages, each outlining a different reading path, even the better. But a book it should be nevertheless, because this is how people still learn. If you do not like the book approach, that is fine, then we should open this question up for a TIP. My main goal at the moment is to finally get this done and start working. And I want to get rid of the myriads of confusing advise given at openacs.org. I have someone to work with me on that in the next two months and I want to have a clear way to go forward. So I will just TIP this. -- Malte
See also: en:wikidoc-notice
This approach was originally posted at en:Documentation_Project. It was moved here as the topic expanded.
..port docbook pages to xowiki manually.. look at each part in detail.. separate to subsystems and how they are used (context). Why?
"..the human mind can only deal with a relatively small number of independent pieces of data at one time, but if data are chunked together in appropriate ways, the mind can perform higher order abstractions, and these in turn can be chunked together, with successive abstractions, until an entire complex situation is encompassed. The systems approach addresses this property of the human mind by providing strategies for the data gathering, chunking, and abstracting process." George G. Lendaris, On Systemness and the Problem Solver: Tutorial comments 1983.
A short video on how the mind deal best with large amounts of information by "chunking": The Science of Thinking
This work is in progress, with root documentation page here: en:openacs-handbook
A systems strategy of multiple perspectives has these rules:
- Each xowiki page discusses a single topic.
- Topics are linked together by any number of other xowiki pages to present an ordered presentation of the topics with a common thread/topic connecting them. For example, en:openacs-system-install is a page that links together the topics of installing the component software of OpenACS. Similarly, each component software, such as en:aolserver, has its own view of some overlapping topics.
Multiple perspectives meets these significant documentation requirements:
- helps identify subsystems and how OpenACS works --becomes a natural tutorial without more words.
- reduces the burden of keeping documentation up to date since there is only one place to put relevant information for a particular topic --no redundancy
- pages are not organized by a dominant category morphology that tends to address the perspectives of just a few people. Most any perspective can be represented.
- Readers do not have to filter out a bunch of information that is irrelevant to them or their task at hand.
Move all but maybe the first and last 2 items from https://openacs.org/doc/dev-guide.html to https://openacs.org/doc/acs-kernel/ (and what ever else is relevant to kernel only); and move the first item to https://openacs.org/doc/acs-admin etc. That way the core docs are presented in a consistent context with the other packages. Also, do not migrate these docs around as a package is designated part of the core (or subsequently removed from it). This would help developers see appropriate context (and meets one of the documentation requirements).
Allow documentation to link directly to the api-docs, to reduce redundancy and links go to current, local API docs. In other words, https://openacs.org/api-doc/package-view?version_id=358136 becomes: /api-doc/index?about_package_key=acs-datetime The feature has been added to OpenACS 5.3 so will be released soon.[DONE]
Move Administrator's Guide to the xowiki [in progress, see en:docs-admin and en:docs-admin-toc ], because this section:
- has the most duplicated work (topics overlap on various pages). For example, more than one page explains how to add a package, how to restart the server, how to start the server etc.
- needs to be updated most frequently because of changing installation requirements. For example, PostgreSQL requires different instructions for different revisions, external links change sporadically etc.
Incorporate the work already done in the first wiki ( https://openacs.org/wiki ), where volunteers have already added a wealth of new documentation. Note that some of this will already exist in xowiki from previous importing of docs etc. [TO DO]
We need to get rid of the myriads of different installation instructions. First of all they are not kept up to date (all of them). -- Malte
Created by Carl Robert Blesius, last modified by Gustaf Neumann 26 Sep 2019, at 08:36 PM
- Accessible and semantic layout/design (first priority)
- Layout for screen reader readability
- Consistent CSS for all packages with inheritance where possible
- Package specific CSS only where absolutely necessary
- Remove as many images as possible
- Totally simplified CSS scheme
- Consistent deprecation
- Support for 4 font sizes without UI breakup
- File path re-factoring so designers can easily skin a local installation and upload zip file with local styles for sharing accross installations
- A theme page that includes as many existing adp chunks and form templates as possible.
- Theme manager that allows a designer to upload a css file and immediately test it against the theme page.
- One style for screen, one for print, and one for mobile
Discussion
0. Why not OpenACS Zen? I think this needs to apply across the toolkit for any package, not just .LRN ones, or there will forever be problems as new applications come out for OpenACS, and are later adopted for .LRN. DaveB, we are going to start with .LRN b/c it contains a limited number of packages and also because there is an accessibility push in the project. A big portion of this will also be defining best practices. CarlB
1. I agree with Carl. I have been working through some of this on our own generic OpenACS installs here but would love to co-ordinate with others. Robert.
2. I also will help out. I have several tools available and will look at what is redundant and post soon. Jon Griffin
3. Please consider expanding the scope of the guidelines to include OpenACS and similar efforts underway at Interface / CSS Coding Guidelines. Accessibility etc. is important for the entire toolkit and long overdue. -Torben
Created by Ryan Gallimore, last modified by Gustaf Neumann 26 Sep 2019, at 08:34 PM
not to be confused with messages
Preliminary Specs for private-messaging package
Send a message or invite any online user from a textbox located at the top of every screen.
- User/Subsite Group selection widget.
- AJAX filter-as-you-type search "Smart Search"
- Confirmation for sending to entire subsite group.
- Message textbox
- Audio alert upon incoming message
"User is now online" messages.
- Incoming messages field with history (dropdown window)
- Send message to new online user via a link in history window
Users can block unwanted users or ignore all messages.
- "Block User" button
- "Unblock User" button
- "Ignore all messages"
- "Accept all messages" (except those from blocked users)
Created by Ryan Gallimore, last modified by Gustaf Neumann 26 Sep 2019, at 08:27 PM
As root:
OPENACS_SERVICE_NAME=service1 # Name your service
export $OPENACS_SERVICE_NAME
groupadd web
useradd -g web $OPENACS_SERVICE_NAME mkdir /var/lib/aolserver
cd /var/lib/aolserver
# Download latest tarball:
>> wget [URL to latest tarball]
>> tar xzvf [tarball.tar.gz]
>> mv [tarball_dir] $OPENACS_SERVICE_NAME
# OR, checkout from CVS. Replace oacs-5-4 with the branch of your choice.
>> cvs -d:pserver:anonymous@cvs.openacs.org/cvsroot checkout -r oacs-5-4 acs-core
>> mv openacs-4 $OPENACS_SERVICE_NAME
chown -R $OPENACS_SERVICE_NAME.web /var/lib/aolserver/$OPENACS_SERVICE_NAME chmod -R 770 /var/lib/aolserver/$OPENACS_SERVICE_NAME
# PostgreSQL 8.x
service postgresql stop yum -y remove postgresql # Download the PG rpm
# Initialize the Cluster
service postgresql initdb
# Start the service
service postgresql start
# Start pg on boot
chkconfig postgresql on
# Change postgresql.conf
# AOLServer
Try the AOLServer 4.5 page. The archive download works well
(but uses sources from 2006).
# Daemontools should now be installed, so let's set it up to start, stop and restart AOLServer
cd /service
ln -s /var/lib/aolserver/$OPENACS_SERVICE_NAME/etc/daemontools $OPENACS_SERVICE_NAME
# Daemontools will no scan the etc/daemontools directory and find the run script.
Read this for more information on Daemontools commands
# Modify the etc/daemontools/run script for your ip, user and group. Note the -b IP:PORT flag that # must be added for privileged ports.
# Modify etc/config.tcl to match your hostname and IP. aolserver director should be /usr/local/aolserver
# avoid pid not found errors in the log
chown -R $OPENACS_SERVICE_NAME.web /usr/local/aolserver/log
chmod -R 775 /usr/local/aolserver/log
# Start the server!
svc -u /service/$OPENACS_SERVICE_NAME
# Watch the log for errors:
tail -f /var/lib/aolserver/$OPENACS_SERVICE_NAME/log/error.log
If successful, call up the site URL and install the data model.
# Done!
Created by Adrian Catalan, last modified by Gustaf Neumann 26 Sep 2019, at 08:20 PM
Tools required for the development
The following packages come with the standard Debian installation, so you probably have them already. Still, you should check with `dpkg -s <package>`.
-
make
usually creation of a program takes several steps, so rather than having to type out the same commands over and over again, you can use this program to automate the process, creating `Makefile's.
You'll probably want to install the following packages, too:
Initial debianization
Please note that you should run dh_make only once, and that it won't behave correctly if you run it again in the same, already "debianized", directory.
Make sure you're in the program source directory, and issue this:
dh_make -e your.maintainer@address -f ../openacs-5.1.5.tar.gz
Of course, replace the string "your.maintainer@address" with your e-mail address for inclusion in the changelog entry and other files.
Some information will come up. It will ask you what sort of package you want to create. Gentoo is a single binary package - it creates only one binary, and thus one .deb file - so we will select the first option, with the `s' key, check the information on the screen and confirm by pressing <enter>.
After this execution of dh_make, a copy of the upstream tarball is created as openacs-5.1.5.orig.tar.gz in the parent directory to accommodate the creation of the non-native Debian source package with the diff.gz
Debian release
Let's say that a bug report was filed against your package and it describes a problem that you can solve. To create a new Debian revision of the package, you need to:
- Correct the problem in the package source, of course.
- Add a new revision at the top of the Debian changelog file, for example with `dch -i`, or explicitly with `dch -v <version>-<revision>' and then insert the comments using your preferred editor.
Tip: how to easily get the date in required format? Use `822-date', or `date -R'.
Include a short description of the bug and the solution in the changelog entry.
- Repeat a complete rebuild of the package.
New upstream release
Let's consider a different, slightly more complicated situation - a new upstream version was released, and of course you want it packaged. You need to do the following:
- Download the new sources and put the tarball (e.g. named `openacs.5.2.1.tar.gz') in the directory above the old source tree (e.g. ~/openacs/).
- Enter the old source directory, and run:
uupdate -u openacs.5.2.1.tar.gz
uupdate will properly rename that tarball, try to apply all the changes from your previous .diff.gz file, and update the new debian/changelog file.
- Change directory to `../openacs.5.2.1', the new package source tree, and repeat a complete rebuild of the package
Complete rebuild
Enter the program's main directory and then issue this command:
dpkg-buildpackage -rfakeroot
This will do everything for you. It will:
- clean the source tree (debian/rules clean), using fakeroot
- build the source package (dpkg-source -b)
- build the program (debian/rules build)
- build the binary package (debian/rules binary), using fakeroot
- sign the source .dsc file, using gnupg
- create and sign the upload .changes file, using dpkg-genchanges and gnupg
The only input that will be required of you is your GPG key secret pass phrase, twice.
After all this is done, you will see the following files in the directory above (~/openacs/):
- openacs_5.1.5.orig.tar.gz
This is the original source code tarball, merely renamed to the above so that it adheres to the Debian standard. Note that this was created using the `-f' option to dh_make when we initially ran it.
This is a summary of the contents of the source code. The file is generated from your `control' file, and is used when unpacking the source with dpkg-source. This file is GPG signed, so that people can be sure that it's really yours.
This compressed file contains each and every addition you made to the original source code, in the form known as "unified diff". It is made and used by dpkg-source. Warning: if you don't name the original tarball packagename_version.orig.tar.gz, dpkg-source will fail to generate the .diff.gz file properly!
If someone else wants to re-create your package from scratch, they can easily do so using the above three files. The extraction procedure is trivial: just copy the three files somewhere else and run dpkg-source -x openacs_5.1.5.dsc.
This is your completed binary package. You can use dpkg to install and remove this just like any other package.
- openacs_5.1.5_i386.changes
This file describes all the changes made in the current package revision, and it is used by the Debian FTP archive maintenance programs to install the binary and source packages in it. It is partly generated from the `changelog' file and the .dsc file. This file is GPG signed, so that people can be sure that it's really yours.
Trivial repository construction
Trivial repositories consist of one root directory and of as many subdirectories as you wish. As the users have to specify the path to the root of the repository and the relative path between the root and the directory with the index files in it, you are free to do whatever you want (even to put everything into the root of the repository; then, the relative path will be simply “/”)
We'll create a trivial repository with two subdirectories
(your repository root)
|
|-binary
+-source
Creating Index Files
dpkg-scanpackages generates the Packages file and dpkg-scansources the Sources file.
They both send their output to stdout; thus, to generate compressed files, you can use a command chain like this one: dpkg-scanpackages arguments | gzip -9c > Packages.gz.
The two tools work the same way; they both take two arguments (in reality there are more, but I won't go into that here; you can read the manpages if you want to know more); the first the directory under which the packages are, and the second is the override file. We don't need override files for simple repositories, but as it is a required argument, we simply pass /dev/null.
dpkg-scanpackages scans the .deb packages; dpkg-scansources scans the .dsc files. It is thus necessary to put the .orig.gz, .diff.gz and .dsc files together. The .changes files are not needed.
$ cd my-repository
$ dpkg-scanpackages binary /dev/null | gzip -9c > binary/Packages.gz
$ dpkg-scansources source /dev/null | gzip -9c > source/Sources.gz
From Debian Maintainers' Guide, installer developed by Otto Solares updated by Adrián Catalán at Galileo University as a part of the E-LANE project
Related instructions for installing at:
Created by Caroline Meeks, last modified by Gustaf Neumann 25 Sep 2019, at 10:20 PM
url stub: /assessment/asm-admin/
url: http://mgh.zill.net/assessment/asm-admin/
Current: 
This is the "top level" it should have links to things that are potentially used in all Assessments.
I suggest the following links in class = button style along the top.
[[New Assessment]] | [[Display Types]] | Categories | Actions | Requests | Permissions | Documentation
- We don't need to repeat the word "Administer" we are on the administration page.
- Remove the QTI upload, it is another way to create a New Assessment so it should be an option after you click New Assessment.
- Remove Export and Permissions from the list of Assessments. Those are options that have to do with one assessment and should be on that assessment's admin page Assessment_one-a.
Assessment Listing
Display the list of assessments as a sortable table. We have moved some actions to the Assessment_one-a page so lets use that real estate to give people information that might help them find the Assessment they are interested in.
Title Last Modified By Last Modified Date Request Permission
Created by OpenACS community, last modified by Gustaf Neumann 25 Sep 2019, at 10:13 PM
This is Approach 4 of the en:Documentation_Project as defined in Documentation_Project_Discussion. Users benefit when they can read docs the way the brain likes to work. Contributions to various OpenACS topics that further the plan are welcome.
Background
See Documentation history
Goal
to write superb documentation, so that users, developers and administrators of OpenACS installations can enjoy working with and using the system (with fewer headaches! =)
Scope
OpenACS documentation, a systems view as a collection of subsystems and their parts.
API Documentation: there are no plans to move the API docs to XoWiki. That should remain as is.
DocBook docs at: https://openacs.org/doc/index.html are evolving separately at en:New_Documentation_Process
Requirements
Requirements is about setting specifications and milestones we can verify, and includes exploration of scenarios, use cases etc.
Here are documentation requirements for:
Available resources
- volunteers dedicated to regularly managing and updating the documentation
- other volunteers who contribute arguably more valuable documentation less frequently (such as magazine articles ;) (and may need some assistance etc. to have their work fit into docs well.)
- openacs.org website, including use of xowiki
- open-source software, text editors, spell checkers, HTML code validators etc.
- Approaches in docs management explored. See en:Documentation_Project_Discussion
Strategy
Strategy is about creating an approach to doing work. It guides behavior and tactical decisions on the work effort.
Shape ongoing documentation efforts by using principles of continual improvement and following general requirements to re-engineer documentation production and management.
OpenACS documentation development is subject to constraints of the software project development and release methods and cycles (the section called “Using CVS with OpenACS”). Essentially, all phases of work may be active to accommodate the asynchronous nature of multiple subprojects evolving by the efforts of a global base of participants with culturally diverse time references and scheduling idiosyncrasies.
The documentation strategy is to use methods that inspire collaborating or obtaining guidance or feedback (peer review) to distribute the workload and increase the overall value of output for the OpenACS project.
subdivide by subsystems and how they are used (context). Why?
"..the human mind can only deal with a relatively small number of independent pieces of data at one time, but if data are chunked together in appropriate ways, the mind can perform higher order abstractions, and these in turn can be chunked together, with successive abstractions, until an entire complex situation is encompassed. The systems approach addresses this property of the human mind by providing strategies for the data gathering, chunking, and abstracting process." George G. Lendaris, On Systemness and the Problem Solver: Tutorial comments 1983.
XoWiki docs can use a systems strategy of multiple perspectives to help identify subsystems and how OpenACS works.
Each XoWiki page discusses a single topic.
These topics are pieced together by any number of other xowiki pages to present an ordered presentation of the topics with a common thread/topic connecting them.
For example, en:openacs-system-install is a page that links together the topics of installing the component software of Openacs. Similarly, each component software, such as en:aolserver, has its own view of some overlapping topics.
XoWiki documents organized by subsystems (and how they are used) are easy to update and maintain since there is only one place to put relevant information for a particular topic.
Pages are not encumbered by a maze of categories that tend to only address one or a few perspectives, since pages link to related pages, and a page that addresses each perspective can link to overlapping topics.
In an ideal world, XoWiki will be able to export a page and all the pages that link to it, to any depth of the linkage tree, to form one document. That way, innumerable documents, each with a valid perspective, can be built for a specific purpose.
Work Breakdown Structure
Or Objectives and Key Results (OKRs) is about explicitly stating the way to implement the strategy as a set of milestones and the methods to use.
Allow document writers to reference package API via api-doc by using package_url, or find the local package_id so a link can be supplied from the local documentation to current, up-to-date API and SQL docs, like: https://openacs.org/api-doc/package-view?version_id=358136 use links like this: /api-doc/index?about_package_key=acs-datetime The feature has been added to cvs head (OpenACS 5.3.x) so will be released soon.[DONE]
Iterate through each topic on each docbook page.
- Port the docbook pages to xowiki manually, because it allows me to look at each part in details and separate to subsystem/object context. Here is the process:
- Browse to docbook url (something in this tree: https://openacs.org/doc/)
- View page source
- Copy the relevant part of source
- Paste that source to your favorite text editor (not word processor).
- Edit the page source, removing DIV tags and TARGET="_blank" attributes. Look for any immediate way to improve the document, make additional edits, check for spelling etc.
- In a browser, open or create the xowiki page. Choose "Source" to view source html. Be sure to make Name starting with "en:"
- Paste edited source into the xowiki page, repeat editing if needed
- Click "ok" to post the xowiki changes.
- That's it! (repeat)
Example documentation outline in wiki
These pages contain links to other pages where items are discussed in context:
These pages describe various OpenACS subsystems, and link to external documents where possible and appropriate. Note that an "OpenACS system" en:openacs-system page that outlines the system and ties these together is part of the end-user docs.
Auxiliary systems
| en:ide-emacs |
gnu emacs as IDE |
| [en:ide-emacs-nxml] |
gnu emacs nXML Mode |
| [en:ide-emacs-psgml] |
gnu emacs PSGML Mode |
| en:ide-vi |
vi/vim as IDE |
Verification
This is where we measure how well this plan was implemented. Success is measured by
- A) verifying if the project has met the established goals and requirements, and
- B) reviewing for ongoing problem areas etc.
Observations then help to modify the plan for the next documentation revision.
OpenACS follows verification through different means on different projects, but in all cases, the OpenACS community verifies the project as a success through feedback including bug reports, user and administrator comments, and code changes.
Related links and sources
https://www.divio.com/blog/documentation/
Created by Dirk Gomez, last modified by Gustaf Neumann 25 Sep 2019, at 10:05 PM
This page is mostly obsolete. Please refer to the newer guides for Ubuntu and Debian or the generic generic installer script.
Goal
Get all required software to run OpenACS into the next release of Ubuntu Server and Debian
Dates
- Debian: Dates are not published. Release cycle ~2 years. The required packages mostly exist already in unstable
- Ubuntu: Next Debian Import Freeze for the Hardy Heron (Ubuntu 8.04) release is December 13th 2007 at which point new versions of packages will be automatically imported from Debian unstable. After this date, packages will only be imported from Debian in this way by explicit request from a developer.
Prior Work
As far as we know to this point, there are several bodies of work, including Dirk Gomez's, Jim Lynch's, and some others. While our goal is to combine, for now I'll just put a list and as we begin to work together, we'll combine how we decide to.
- work of Jim Lynch
- A pair of scripts and some other stuff available as an arch repository (see applicable documentation on gnu arch and below for specifics on this project). Essentially, the plan is to package by taking everything in an openacs tarball except the packages/ dir, put that into a package called openacs-base, put each openacs package into its own package whose name is specified in the .info file and make a metapackage called openacs-core which installs all of the above.
- Overall, I want to be able to:
- feed an openacs tarball to one of these scripts and have it then generate a pile of debian packages which represent the entire tarball, and
- be able to package any openacs package that wouldn't otherwise come in (say) an openacs core tarball.
- Upon installation, there will be a script which builds a service by copying all of core into a dir specified in part by the user and in part based on the service name. In this process, the config file and startup scripts are established as well as the daemontools "run" script. A database for the service is created, and the service is started. From there, the new site admin will visit the site with the browser, fill out the form and hit "install data model" as is normal, and you end up with a running service after aolserver is hammered.
- All non-core packages can be built into debian packages as well, identically to the packaging of core packages.
- To get: (HI! Can someone besides me (jiml at cvs.openacs) see if this works?)
the archive's physical location is
http://jam.sessionsnet.org:7000/~jim/{archives}/jim@jsn.org--2004-pub
the archive name (valid once you register the archive) is
jim@jsn.org--2004-pub
and the category, branch and version is specified as
openacs-deb-packager--mainline--0.1
so you would feed the physical location to "tla register-archive", and then you can "tla get jim@jsn.org--2004-pub/openacs-deb-packager--mainline--0.1".
- combination (eventual goal hopefully)
List of Packages
The following table list the packages, and version, needed to install OpenACS 5.3/5.4 or .LRN 2.3/2.4
| Package |
Version in debian/etch |
Version in debian/sid (unstable) |
Recommended Version |
| aolserver4 |
4.0.10-7 |
4.5.0-14 |
-- |
| aolserver4-nspostgres |
4.0-3 |
4.0-4+b1 |
-- |
| aolserver4-nssha1 |
0.1-1 |
0.1-1.0.1 |
-- |
| aolserver4-nsxml |
1.5-1 |
1.5-1.0.1 |
NONE don't use nsxml |
| aolserver4-nsopenssl |
3.0beta22-3 |
3.0beta22-3+b1 |
-- |
| aolserver4-nscache |
1.5-1 |
1.5-1.0.1 |
-- |
| aolserver4-dev |
4.0.10-7 |
4.5.0-14 |
-- |
| tdom |
0.7.8-5 |
N.A. |
0.8.2 ?? |
| htmldoc |
1.8.27-2 |
1.8.27-2+b1 |
-- |
| tcllib |
1.8-1 |
1.10-dfsg-2 |
1.10 |
| daemontools-installer |
0.76-9.2 |
0.76-9.2 [contrib] |
-- |
| postgresql-8.1 |
8.1.9 |
postgresql-8.1 (8.1.10-1) AND postgresql (8.2.5-4) |
I think Ubuntu has 8.2 now |
| postgresql-client-8.1 |
8.1.9 |
postgresql-client-8.1 (8.1.10-1) AND postgresql-client (8.2.5-4) |
-- |
| postgresql-contrib-8.1 |
8.1.9 |
postgresql-contrib-8.1 (8.1.10-1) AND postgresql-contrib (8.2.5-4) |
-- |
| xotcl |
1.6.0 |
1.6.1 |
1.6.1 |
| tclthread |
20030827-2 |
2.6.5 |
2.6.5 |
Verifying installability on Debian 4rc3 sid/unstable
Basic installation steps for oacs-5-4 based on Debian 4rc3 unstable/sid:
- Existing binary dependencies in Debian 4rc3 unstable/sid repository (Feb 26, 2008)
~$ aptitude install tcllib postgresql-8.2 aolserver4 aolserver4-nscache aolserver4-nssha1 aolserver4-nspostgres tclthread tcllib
- Missing binary dependencies in Debian 4rc3 unstable/sid repository (Feb 26, 2008: tdom 0.8.x, xotcl):
a) tdom
# build dependencies: tdom
aptitude install tcl-dev aolserver4-dev
# fetch tdom 0.8.3
cd /tmp
cvs -z3 -d:pserver:anonymous@cvs.tdom.org:/usr/local/pubcvs co tdom
cd tdom/unix
# build tdom 0.8.3
../configure --enable-threads --disable-tdomalloc --prefix=/usr/lib/aolserver4 --exec-prefix=/usr/lib/aolserver4 --with-aolserver=/usr/include/aolserver4 --with-tcl=/usr/lib
make install
b) xotcl (based on forthcoming Debian distribution)
# fetch temporary i386 builds from http://media.wu-wien.ac.at/download/debian
wget http://media.wu-wien.ac.at/download/debian/xotcl_1.6.0-1_i386.deb
wget http://media.wu-wien.ac.at/download/debian/aolserver4-xotcl_1.6.0-1_i386.deb
# package install
dpkg -i xotcl_1.6.0-1_i386.deb
dpkg -i aolserver4-xotcl_1.6.0-1_i386.deb
- OpenACS as such ...
useradd oacs-5-4 mkdir /home/oacs-5-4 chown -R oacs-5-4.www-data /home/oacs-5-4 usermod -g web oacs-5-4 usermod -d /home/oacs-5-4 oacs-5-4
cd /home/oacs-5-4 cvs -d :pserver:anonymous@cvs.openacs.org:/cvsroot co -r oacs-5-4 openacs-4 mv openacs4/* . su - postgres createuser -U postgres -s oacs-5-4 exit su - oacs-5-4 createdb -E UNICODE -U oacs-5-4 oacs-5-4
4. Set PostgreSQL backward compatibility flags (in postgresql.conf)
5. Whatever remains to be done (aolserver instance, edit config.tcl, ...)
Findings/ Issues related to dependency ensemble
Resurrecting tDOM Debian Package
Access to Debian source package (via svn/svn-buildpackage)
- SVN Browser at Debian Tcl/Tk Repository
- Steps to get your local working copy and build it using svn-buildpackage:
# 1. svn checkout to <current_dir>/tdom svn co svn://svn.debian.org/svn/pkg-tcltk/tdom/ # 2. create a dir for the original tarballs mkdir tarballs (<current_dir>/tarballs) cd tarballs # grab the orig tarball from the link:
wget openacs.org/xowiki/file/tdom_0%2e8%2e3%2eorig%2etar%2egz?m=download
mv tdom_0.8.3.orig.tar.gz?m=download tdom_0.8.3.orig.tar.gz
# 3. make sure you have svn-buildpackage and pbuilder installed and set-up # 4. build binaries from source package on trunk cd ../tdom/trunk
# When building the package, you have to use --svn-ignore when you have local changes that haven't been committed; otherwise you will get an error.
svn-buildpackage --svn-builder="pdebuild --buildresult `pwd`/../build-area" --svn-override=origDir=../../tarballs --svn-ignore
# voilà
# When you're ready to see lintian warning/errors, add --svn-lintian to the build package command:
svn-buildpackage --svn-builder="pdebuild --buildresult `pwd`/../build-area" --svn-override=origDir=../../tarballs --svn-ignore --svn-lintian
# For linda warnings/erros, add --svn-linda to the build package command
svn-buildpackage --svn-builder="pdebuild --buildresult `pwd`/../build-area" --svn-override=origDir=../../tarballs --svn-ignore --svn-linda
- References on svn-buildpackage
http://workaround.org/moin/SvnBuildpackage
http://debianpaket.de/svn-buildpackage
- Auxiliary stuff
The orig file
Issues of legacy source package
- [Fixed] [carl] lintian warnings: "tdom: changelog should mention nmu"
Problem:
W: tdom source: changelog-should-mention-nmu
W: tdom source: source-nmu-has-incorrect-version-number 0.8.3-1
Fix:
The maintainer should be Avni Khatri and Carl Blesius <tdom@blesius.org>. Modify debian/changelog to reflect this. This has been fixed temporarily, but since a few us of will be committing, we will have to review the uploader/maintainer names later.
- [Fixed] [avni] lintian warnings: "tdom: bad distribution in changes file"
Problem:
E: tdom_0.8.3-1_source.changes: bad-distribution-in-changes-file UNRELEASED
Fix:
modify debian/changelog: change UNRELEASED to unstable on line 1
- [Fixed (local issue)][avni] lintian warnings: "tdom: directory pwd/../build-area does not exist"
Problem:
W: Build-result Directory pwd/../build-area does not exist
Fix: To avoid using the --buildresult flag, you might put the following
line into your ~/.pbuilderrc:
BUILDRESULT=.../build-area
(make sure you replace the "..." by your directory walk to the actual
build-area dir)
- [Fixed by geoxito] [avni] lintian warnings: "tdom: package-contains-empty-directory *"
Problem:
W: tdom: package-contains-empty-directory usr/bin/
W: tdom: package-contains-empty-directory usr/sbin/
Fix:
the answer/ solution is simple. you have, simplisticly speaking, two ways of creating the "virtual" directory structures. By virtual, I refer to the the paths created under debian/tdom which then go into the binary (*.deb) packages. Either do it manually in the debian/rules file or use template files under debian. look at debian/dirs ... it contains two entries: usr/bin, usr/sbin ... voilà ... these are default settings, created the first time the original author debianized the package. but tdom is a so-called "internal library" package in debian jargon, there will never be anything in bin or sbin. so, simply remove the file or empty it!!!!
- [Fixed]
Which version to package: 0.8.2 / 0.8.3? it is going to be CVS Head/ 0.8.3
- [Fixed] [geoxito] Installation paths not compliant with Debian Tcl/Tk policy
Study http://pkg-tcltk.alioth.debian.org/tcltk-policy.html/
and make sure that you change debian/rules etc. accordingly.
Most importantly, tcl package reside under /usr/lib/tcltk and not /usr/lib/ directly.
- [Fixed] [mr_calvin] Dedicated tdom-dev binary package. There needs to be a dedicated development binary package.
Fix:
- Add tdom-dev entry in debian/control
- debian/rules needs to copy following files into tdom-dev paths:
/usr/include/tdom.h
/usr/lib/tdomConfig.sh
/usr/lib/tdom0.8.2/libtdomstub0.8.2.a
- Btw. change the include path to /usr/include/tdom/*
and subsequently change the path settings in tdomConfig.sh through search/replace operations in debian/rules
(see my xotcl examples in http://svn.debian.org/viewsvn/pkg-tcltk/xotcl/trunk/debian/rules?rev=544&view=markup). watch out for perl commands in there ...
- [Fixed] [avni] Further lintian clean-up:
Problem:
> W: tdom: manpage-has-errors-from-man usr/share/man/man3/dom.3.gz invalid option -wmac
> W: tdom: manpage-has-errors-from-man usr/share/man/man3/domDoc.3.gz invalid option -wmac
> W: tdom: manpage-has-errors-from-man usr/share/man/man3/domNode.3.gz invalid option -wmac
> W: tdom: manpage-has-errors-from-man usr/share/man/man3/expat.3.gz invalid option -wmac
> W: tdom: manpage-has-errors-from-man usr/share/man/man3/expatapi.3.gz invalid option -wmac
> W: tdom: manpage-has-errors-from-man usr/share/man/man3/tdomcmd.3.gz invalid option -wmac
> W: tdom: manpage-has-errors-from-man usr/share/man/man3/tnc.3.gz invalid option -wmac
Fix: seems to be fixed now.
- [Fixed] [mr_calvin] Expat integration: Using internal (expat 2.0.1 or 1.95) or external (1.95) libexpat (as provided by Debian); comment by Debian Tcl/Tk maintainers:
"As far as I understand, the current version uses internal expat. I
think it's unacceptable. We should use libexpat from Debian. An
example of patches which allow to use system-wide expat could be found
at svn://bamboo.nes.ru/debian/tcl/tdom/trunk"
- [Fixed] [geoxito] Create tdom-doc package if possible. Fix: Not really needed, because there is no other tdom documentation apart the manpages.
Installing packages
These are instructions for installing the alpha dotlrn and openacs packages on debian (and ubuntu).
- Build and install tdom packages (see above, on "Resurrecting tdom").
- Set up a postgresql 8.2 server, and allow access for postgresql administrator user and openacs/dotlrn user from the machine where you are installing dotlrn/openacs (no need to create the dotlrn/openacs user and database).
- Modify your /etc/apt/sources.list file:
# debian sid deb http://debian.adenu.ia.uned.es/apt sid main # Ubuntu Hardy deb http://debian.adenu.ia.uned.es/apt hardy main
- Update the package list and install:
# apt-get update - dotLRN # apt-get install dotlrn
- OpenACS # apt-get install openacs
After that, just follow the instructions on the install ant have fun!