Skip to content

Commit

Permalink
Merge pull request #59 from yast/fix_system_namespace
Browse files Browse the repository at this point in the history
Fix system namespace
  • Loading branch information
jreidinger committed Oct 14, 2013
2 parents e213728 + 2a6cd97 commit cdece00
Show file tree
Hide file tree
Showing 41 changed files with 202 additions and 97 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ libtool.m4
missing
pluglib-bindings.ami
autodocs*.ami
autodocs/doxygen.conf
ylwrap
*.pc
stamp-h*
package/*.tar.bz2
package/*.spec
# testsuites
site.bak
/test-driver
Expand Down
9 changes: 9 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require "yast/rake"

Packaging.configuration do |conf|
conf.skip_license_check << /testsuite/ #skip all testsuites
conf.skip_license_check << /scr\/doc\/scr-arch.sda/ #skip binary file
conf.skip_license_check << /.*/ #skip all temporary, as there is too much failures
conf.obs_project = "YaST:Head:installer"
end

2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.1
3.1.1
2 changes: 1 addition & 1 deletion agent-any/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ libpy2ag_anyagent_la_SOURCES = \
libpy2ag_anyagent_la_LDFLAGS = -version-info 2:0
libpy2ag_anyagent_la_LIBADD = @AGENT_LIBADD@

INCLUDES = @AGENT_INCLUDES@
AM_CPPFLAGS = @AGENT_INCLUDES@
2 changes: 1 addition & 1 deletion agent-any/testsuite/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ AUTOMAKE_OPTIONS = dejagnu
export Y2DISABLELANGUAGEPLUGINS = 1
export top_srcdir

INCLUDES = ${AGENT_INCLUDES}
AM_CPPFLAGS = ${AGENT_INCLUDES}

noinst_PROGRAMS = runag_anyagent

Expand Down
2 changes: 1 addition & 1 deletion agent-dummy/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ libpy2ag_dummy_la_SOURCES = \
libpy2ag_dummy_la_LDFLAGS = -version-info 2:0
libpy2ag_dummy_la_LIBADD = @AGENT_LIBADD@

INCLUDES = \
AM_CPPFLAGS = \
-I$(top_srcdir)/libycp/src/include \
-I$(top_srcdir)/liby2/src/include \
-I$(top_srcdir)/libscr/src/include \
Expand Down
2 changes: 1 addition & 1 deletion agent-ini/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ libpy2ag_ini_la_LIBADD = \
@AGENT_LIBADD@ \
${Y2UTIL_LIBS}

INCLUDES = @AGENT_INCLUDES@
AM_CPPFLAGS = @AGENT_INCLUDES@
2 changes: 1 addition & 1 deletion agent-ini/testsuite/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ AUTOMAKE_OPTIONS = dejagnu
export Y2DISABLELANGUAGEPLUGINS = 1
export top_srcdir

INCLUDES = ${AGENT_INCLUDES}
AM_CPPFLAGS = ${AGENT_INCLUDES}

noinst_PROGRAMS = runag_ini

Expand Down
2 changes: 1 addition & 1 deletion agent-modules/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ libpy2ag_modules_la_SOURCES = \
libpy2ag_modules_la_LDFLAGS = -version-info 2:0
libpy2ag_modules_la_LIBADD = @AGENT_LIBADD@

INCLUDES = ${AGENT_INCLUDES}
AM_CPPFLAGS = ${AGENT_INCLUDES}
2 changes: 1 addition & 1 deletion agent-modules/testsuite/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ AUTOMAKE_OPTIONS = dejagnu
export Y2DISABLELANGUAGEPLUGINS = 1
export top_srcdir

INCLUDES = ${AGENT_INCLUDES}
AM_CPPFLAGS = ${AGENT_INCLUDES}

noinst_PROGRAMS = runmodules

Expand Down
2 changes: 1 addition & 1 deletion agent-process/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ libpy2ag_process_la_SOURCES = \
libpy2ag_process_la_LDFLAGS = -version-info 2:0
libpy2ag_process_la_LIBADD = @AGENT_LIBADD@

INCLUDES = @AGENT_INCLUDES@
AM_CPPFLAGS = @AGENT_INCLUDES@
2 changes: 1 addition & 1 deletion agent-process/testsuite/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ PACKAGE = ag_process
AUTOMAKE_OPTIONS = dejagnu
export Y2DISABLELANGUAGEPLUGINS = 1

INCLUDES = ${AGENT_INCLUDES}
AM_CPPFLAGS = ${AGENT_INCLUDES}

noinst_PROGRAMS = run_ag_process

Expand Down
2 changes: 1 addition & 1 deletion agent-resolver/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ libpy2ag_resolver_la_SOURCES = \
libpy2ag_resolver_la_LDFLAGS = -version-info 2:0
libpy2ag_resolver_la_LIBADD = @AGENT_LIBADD@

INCLUDES = ${AGENT_INCLUDES}
AM_CPPFLAGS = ${AGENT_INCLUDES}
2 changes: 1 addition & 1 deletion agent-resolver/testsuite/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ AUTOMAKE_OPTIONS = dejagnu
export Y2DISABLELANGUAGEPLUGINS = 1
export top_srcdir

INCLUDES = ${AGENT_INCLUDES}
AM_CPPFLAGS = ${AGENT_INCLUDES}

noinst_PROGRAMS = runresolver

Expand Down
2 changes: 1 addition & 1 deletion agent-system/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ libpy2ag_system_la_SOURCES = \
libpy2ag_system_la_LDFLAGS = -version-info 2:0
libpy2ag_system_la_LIBADD = @AGENT_LIBADD@

INCLUDES = @AGENT_INCLUDES@
AM_CPPFLAGS = @AGENT_INCLUDES@
2 changes: 1 addition & 1 deletion agent-system/testsuite/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ PACKAGE = ag_system
AUTOMAKE_OPTIONS = dejagnu
export Y2DISABLELANGUAGEPLUGINS = 1

INCLUDES = ${AGENT_INCLUDES}
AM_CPPFLAGS = ${AGENT_INCLUDES}

noinst_PROGRAMS = runag_system

Expand Down
10 changes: 9 additions & 1 deletion agents-perl/testsuite/test-common.exp
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# common setup for test cases of ag_backgound

if { [catch {exec grep devpts.*mode=620 /proc/mounts} ] } {
# Something in our Jenkins instance remounts it with mode 600
# and then "spawn" fails.
puts "SKIP: need devpts with mode=620."
puts " See also https://bugzilla.redhat.com/show_bug.cgi?id=510183"
exit 77
}

set prog "../ag_background"
set env(PERL5LIB) "../lib"

Expand All @@ -15,7 +23,7 @@ spawn $prog $argv
match_max 100000

set timeout 15
expect_after {
expect_after {
default {
puts "OOPS"
puts "last matched <<$expect_out(buffer)>>"
Expand Down
4 changes: 3 additions & 1 deletion base/src/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
scr
scr_remote
y2base
*.log
*.trs
15 changes: 9 additions & 6 deletions base/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,22 @@ y2base_LDFLAGS = \
AM_CXXFLAGS = -DY2LOG=\"scr\" -DSUSEVERSION=\"${SUSEVERSION}\"

serversdir = $(execcompdir)/servers
servers_PROGRAMS = scr
servers_PROGRAMS = scr_remote

INCLUDES = ${AGENT_INCLUDES} \
AM_CPPFLAGS = ${AGENT_INCLUDES} \
-I$(srcdir)/../../libscr/src/include \
-I$(srcdir)/../../scr/src

scr_SOURCES = \
scr.cc
scr_remote_SOURCES = \
scr_remote.cc

scr_LDADD = ${AGENT_LIBADD}
scr_remote_LDADD = ${AGENT_LIBADD}

scr_LDFLAGS = \
scr_remote_LDFLAGS = \
-Xlinker --whole-archive \
$(top_builddir)/scr/src/libpy2scr.la \
$(top_builddir)/wfm/src/libpy2wfm.la \
-Xlinker --no-whole-archive

TESTS = scr-smoke-test
EXTRA_DIST = $(TESTS)
7 changes: 7 additions & 0 deletions base/src/scr-smoke-test
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#! /bin/bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# smoke test:
echo "WHEN" "simply run with noting to do"
echo " IT" "exits with no error (in particular it does not segfault)"
$DIR/scr_remote stdio scr < /dev/null
File renamed without changes.
2 changes: 1 addition & 1 deletion base/tools/tty_wrapper/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Makefile.am for tools/ttywrapper
#

INCLUDES = ${AGENT_INCLUDES}
AM_CPPFLAGS = ${AGENT_INCLUDES}

ybin_PROGRAMS = tty_wrapper

Expand Down
2 changes: 1 addition & 1 deletion base/tools/ycpc/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SUBDIRS = doc

AM_CXXFLAGS = -DY2LOG=\"libycp\"

INCLUDES = -I$(top_srcdir)/libycp/src/include \
AM_CPPFLAGS = -I$(top_srcdir)/libycp/src/include \
-I$(top_srcdir)/liby2/src/include \
-I$(top_srcdir)/libscr/src/include \
-I$(top_srcdir)/wfm/src \
Expand Down
2 changes: 1 addition & 1 deletion debugger/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ liby2debug_la_SOURCES = \

#liby2debug_la_LIBADD = @AGENT_LIBADD@

INCLUDES = \
AM_CPPFLAGS = \
-I$(srcdir)/../libycp/src/include \
-I$(srcdir)/../liby2/src/include \
-I$(srcdir)/../liby2util-r/src/include \
Expand Down
2 changes: 1 addition & 1 deletion libscr/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ lib_LTLIBRARIES = libscr.la
libscr_la_SOURCES = \
SCRAgent.cc SCR.cc

INCLUDES = \
AM_CPPFLAGS = \
-I$(srcdir)/../../libycp/src/include \
-I$(srcdir)/../../liby2/src/include \
-I$(srcdir)/include \
Expand Down
2 changes: 1 addition & 1 deletion libscr/testsuite/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

AM_CXXFLAGS = -DY2LOG=\"libscr\"

INCLUDES = \
AM_CPPFLAGS = \
-I$(top_srcdir)/libycp/src/include \
-I$(top_srcdir)/liby2/src/include \
-I$(srcdir)/../src/include \
Expand Down
2 changes: 1 addition & 1 deletion liby2/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ libpy2serial_la_SOURCES = \
Y2SerialComponent.cc Y2CCSerial.cc
libpy2serial_la_LDFLAGS = -version-info 2:0

INCLUDES = \
AM_CPPFLAGS = \
-I$(srcdir)/../../libycp/src/include \
-I$(srcdir)/include \
-I$(srcdir)/include/y2 \
Expand Down
2 changes: 0 additions & 2 deletions liby2/src/genericfrontend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -772,9 +772,7 @@ main (int argc, char **argv)
server->result(result);

// Cleanup
delete server;
delete[] server_argv;
delete client;

// might be useful in tracking segmentation faults
y2milestone ("Finished YaST2 component '%s'", progname);
Expand Down
4 changes: 4 additions & 0 deletions liby2/src/include/y2/Y2ComponentBroker.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ class Y2ComponentBroker
* If set to false only servers are created.
* @return A pointer to the new component if one has been found, 0 if no
* component matching spec has been found.
* Pointer returned by this function is owned by ComponentCreator so do not
* delete it at your own.
* @see Y2ComponentCreator#create for details what ComponentCreator must
* return
*/
static Y2Component *createComponent(const char *name, bool look_for_clients);

Expand Down
4 changes: 1 addition & 3 deletions liby2util-r/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@

SUBDIRS = include

INCLUDES = -I$(srcdir)/include #-I$(oldincludedir)/libxml2

AM_LDFLAGS = -L$(libdir)

AM_CPPFLAGS = -DY2LOG=\"liby2util\" $(DEBUG_FLAGS) -D_GNU_SOURCE -DLOCALEDIR=\"${localedir}\"
AM_CPPFLAGS = -I$(srcdir)/include -DY2LOG=\"liby2util\" $(DEBUG_FLAGS) -D_GNU_SOURCE -DLOCALEDIR=\"${localedir}\"

lib_LTLIBRARIES = liby2util.la

Expand Down
4 changes: 1 addition & 3 deletions liby2util-r/testsuite/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ PACKAGE = liby2util
AUTOMAKE_OPTIONS = dejagnu
export Y2DISABLELANGUAGEPLUGINS = 1

INCLUDES= -I$(srcdir)/../src/include

AM_CPPFLAGS = -DY2LOG=\"liby2util-testsuite\"
AM_CPPFLAGS = -I$(srcdir)/../src/include -DY2LOG=\"liby2util-testsuite\"

AM_LDFLAGS = \
-Xlinker --whole-archive \
Expand Down
2 changes: 1 addition & 1 deletion libycp/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ BUILT_SOURCES = parser.hh

AM_YFLAGS = -d -v

INCLUDES = -I$(srcdir)/include -I$(srcdir)/include/ycp -I$(top_srcdir)/liby2/src/include ${Y2UTIL_CFLAGS} \
AM_CPPFLAGS = -I$(srcdir)/include -I$(srcdir)/include/ycp -I$(top_srcdir)/liby2/src/include ${Y2UTIL_CFLAGS} \
-I$(top_srcdir)/debugger

# CURRENT:REVISION:AGE
Expand Down
2 changes: 1 addition & 1 deletion libycp/testsuite/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SUBDIRS = config lib libycp.test tests

AM_CXXFLAGS = -DY2LOG=\"libycp\"

INCLUDES = -I$(srcdir)/../src/include -I$(top_srcdir)/liby2/src/include ${Y2UTIL_CFLAGS}
AM_CPPFLAGS = -I$(srcdir)/../src/include -I$(top_srcdir)/liby2/src/include ${Y2UTIL_CFLAGS}

bindir = $(prefix)/bin
libdir = ../src/.libs
Expand Down
33 changes: 31 additions & 2 deletions package/yast2-core.changes
Original file line number Diff line number Diff line change
@@ -1,12 +1,40 @@
-------------------------------------------------------------------
Mon Oct 14 12:40:31 UTC 2013 - jreidinger@suse.com

- minimal chroot: fixed System:: to actually chroot; hopefully
fixes bootloader setup at installation

-------------------------------------------------------------------
Tue Oct 1 14:59:08 UTC 2013 - jreidinger@suse.com

- port from opensuse 13.1: fixed a segfault at the end of 'scr'
program used during the installation, leading to /core file
(BNC#841623)
- 3.1.1

-------------------------------------------------------------------
Wed Sep 25 14:16:30 UTC 2013 - jreidinger@suse.com

- respect target root in: ag_any(for processes), system_agent
- respect target root in: ag_any(for processes), system_agent

-------------------------------------------------------------------
Wed Sep 18 14:39:27 UTC 2013 - lslezak@suse.cz

- do not use *.spec.in template, use *.spec file with RPM macros
instead
- 3.1.0

-------------------------------------------------------------------
Wed Sep 11 12:40:58 UTC 2013 - jreidinger@suse.com

- respect target root in: ag_any, ag_ini, ag_modules, ag_resolver
- respect target root in: ag_any, ag_ini, ag_modules, ag_resolver


-------------------------------------------------------------------
Wed Sep 4 14:24:39 UTC 2013 - mvidner@suse.com

- Avoid automake warning:
'INCLUDES' is the old name for 'AM_CPPFLAGS'

-------------------------------------------------------------------
Tue Sep 3 13:28:44 UTC 2013 - jreidinger@suse.com
Expand All @@ -15,6 +43,7 @@ Tue Sep 3 13:28:44 UTC 2013 - jreidinger@suse.com
must be adapted to respect it instead of relying on chroot(2)
having been run.


-------------------------------------------------------------------
Wed Aug 7 07:46:14 UTC 2013 - dmajda@suse.cz

Expand Down
Loading

0 comments on commit cdece00

Please sign in to comment.