You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

215 lines
8.4 KiB

  1. --- a/configure.ac
  2. +++ b/configure.ac
  3. @@ -284,22 +284,8 @@ if test -z "$DOXYGEN"; then
  4. HAVE_DOXYGEN="no"
  5. fi
  6. HAVE_LVM="yes"
  7. -AC_PATH_PROG([LVCREATE], [lvcreate], [], [$PATH:/sbin:/usr/sbin])
  8. -AC_PATH_PROG([LVREMOVE], [lvremove], [], [$PATH:/sbin:/usr/sbin])
  9. -if test -z "$LVCREATE" || test -z "$LVREMOVE"; then
  10. - HAVE_LVM="no"
  11. -fi
  12. HAVE_BTRFS="yes"
  13. -AC_PATH_PROG([BTRFS], [btrfs], [], [$PATH:/sbin:/usr/sbin])
  14. -AC_PATH_PROG([BTRFSCTL], [btrfsctl], [], [$PATH:/sbin:/usr/sbin])
  15. -if test -z "$BTRFS" || test -z "$BTRFSCTL"; then
  16. - HAVE_BTRFS="no"
  17. -fi
  18. HAVE_LOOPBACK="yes"
  19. -AC_PATH_PROG([LOSETUP], [losetup], [], [$PATH:/sbin:/usr/sbin])
  20. -if test -z "$LOSETUP"; then
  21. - HAVE_LOOPBACK="no"
  22. -fi
  23. # Check for host platform
  24. @@ -336,7 +322,6 @@ PKG_CHECK_MODULES([UUID], [uuid],
  25. [HAVE_UUID=yes],
  26. [HAVE_UUID=no])
  27. -AM_PATH_CPPUNIT([1.10.0], [HAVE_CPPUNIT=yes])
  28. AM_CONDITIONAL([USE_UNIT_TESTS], [test -n "$HAVE_CPPUNIT"])
  29. SCHROOT_CFLAGS="$UUID_CFLAGS"
  30. @@ -688,42 +673,25 @@ if test "$BOOST_PROGRAM_OPTIONS_VALIDATI
  31. fi
  32. dnl Note the use of quadrigraphs to quote [ and ] in regexes.
  33. -AH_TEMPLATE(HAVE_REGEX_REGEX, [Set if the <regex> header file includes std::regex])
  34. AH_TEMPLATE(HAVE_BOOST_REGEX, [Set if the <boost/regex.hpp> header file includes boost::regex])
  35. -AC_MSG_CHECKING([for std::regex])
  36. -define([testprog], [AC_LANG_PROGRAM([#include <regex>],
  37. - [std::regex foo("^foo@<:@bar@:>@$");
  38. - std::regex bar("^foo@<:@bar@:>@$", std::regex::extended);
  39. - std::regex check("^@<:@^:/,.@:>@@<:@^:/,@:>@*$", std::regex::extended);])])
  40. -AC_RUN_IFELSE(testprog,
  41. - [AC_MSG_RESULT([yes])
  42. - AC_DEFINE(HAVE_REGEX_REGEX, 1)],
  43. - [dnl Check if std::regex is present but broken.
  44. -define([testprog], [AC_LANG_PROGRAM([#include <regex>],
  45. - [std::regex foo("^foo@<:@bar@:>@$");
  46. - std::regex bar("^foo@<:@bar@:>@$", std::regex::extended);])])
  47. +AC_MSG_CHECKING([for boost::regex in -lboost_regex])
  48. +saved_LIBS="${LIBS}"
  49. +LIBS="${saved_LIBS} -lboost_regex"
  50. +define([testprog], [AC_LANG_PROGRAM([#include <boost/regex.hpp>],
  51. + [boost::regex("^foo@<:@bar@:>@$");
  52. + boost::regex bar("^foo@<:@bar@:>@$", boost::regex::extended);])])
  53. AC_LINK_IFELSE(testprog,
  54. - [AC_MSG_RESULT([broken])],
  55. - [AC_MSG_RESULT([no])])
  56. - AC_MSG_CHECKING([for boost::regex in -lboost_regex])
  57. - saved_LIBS="${LIBS}"
  58. - LIBS="${saved_LIBS} -lboost_regex"
  59. - define([testprog], [AC_LANG_PROGRAM([#include <boost/regex.hpp>],
  60. - [boost::regex("^foo@<:@bar@:>@$");
  61. - boost::regex bar("^foo@<:@bar@:>@$", boost::regex::extended);])])
  62. - AC_LINK_IFELSE(testprog,
  63. - [AC_MSG_RESULT([yes])
  64. - AC_DEFINE(HAVE_BOOST_REGEX, 1)
  65. - BOOST_LIBS="${BOOST_LIBS} -lboost_regex"],
  66. - [LIBS="${saved_LIBS} -lboost_regex-mt"
  67. - AC_LINK_IFELSE(testprog,
  68. - [AC_MSG_RESULT([yes])
  69. - AC_DEFINE(HAVE_BOOST_REGEX, 1)
  70. - BOOST_LIBS="${BOOST_LIBS} -lboost_regex-mt"],
  71. - [AC_MSG_RESULT([no])
  72. - AC_MSG_FAILURE([libboost_regex (Boost C++ Libraries) is not installed, but is required by schroot])])])
  73. - LIBS="${saved_LIBS}"
  74. -])
  75. + [AC_MSG_RESULT([yes])
  76. + AC_DEFINE(HAVE_BOOST_REGEX, 1)
  77. + BOOST_LIBS="${BOOST_LIBS} -lboost_regex"],
  78. + [LIBS="${saved_LIBS} -lboost_regex-mt"
  79. + AC_LINK_IFELSE(testprog,
  80. + [AC_MSG_RESULT([yes])
  81. + AC_DEFINE(HAVE_BOOST_REGEX, 1)
  82. + BOOST_LIBS="${BOOST_LIBS} -lboost_regex-mt"],
  83. + [AC_MSG_RESULT([no])
  84. + AC_MSG_FAILURE([libboost_regex (Boost C++ Libraries) is not installed, but is required by schroot])])])
  85. +LIBS="${saved_LIBS}"
  86. AC_MSG_CHECKING([for boost::iostreams in -lboost_iostreams])
  87. saved_LIBS="${LIBS}"
  88. --- a/bin/schroot-base/schroot-base-run.h
  89. +++ b/bin/schroot-base/schroot-base-run.h
  90. @@ -61,8 +61,8 @@ namespace schroot_base
  91. std::cout.imbue(std::locale());
  92. std::cerr.imbue(std::locale());
  93. - bindtextdomain (SBUILD_MESSAGE_CATALOGUE, SCHROOT_LOCALE_DIR);
  94. - textdomain (SBUILD_MESSAGE_CATALOGUE);
  95. + //bindtextdomain (SBUILD_MESSAGE_CATALOGUE, SCHROOT_LOCALE_DIR);
  96. + //textdomain (SBUILD_MESSAGE_CATALOGUE);
  97. typename options_type::ptr opts(new options_type);
  98. main_type kit(opts);
  99. --- a/sbuild/sbuild-feature.h
  100. +++ b/sbuild/sbuild-feature.h
  101. @@ -24,6 +24,7 @@
  102. #include <string>
  103. #include <boost/format.hpp>
  104. +#include <libintl.h>
  105. namespace sbuild
  106. {
  107. --- a/etc/setup.d/20copyfiles
  108. +++ b/etc/setup.d/20copyfiles
  109. @@ -39,9 +39,9 @@ copy_file()
  110. if [ -e "$2" ]; then
  111. # Device and inode
  112. - da=$(/usr/bin/stat --format="%d %i" "$1")
  113. + da=$(/bin/stat --format="%d %i" "$1")
  114. # This one can fail since it might not exist yet
  115. - db=$(/usr/bin/stat --format="%d %i" "$2" 2>/dev/null || :)
  116. + db=$(/bin/stat --format="%d %i" "$2" 2>/dev/null || :)
  117. if [ "$da" = "$db" ]; then
  118. COPY="false"
  119. --- a/etc/setup.d/20nssdatabases
  120. +++ b/etc/setup.d/20nssdatabases
  121. @@ -29,7 +29,7 @@ set -e
  122. dup_nss()
  123. {
  124. info "Copying $1 database to $2"
  125. - getent "$1" > "$2"
  126. + cat "/etc/$1" > "$2"
  127. }
  128. if [ $STAGE = "setup-start" ] || [ $STAGE = "setup-recover" ]; then
  129. @@ -42,9 +42,9 @@ if [ $STAGE = "setup-start" ] || [ $STAG
  130. fi
  131. # Device and inode
  132. - dr=$(/usr/bin/stat --format="%d %i" "/etc/$db")
  133. + dr=$(/bin/stat --format="%d %i" "/etc/$db")
  134. # This one can fail since it might not exist yet
  135. - dc=$(/usr/bin/stat --format="%d %i" "${CHROOT_PATH}/etc/$db" 2>/dev/null || :)
  136. + dc=$(/bin/stat --format="%d %i" "${CHROOT_PATH}/etc/$db" 2>/dev/null || :)
  137. # If the database inside and outside the chroot is the
  138. # same, it's very likely that dup_nss would blank the
  139. --- a/etc/profile-templates/all/all/nssdatabases
  140. +++ b/etc/profile-templates/all/all/nssdatabases
  141. @@ -3,5 +3,5 @@
  142. # <database name>
  143. passwd
  144. shadow
  145. -group
  146. -gshadow
  147. +#group
  148. +#gshadow
  149. --- a/etc/profile-templates/buildd/all/nssdatabases
  150. +++ b/etc/profile-templates/buildd/all/nssdatabases
  151. @@ -3,5 +3,5 @@
  152. # <database name>
  153. passwd
  154. shadow
  155. -group
  156. -gshadow
  157. +#group
  158. +#gshadow
  159. --- a/etc/profile-templates/default/all/nssdatabases
  160. +++ b/etc/profile-templates/default/all/nssdatabases
  161. @@ -1,4 +1,4 @@
  162. services
  163. protocols
  164. -networks
  165. +#networks
  166. hosts
  167. --- a/etc/profile-templates/desktop/all/nssdatabases
  168. +++ b/etc/profile-templates/desktop/all/nssdatabases
  169. @@ -1,4 +1,4 @@
  170. services
  171. protocols
  172. -networks
  173. +#networks
  174. hosts
  175. --- a/etc/profile-templates/default/linux/fstab
  176. +++ b/etc/profile-templates/default/linux/fstab
  177. @@ -7,7 +7,7 @@
  178. # to run additional services in the chroot. However, note that this
  179. # may potentially cause undesirable behaviour on upgrades, such as
  180. # killing services on the host.
  181. -#/run /run none rw,bind 0 0
  182. +/run /run none rw,bind 0 0
  183. #/run/lock /run/lock none rw,bind 0 0
  184. -#/dev/shm /dev/shm none rw,bind 0 0
  185. -#/run/shm /run/shm none rw,bind 0 0
  186. +/tmp/shm /dev/shm none rw,bind 0 0
  187. +/tmp/shm /run/shm none rw,bind 0 0
  188. --- a/etc/profile-templates/desktop/linux/fstab
  189. +++ b/etc/profile-templates/desktop/linux/fstab
  190. @@ -12,7 +12,7 @@
  191. # to run additional services in the chroot. However, note that this
  192. # may potentially cause undesirable behaviour on upgrades, such as
  193. # killing services on the host.
  194. -#/run /run none rw,bind 0 0
  195. +/run /run none rw,bind 0 0
  196. #/run/lock /run/lock none rw,bind 0 0
  197. -#/dev/shm /dev/shm none rw,bind 0 0
  198. -#/run/shm /run/shm none rw,bind 0 0
  199. +/tmp/shm /dev/shm none rw,bind 0 0
  200. +/tmp/shm /run/shm none rw,bind 0 0