[AD] [ alleg-Bugs-1401840 ] Hardcoded modules.lst path breaks on non-root install |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: noreply@xxxxxxxxxx
- Subject: [AD] [ alleg-Bugs-1401840 ] Hardcoded modules.lst path breaks on non-root install
- From: "SourceForge.net" <noreply@xxxxxxxxxx>
- Date: Tue, 10 Jan 2006 09:57:46 -0800
Bugs item #1401840, was opened at 2006-01-10 15:57
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=1401840&group_id=5665
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Linux
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Paul Eipper (lkraider)
Assigned to: Nobody/Anonymous (nobody)
Summary: Hardcoded modules.lst path breaks on non-root install
Initial Comment:
***
Problem #1:
What: Hardcoded search path for file "modules.lst"
breaks when performing a user (non-root) install of the
library or simply using a different install prefix.
Where: The source file "src/unix/umodules.c" at line 47
defines the path where to find the file "modules.lst"
at runtime.
@src/unix/umodules.c:44
--------------- begin code snippet ---------------
/* where to look for modules.lst */
static char *module_path[] =
{
"/usr/local/lib/allegro/", "/usr/lib/allegro/", NULL
};
--------------- end code snippet ---------------
Possible Fix: Apply a variable that corresponds to the
install prefix determined by the user at compilation.
***
Problem #2:
What: The ending slash of the paths defined on the
above code snippet is not necessary as it results in
code containing double slashes in the search path for
"modules.lst". Example:
"/usr/local/lib/allegro//4.2/moules.lst".
Possible Fix: Remove ending slashes from the coded paths.
***
This was identified running
strace MyAllegroProgram 2>&1|egrep "(modules.lst)"
on an Ubuntu 5.10 Breezy box as a standard user (non-root)
This issue was already identified by a NetBSD user @
http://mail-index.netbsd.org/pkgsrc-bugs/2005/09/09/0013.html
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=1401840&group_id=5665