Skip to Content.
Sympa Menu

sm-sorcery-bugs - [SM-Sorcery-Bugs] [Bug 7702] New: persistent_add creates empty strings on subsequent casts

sm-sorcery-bugs AT lists.ibiblio.org

Subject: Bugs for Sorcery are reported here

List archive

Chronological Thread  
  • From: bugzilla-daemon AT metalab.unc.edu
  • To: sm-sorcery-bugs AT lists.ibiblio.org
  • Subject: [SM-Sorcery-Bugs] [Bug 7702] New: persistent_add creates empty strings on subsequent casts
  • Date: Wed, 24 Nov 2004 01:00:46 -0500

http://bugs.sourcemage.org/show_bug.cgi?id=7702

Summary: persistent_add creates empty strings on subsequent casts
Product: Sorcery
Version: 1.11.x
Platform: All
URL: http://wiki.sourcemage.org/index.php?page=Persistence
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: subroutines
AssignedTo: sm-sorcery-bugs AT lists.ibiblio.org
ReportedBy: eric AT sandall.us


This is repeatable with both Sorcery 1.11.1 and 1.11.2-rc2 on a pentium3 and
sparc64, respectively.

I have the following in PRE_BUILD:
#
# Set GLIBC_HEADERS_DIR for use later
#
persistent_add GLIBC_HEADERS_DIR &&
GLIBC_HEADERS_DIR=$SOURCE_DIRECTORY/linux-libc-headers-$HEADERS_VERSION &&

The first time I did `cast -r -c glibc` and it set everything up correctly:
# cat /mnt/smgl/etc/sorcery/local/depends/glibc.p
GLIBC_UTF="n"
GLIBC_HEADERS_DIR="/mnt/smgl/usr/src/glibc-2.3.2/linux-libc-headers-2.4.24"

And anytime I use `-r` it works fine, but if I just do `cast -c glibc` I start
getting this:
# cat /mnt/smgl/etc/sorcery/local/depends/glibc.p
GLIBC_UTF="n"
GLIBC_HEADERS_DIR="/mnt/smgl/usr/src/glibc-2.3.2/linux-libc-headers-2.4.24"
GLIBC_HEADERS_DIR=""

And each time I recast without `-r` it appends another empty
GLIBC_HEADERS_DIR line.

Which then always gives me a blank GLIBC_HEADERS_DIR, even though it's been
defined. I thought persistent_add wasn't supposed to replace an already
defined
variable from prior casts, but just mark it as staying persistent?

I don't know why it doesn't just append the full
"GLIBC_HEADERS_DIR="/mnt/smgl/usr/src/glibc-2.3.2/linux-libc-headers-2.4.24"
each time, but it seems to ignore my setting of the variable if it's already
been marked as persistent from a prior cast.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



  • [SM-Sorcery-Bugs] [Bug 7702] New: persistent_add creates empty strings on subsequent casts, bugzilla-daemon, 11/24/2004

Archive powered by MHonArc 2.6.24.

Top of Page