From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 15 Oct 2021 15:34:47 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mbNMF-0007hc-JW for lore@lore.pengutronix.de; Fri, 15 Oct 2021 15:34:47 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mbNMF-00086L-6X; Fri, 15 Oct 2021 15:34:47 +0200 Received: from mail-eopbgr40063.outbound.protection.outlook.com ([40.107.4.63] helo=EUR03-DB5-obe.outbound.protection.outlook.com) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mbNM7-00086C-U4 for ptxdist@pengutronix.de; Fri, 15 Oct 2021 15:34:40 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZOEBRdlc/AUjXuw5jMZr+MmwFADZDl3H+rq73UU2DAtXI/BhshOaeDiswg6E8Z0kLwWwI5LWQLDE24Z6bafbiov4WQlDUZpIHUWHcAj+Cs9UAcnqKzxBbRUUm9c69MTVZ8cksj0UuPk6YQEVUZmtnzcq1MAPFWDQxW6EmxuB7NoIGjLLW6Mzpgn8aLmELPtktpMbkSJzpo0nmLM94SOsrARKIGARvY8GmZ28g+HTZWnN9+nTL2JUAfHeV/B7IN9U9ttD/Cflqd8rhWFw7WzxCaYfo3pH1t9tDBAewJ12uWeLmdmhoU2Yo5jzy+1aY2B4It68TiT9bkrAoCwJtZUpZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9Bxm1r2gUrx26NGkXN65+f6PvBLjeonVV88Hx3piouI=; b=ChRHKQWummwbPJD7fHzZVNv7QfIyELpYIkgAdmeXb7sl/bLQEs2k/cVJhIW4XzNeHu0vLRtztTbN3xrFJ58KbD5FJwk1LY00fvpTS0XjFOyZ1yTnlWEqJ1SQ01sTK0SYETSZ83+uvBV6karpgxenBBn+OjXbNL2kFM/h09qfnkFn5DLZmT11GkaLI0vD3jxhNnKjzY5Hbpq0NYMFtyyPYxtIChN6H8N6t12FGHiQUa/OWUEd1apKp4JlF8JjdaDdeidG70kHfwV44m3zgrupU23Tx7/ze0txfuPMWgb7q0R1bMFzjiYAtY8ou7MVI6H9tEXBoak3g9VunqkjP1BOXw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=t2data.com; dmarc=pass action=none header.from=t2data.com; dkim=pass header.d=t2data.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=t2datacom.onmicrosoft.com; s=selector1-t2datacom-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9Bxm1r2gUrx26NGkXN65+f6PvBLjeonVV88Hx3piouI=; b=T+DqZOCsvOTlKt8W8ssZsVsI6x2pJun7wnbgCSBLdy5UyO2TeUXJA9+nZYfOIUNnGxNFRke0cKfWSQ2cu8VOB6kNe1pZWkdG+zNJDoJ/ilsDfP7W2wJ89zbmLnG45DsLVSqFTx6aiy5ilZuHxEiWaG2VV2KqZdy3lBCRkKJocH4= Authentication-Results: pengutronix.de; dkim=none (message not signed) header.d=none;pengutronix.de; dmarc=none action=none header.from=t2data.com; Received: from AS8P251MB0167.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:403::21) by AS8P251MB0200.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:407::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.17; Fri, 15 Oct 2021 13:34:37 +0000 Received: from AS8P251MB0167.EURP251.PROD.OUTLOOK.COM ([fe80::4512:e545:5ad5:7d61]) by AS8P251MB0167.EURP251.PROD.OUTLOOK.COM ([fe80::4512:e545:5ad5:7d61%7]) with mapi id 15.20.4608.016; Fri, 15 Oct 2021 13:34:37 +0000 Message-ID: Date: Fri, 15 Oct 2021 15:34:34 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.1 Content-Language: en-US To: ptxdist@pengutronix.de References: <4d8f168a-d731-8cc0-892c-19c9f0cdc879@t2data.com> <20211015131257.GE2239952@pengutronix.de> From: Christian Melki In-Reply-To: <20211015131257.GE2239952@pengutronix.de> X-ClientProxiedBy: GV3P280CA0056.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:9::10) To AS8P251MB0167.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:403::21) MIME-Version: 1.0 Received: from [172.16.234.94] (212.247.174.226) by GV3P280CA0056.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:9::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.15 via Frontend Transport; Fri, 15 Oct 2021 13:34:37 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d07485f6-253e-4304-afd6-08d98fe08849 X-MS-TrafficTypeDiagnostic: AS8P251MB0200: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pWFexS/NQAc3D4kWMd+vY0OF3xLWFd9uz744H+WuagqGrhwF5v7LE0BmeeDtkgqZfnZ0mMoTVrTzr6jQbK4iy5A+qJqPk8Rff0Ahllqbm4jRXrsWKx9swGjsGxLvOjcdyr39erNa77Sa8VQjYFe8Y4HrtujuWGJxYvqVEIiuwGyHmfMadY3CqLT1NrMZtn1n/BV8xWuAjZaiHMvIXssesE4cQxaNK6nND6XYw4rOajzU2a4JJFAj72/nO5lZmZqlOIvhjatud6bf9CCnMxXJXICFKZRnTxdRsIEMSI9oQxT9jvSZ6/a3w35wPFbxEWdp9ooa5yQXzZfPsmsJnyVuJUwMj7yDOuDsoQt22Vy8FzNV13JYJJg51HGaC+4iu35Ox3xbRqCciZg1kaeghZ8fCf8Iaug/ksuhJjJypMzWVvUy5/JMR5EhodDXHnn7m5YFbFNk3AXNMSgiRu7TzJ3O/z7npmIIW/YrjEkwrQBh9ZLaTjTSvQcxeTx/NUy1TFZYVkqwkKyAWS1icWY/eOPgppl05VmAcdNVBrR66oPk9M98OMEl0p9rC+trwj3h43oGARa0n427VApIbgnrCl63gp80zuWOEXWQO2FfvF3f+gEd85cJDK+F27dEF5Ly/Doo1w1yq8DzbIsRSaSr9w6BUhl67b52hRt497DRzekrCbmltRbvh8pwVQs3P905MzlZs9EO9CE2MwgjrXc068wQKRycKnONygMkBZgkkobSIJ33UqSTjfmDU8drZxGqlPKbZs4mFnn87j525MY3Js/vFA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8P251MB0167.EURP251.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(376002)(346002)(366004)(42606007)(396003)(39830400003)(136003)(8936002)(6916009)(36756003)(38350700002)(66476007)(52116002)(66946007)(66556008)(186003)(31686004)(26005)(5660300002)(2906002)(6486002)(86362001)(6666004)(38100700002)(16576012)(53546011)(508600001)(8676002)(316002)(31696002)(956004)(44832011)(83380400001)(2616005)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ZnNsMDl6VUlVL0JHUGpmUXNlUnltcm5nRkN0L2Rp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Exchange-CrossTenant-Network-Message-Id: d07485f6-253e-4304-afd6-08d98fe08849 X-MS-Exchange-CrossTenant-AuthSource: AS8P251MB0167.EURP251.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2021 13:34:37.2638 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 27928da5-aacd-4ba1-9566-c748a6863e6c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: isGYD8BuF45QIdBxv88b+Jo8kwlmf5PSmqXAK0KNXZm0qOe0OtHUaIOSQFoPc8c431pyWbrr0TNAFXTQknaAVv5SHQ/khs3aIPztUMog9Dg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8P251MB0200 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.7 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,MSGID_FROM_MTA_HEADER,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [ptxdist] Request for comments: CROSS_LIB_DIR handling etc. X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false On 10/15/21 3:12 PM, Michael Olbrich wrote: > Hi, > > On Wed, Oct 13, 2021 at 09:29:24AM +0200, Christian Melki wrote: >> I've been correcting various hardcoded paths in ptxdist packages and whatnot >> lately. This started with ptxdist not coping well with toolchains that >> adhere to the ABI path for various architectures. >> >> Yesterday, I dug into the problem that on x86_64 (/lib64), all .pc.in -> .pc >> file transformations looked broken with hardcoded paths. At first I thought >> it had something to do with autoconf or pkg-config but after a while I found >> this. >> >> scripts/lib/ptxd_make_world_install_mangle_pc.awk >> >> Which after a while made me realize that there is still a lot of code in >> ptxdist core stuff that assumes that lib-paths are only /lib and nothing >> else. >> >> So. I'm presenting a two options here. >> >> 1. Fix all ptxdist core stuff, because really, ptxdist should be more >> flexible than hardcoded paths. Esp. for libs. >> >> 2. Split ptxd_get_lib_dir, because, ld.so path should not be assumed to be >> the same as main library install path. So ptxd_get_ld_lib_dir which does >> what it does today and install ld there and ptxd_get_lib_dir = /lib and be >> done with all the userspace library transformations. > > So, put everything in lib/ and only the ld.so in lib64/, right? > Yes. And depending on toolchain configuration.. + glibc, but not the rest of the userspace libs as you say. Since the copy_toolchain routines query the linker by itself afaiu. Either way, the important bit is the hardcoded path to ld.so in the ABI declaration. That's the one you have to hit, otherwise you'll have bricked userspace. :) The rest can be solved with ld.so.conf. >> So. Number one probably requires a lot of more work and a lot of headache. > > And we'll probably break it more often. Pretty much guaranteed, yes. >> Number two should be rather straightforward, atleast in theory. > > There will be some packages that will use lib64/ anyways, because they > query the toolchain directly. We have a platform-foo/sysroot-host/lib64 > symlink because of that. > >> Any thoughts? > > I actually really like option 2. It sounds like a lot less work and > problems in the long run. While I'd like a more generic solution, I can absolutely value things that works and are simple. So, less problems it is. :) > If necessary, we could also make lib64/ a symlink to lib/ (in > ptxd_make_world_install_prepare() and in the final rootfs). That way, it > wouldn't matter which one the packages are using. > But I'd like to avoid that if possible. Mmm. I botched my rules to always include a separate lib64 now, but that's just a hack. > Michael > _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de