Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 209982 - x11-libs/motif-config-0.10-r2 needs to set a valid profile in pkg_postinst
Summary: x11-libs/motif-config-0.10-r2 needs to set a valid profile in pkg_postinst
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords: InVCS
: 209976 209988 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-02-13 11:20 UTC by Hans Halvorson
Modified: 2008-02-13 12:16 UTC (History)
1 user (show)

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


Attachments
complete build log (build.log,37.40 KB, text/plain)
2008-02-13 11:31 UTC, Hans Halvorson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hans Halvorson 2008-02-13 11:20:58 UTC
XPDFApp.cc:404: error: 'XChangeProperty' was not declared in this scope
XPDFApp.cc:405: error: 'XFlush' was not declared in this scope
XPDFApp.cc: In member function 'void XPDFApp::remoteQuit()':
XPDFApp.cc:409: error: 'display' was not declared in this scope
XPDFApp.cc:409: error: 'remoteXWin' was not declared in this scope
XPDFApp.cc:409: error: 'remoteAtom' was not declared in this scope
XPDFApp.cc:410: error: 'PropModeReplace' was not declared in this scope
XPDFApp.cc:410: error: 'XChangeProperty' was not declared in this scope
XPDFApp.cc:411: error: 'XFlush' was not declared in this scope
XPDFApp.cc: At global scope:
XPDFApp.cc:414: error: variable or field 'remoteMsgCbk' declared void
XPDFApp.cc:414: error: 'int XPDFApp::remoteMsgCbk' is not a static member of 'class XPDFApp'
XPDFApp.cc:414: error: 'Widget' was not declared in this scope
XPDFApp.cc:414: error: 'XtPointer' was not declared in this scope
XPDFApp.cc:415: error: 'XEvent' was not declared in this scope
XPDFApp.cc:415: error: 'event' was not declared in this scope
XPDFApp.cc:415: error: 'Boolean' was not declared in this scope
XPDFApp.cc:415: error: 'cont' was not declared in this scope
XPDFApp.cc:415: error: initializer expression list treated as compound expression
XPDFApp.cc:415: error: expected ',' or ';' before '{' token
make: *** [XPDFApp.o] Error 1
 * 
 * ERROR: app-text/xpdf-3.02-r1 failed.
 * Call stack:
 *   ebuild.sh, line 1701:  Called dyn_compile
 *   ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *   ebuild.sh, line   44:  Called src_compile
 *   ebuild.sh, line  711:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 *  The die message:
 *   emake failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-text/xpdf-3.02-r1/temp/build.log'.
 * 
 * unmounting tmpfs ...  

Reproducible: Always

Steps to Reproduce:
1. emerge xpdf
Comment 1 Hans Halvorson 2008-02-13 11:23:04 UTC
Everything was OK until I upgraded to openmotif 2.3.0.  Then xpdf broke, and re-emerge fails.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2008-02-13 11:26:11 UTC
Attach a complete emerge log here.
Comment 3 Hans Halvorson 2008-02-13 11:31:51 UTC
Created attachment 143418 [details]
complete build log
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2008-02-13 11:46:13 UTC
Run motif-config -s and try again.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2008-02-13 11:47:23 UTC
*** Bug 209976 has been marked as a duplicate of this bug. ***
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2008-02-13 12:14:08 UTC
Well, this happens when motif-config gets upgraded *after* openmotif.

<snip>
--- motif-config-0.10-r2.ebuild	2008-02-12 15:18:24.000000000 +0100
+++ motif-config-0.10-r2.ebuild	2008-02-13 13:06:52.000000000 +0100
@@ -74,3 +74,10 @@
 		fi
 	done
 }
+
+pkg_postinst() {
+	# when emerged after openmotif, then we need to set to a valid
+	# profile since we nuked the symlinks in pkg_preinst (Bug 209982)
+	# this sucky stuff can go away once openmotif is moved to SLOT=0
+	has_version x11-libs/openmotif && motif-config -s
+}
</snip>

The above is in CVS -> FIXED.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2008-02-13 12:16:28 UTC
*** Bug 209988 has been marked as a duplicate of this bug. ***