From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1aiQPd-0006Yd-Fq for mharc-grub-devel@gnu.org; Tue, 22 Mar 2016 13:48:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiQPa-0006Xg-H9 for grub-devel@gnu.org; Tue, 22 Mar 2016 13:48:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aiQPW-00006P-Jf for grub-devel@gnu.org; Tue, 22 Mar 2016 13:48:10 -0400 Received: from mail-lb0-x229.google.com ([2a00:1450:4010:c04::229]:33998) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiQPW-00006J-6k; Tue, 22 Mar 2016 13:48:06 -0400 Received: by mail-lb0-x229.google.com with SMTP id k12so170372443lbb.1; Tue, 22 Mar 2016 10:48:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to; bh=cZ8SyQA8A5E9BcmDM2g8csSjpDR/lFcWMjwkBVYf0PM=; b=TSoS7ANak1Z1VLbxs3vOe6Y/LlBVbnHfTBQzbAlPvQhUd7EtrwrzQunlU+Jue/022h BBAghsnyRDzemMSCTWcfYirpigvbSl2/aucYzcSOVclAjuvQc+jQ9xwMqDn920rfrZRd GXrWfwNoYLsICCm8PZDlT6EiO9mhJYLosK3DgS3s1gIa6923bPeApYRI3a2x2pHuxGVO O5tVgUHhsv+5KnFMk+aUw821yUJyRWF2FOoVyLLkT2I33n80zijzW9Dmz6xdIsvkdvPr JmfATBXRiL41wnAcj5/IA9RcHgOXcHq9MI6w4RPVb2xlVnQ0b9zDrA8M+Pb9Zole2FMJ N51Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to; bh=cZ8SyQA8A5E9BcmDM2g8csSjpDR/lFcWMjwkBVYf0PM=; b=cyzPcyjufKmKHwm5wlUWfd3nu5RK2bU+DvHTMxIE9yGFmlGlwn6Krhge6nvMAHAk7O PAyNLJVhhvKif0nfzSC52lfEfD84gHaLXENGzQHhq4iN3q3xbr2PnOJRwX+/PjoVxy/2 fRLPBSSnurcnxWQDho6tMc5GyjL7GyXGpN4qbrSvTnfabwjFKbxezkNhPZqvXGraSUMR 6EtiXWneWuWfikdlOoFEQDvdbQTBgzr7gDHJi87cRXtGvBOGOrz1YkEfdWadIeUSH5zm hMlY8pZ78to0b7J0l7uOT6UfQ5J1iHUpf627sHZbDt12CCbjTtMCQf6imdARDP8sxJgP nb2A== X-Gm-Message-State: AD7BkJLor6IZUkJr/WQ9pzgWnZzmrKmcSj4iRMTnqf2/AxIwuvysdzHkaS73AhoF00wzbg== X-Received: by 10.112.166.3 with SMTP id zc3mr11123388lbb.129.1458668885246; Tue, 22 Mar 2016 10:48:05 -0700 (PDT) Received: from [192.168.1.42] (ppp109-252-76-159.pppoe.spdop.ru. [109.252.76.159]) by smtp.gmail.com with ESMTPSA id or8sm5317297lbb.39.2016.03.22.10.48.03 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 22 Mar 2016 10:48:04 -0700 (PDT) Subject: Re: [openbsd] 2.02-beta3: build fails - getroot.c:(.text+0x2b): undefined reference to `getrawpartition' To: Jiri B References: <20160314181957.GV17281@wolfman.devio.us> <56E706FC.4000905@gmail.com> <20160317101239.GY17281@wolfman.devio.us> <56EAD33C.2020805@gmail.com> <56EAD654.9080509@gmail.com> <20160317205641.GB32407@wolfman.devio.us> <56EB7577.2010503@gmail.com> <20160318130142.GE32407@wolfman.devio.us> <56EC3279.2020909@gmail.com> <20160322103131.GH32407@wolfman.devio.us> From: Andrei Borzenkov Message-ID: <56F18553.9020306@gmail.com> Date: Tue, 22 Mar 2016 20:48:03 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <20160322103131.GH32407@wolfman.devio.us> Content-Type: multipart/mixed; boundary="------------050109030706000900000605" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c04::229 Cc: Vladimir 'phcoder' Serbinenko , The development of GNU GRUB , bug-grub@gnu.org X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2016 17:48:11 -0000 This is a multi-part message in MIME format. --------------050109030706000900000605 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 22.03.2016 13:31, Jiri B пишет: >>>>> [...] >>>>> CFLAGS=-ftrampolines -fno-stack-protector -fno-pie -nopie >>>>> >>>>> $ ls -l /home/jirib/openbsd/pobj/grub-2.02-beta3/fake-amd64/usr/local/lib/grub/i386-pc/lzma_decompress.im* >>>>> -rwxr-xr-x 1 jirib wheel 3068 Mar 17 21:45 /home/jirib/openbsd/pobj/grub-2.02-beta3/fake-amd64/usr/local/lib/grub/i386-pc/lzma_decompress.image* >>>>> -rw-r--r-- 1 jirib wheel 2832 Mar 17 21:45 /home/jirib/openbsd/pobj/grub-2.02-beta3/fake-amd64/usr/local/lib/grub/i386-pc/lzma_decompress.img >>>>> >>>>> [...] >>>>> >> >> Good. Please test attached patch. >> >> [...] >> >> diff --git a/configure.ac b/configure.ac >> index a85b134..57e1713 100644 >> --- a/configure.ac >> +++ b/configure.ac >> @@ -1185,9 +1185,9 @@ CFLAGS="$TARGET_CFLAGS" >> # Position independent executable. >> grub_CHECK_PIE >> [# Need that, because some distributions ship compilers that include >> -# `-fPIE' in the default specs. >> +# `-fPIE' or '-fpie' in the default specs. >> if [ x"$pie_possible" = xyes ]; then >> - TARGET_CFLAGS="$TARGET_CFLAGS -fno-PIE" >> + TARGET_CFLAGS="$TARGET_CFLAGS -fno-PIE -fno-pie" >> fi] >> >> CFLAGS="$TARGET_CFLAGS" > > Thx, builds find on OpenBSD. > OK, so we are left with -ipath. One possibility is something like attached patch; another - to replace ipath with -path | grep -v. Latter is probably more readable. --------------050109030706000900000605 Content-Type: text/x-patch; name="find-ipath.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="find-ipath.patch" From: Andrei Borzenkov Subject: [PATCH] autogen.sh: avoid non-portable -ipath and -iname OpenBSD 5.9 find does not have ipath, although it supports iname. For consistency, also replace iname with suitable pattern. Reported By: Jiri B --- autogen.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/autogen.sh b/autogen.sh index 7537561..cd254d8 100755 --- a/autogen.sh +++ b/autogen.sh @@ -8,8 +8,9 @@ set -e export LC_COLLATE=C unset LC_ALL -find . -iname '*.[ch]' ! -ipath './grub-core/lib/libgcrypt-grub/*' ! -ipath './build-aux/*' ! -ipath './grub-core/lib/libgcrypt/src/misc.c' ! -ipath './grub-core/lib/libgcrypt/src/global.c' ! -ipath './grub-core/lib/libgcrypt/src/secmem.c' ! -ipath './util/grub-gen-widthspec.c' ! -ipath './util/grub-gen-asciih.c' |sort > po/POTFILES.in -find util -iname '*.in' ! -name Makefile.in |sort > po/POTFILES-shell.in +# This avoids non-portable -iname and -ipath +find . -name '*.[cC][hH]' ! -path './[gG][rR][uU][bB]-[cC][oO][rR][eE]/[lL][iI][bB]/[lL][iI][bB][gG][cC][rR][yY][pP][tT]-[gG][rR][uU][bB]/*' ! -path './[bB][uU][iI][lL][dD]-[aA][uU][xX]/*' ! -path './[gG][rR][uU][bB]-[cC][oO][rR][eE]/[lL][iI][bB]/[lL][iI][bB][gG][cC][rR][yY][pP][tT]/[sS][rR][cC]/[mM][iI][sS][cC].[cC]' ! -path './[gG][rR][uU][bB]-[cC][oO][rR][eE]/[lL][iI][bB]/[lL][iI][bB][gG][cC][rR][yY][pP][tT]/[sS][rR][cC]/[gG][lL][oO][bB][aA][lL].[cC]' ! -path './[gG][rR][uU][bB]-[cC][oO][rR][eE]/[lL][iI][bB]/[lL][iI][bB][gG][cC][rR][yY][pP][tT]/[sS][rR][cC]/[sS][eE][cC][mM][eE][mM].[cC]' ! -path './[uU][tT][iI][lL]/[gG][rR][uU][bB]-[gG][eE][nN]-[wW][iI][dD][tT][hH][sS][pP][eE][cC].[cC]' ! -path './[uU][tT][iI][lL]/[gG][rR][uU][bB]-[gG][eE][nN]-[aA][sS][cC][iI][iI][hH].[cC]' |sort > po/POTFILES.in +find util -name '*.[iI][nN]' ! -name Makefile.in |sort > po/POTFILES-shell.in echo "Importing unicode..." ${PYTHON} util/import_unicode.py unicode/UnicodeData.txt unicode/BidiMirroring.txt unicode/ArabicShaping.txt grub-core/unidata.c -- tg: (f4d35d4..) u/autogen-find-ipath (depends on: master) --------------050109030706000900000605--