Fix kdewebdev FTBFS under oneiric

Quanta lvalue gcc error patch provided by "/dev/ammo42"


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1258664 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru v3.5.13
tpearson 13 years ago
parent 042dc76a36
commit 69aa74860a

@ -7,7 +7,7 @@ bin_PROGRAMS = kmdr-editor
AM_CPPFLAGS = -I$(top_srcdir)/kommander/widget -I$(top_srcdir)/kommander/widgets -I$(top_srcdir)/kommander/plugin -I$(top_srcdir)/kommander/factory -Ishared -Iinterfaces -Ipics $(all_includes) AM_CPPFLAGS = -I$(top_srcdir)/kommander/widget -I$(top_srcdir)/kommander/widgets -I$(top_srcdir)/kommander/plugin -I$(top_srcdir)/kommander/factory -Ishared -Iinterfaces -Ipics $(all_includes)
# the library search path. # the library search path.
kmdr_editor_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_KDECORE) $(LIB_KDEUI) -lkdefx $(LIB_KIO) -lktexteditor kmdr_editor_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_KDECORE) $(LIB_KDEUI) -lkdefx $(LIB_KIO) -lktexteditor $(LIB_KPARTS)
# the libraries to link against. # the libraries to link against.
kmdr_editor_LDADD = $(top_builddir)/kommander/factory/libkommanderfactory.la \ kmdr_editor_LDADD = $(top_builddir)/kommander/factory/libkommanderfactory.la \

@ -3,7 +3,7 @@ bin_PROGRAMS = kmdr-executor
noinst_LTLIBRARIES = libinstance.la noinst_LTLIBRARIES = libinstance.la
libinstance_la_SOURCES = instance.cpp dcopkommanderif.skel libinstance_la_SOURCES = instance.cpp dcopkommanderif.skel
libinstance_la_LDFLAGS = $(KDE_RPATH) $(all_libraries) -no-undefined libinstance_la_LDFLAGS = $(KDE_RPATH) $(all_libraries) -no-undefined $(LIB_QT) -lDCOP $(LIB_KDECORE) $(LIB_KDEUI) -lkdefx $(LIB_KIO) -lktexteditor
kmdr_executor_SOURCES = main.cpp kmdr_executor_SOURCES = main.cpp

@ -21,7 +21,7 @@ xsldbg_DEPENDENCIES = kxsldbgpart/libxsldbg/libxsldbg.la
xsldbg_LDADD = kxsldbgpart/libxsldbg/libxsldbg.la $(LIBXSLT_LIBS) $(LIBXML_LIBS) $(LIB_KDEUI) xsldbg_LDADD = kxsldbgpart/libxsldbg/libxsldbg.la $(LIBXSLT_LIBS) $(LIBXML_LIBS) $(LIB_KDEUI)
# #
# the library search path. # the library search path.
xsldbg_LDFLAGS = $(all_libraries) $(XSLDBG_EXTRA_LIBS) xsldbg_LDFLAGS = $(all_libraries) $(XSLDBG_EXTRA_LIBS) $(LIB_QT) -lDCOP $(LIB_KDECORE) $(LIB_KDEUI) -lkdefx $(LIB_KIO) -lktexteditor
# These paths are KDE specific. Use them: # These paths are KDE specific. Use them:
# kde_appsdir Where your application's menu entry (.desktop) should go to. # kde_appsdir Where your application's menu entry (.desktop) should go to.

@ -88,6 +88,9 @@ public:
void addAttribute(TagAttr attr) {attrs.append(attr);} void addAttribute(TagAttr attr) {attrs.append(attr);}
/** Get the attribute number index */ /** Get the attribute number index */
TagAttr getAttribute(uint index) const {return attrs[index];} TagAttr getAttribute(uint index) const {return attrs[index];}
/* /!\ KLUDGE WARNING /!\ */
/** Get the attribute number index: returns a pointer */
TagAttr* getAttribute_gcc46(uint index) {return (TagAttr*) &attrs[index];}
/** Remove the attribute number index */ /** Remove the attribute number index */
void deleteAttribute(uint index) {attrs.remove(attrs.at(index));} void deleteAttribute(uint index) {attrs.remove(attrs.at(index));}
/** Insert a new Attribute, even if it already exists. Prefer using editAttribute. /** Insert a new Attribute, even if it already exists. Prefer using editAttribute.

@ -740,17 +740,18 @@ void kafkaCommon::fitsNodesPosition(Node* startNode, int colMovement, int lineMo
beginCol, lastLine + lineMovement, lastCol); beginCol, lastLine + lineMovement, lastCol);
for(j = 0; j < node->tag->attrCount(); ++j) for(j = 0; j < node->tag->attrCount(); ++j)
{ {
if(node->tag->getAttribute(j).nameLine == SNbeginLine) TagAttr* ta = node->tag->getAttribute_gcc46(j);
if(ta->nameLine == SNbeginLine)
{ {
node->tag->getAttribute(j).nameLine += lineMovement; ta->nameLine += lineMovement;
node->tag->getAttribute(j).nameCol += colMovement; ta->nameCol += colMovement;
node->tag->getAttribute(j).valueLine += lineMovement; ta->valueLine += lineMovement;
node->tag->getAttribute(j).valueCol += colMovement; ta->valueCol += colMovement;
} }
else else
{ {
node->tag->getAttribute(j).nameLine += lineMovement; ta->nameLine += lineMovement;
node->tag->getAttribute(j).valueLine += lineMovement; ta->valueLine += lineMovement;
} }
} }
node = getNextNode(node, b); node = getNextNode(node, b);

@ -30,7 +30,7 @@ quanta_LDADD = $(top_builddir)/quanta/project/libproject.la \
$(top_builddir)/quanta/utility/libutility.la \ $(top_builddir)/quanta/utility/libutility.la \
$(top_builddir)/lib/libquantamodule.la \ $(top_builddir)/lib/libquantamodule.la \
-lkatepartinterfaces $(LIB_KNEWSTUFF) $(LIB_KAFKA) $(LIB_CVSSERVICE) \ -lkatepartinterfaces $(LIB_KNEWSTUFF) $(LIB_KAFKA) $(LIB_CVSSERVICE) \
$(LIB_KMDI) $(LIBXML_LIBS) $(LIBXSLT_LIBS) $(LIB_KABC) $(LIB_KSPELL) $(LIB_KHTML) $(LIB_KMDI) $(LIBXML_LIBS) $(LIBXSLT_LIBS) $(LIB_KABC) $(LIB_KSPELL) $(LIB_KHTML) -lX11 -lkdefx
# $(top_builddir)/lib/compatibility/libcompat.la # $(top_builddir)/lib/compatibility/libcompat.la
AM_CPPFLAGS = -I$(top_srcdir)/quanta/dialogs \ AM_CPPFLAGS = -I$(top_srcdir)/quanta/dialogs \
@ -64,7 +64,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/quanta/dialogs \
quanta_METASOURCES = AUTO quanta_METASOURCES = AUTO
# the library search path. # the library search path.
quanta_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_KDECORE) $(LIB_KDEUI) -lkdefx $(LIB_KIO) -lktexteditor quanta_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_KDECORE) $(LIB_KDEUI) -lkdefx $(LIB_KIO) -lktexteditor -lX11
# this is where the kdelnk file will go # this is where the kdelnk file will go
xdg_apps_DATA = quanta.desktop xdg_apps_DATA = quanta.desktop

Loading…
Cancel
Save