tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Reviving pkgsrc for (modern-ish) AIX




On 5/19/25 7:17 PM, Brian Callahan wrote:
Hi all --

Thomas alerted me to the existence of a thread based on my blog post prior to my joining the list, so apologies for creating a new thread.

Thanks for the hints. I'll note that I did not modify my /opt/pkg/etc/ mk.conf other than what the diff from the blog post adds (and I also added MAKE_JOBS=3). I am away the next few days but I will try some of these out when I am back. Thomas also gave me some hints to fix the cosmetic AIX 2 vs AIX 7.2 issue which I also hope to fix when I am back.

Thanks.

~Brian



Hi Brian,

Excited to see interest in pkgsrc on AIX!

I periodically re-bootstrap my AIX 7.2 machine to see if I can get perl to build. Unfortunately it doesn't.

I'm using gcc10 from the AIX open source toolbox repo (rpms).

As of a few days ago I can bootstrap but cannot get perl to build and that just leaves things dead-in-the-water.

My setup is below. Is there a link to your blog post?

--
Louis


Currently my setup has this diff to the CVS pkgsrc - that's pretty old and I'm not sure it's still needed:

Index: sysutils/install-sh/files/install-sh.in
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/install-sh/files/install-sh.in,v
retrieving revision 1.6
diff -r1.6 install-sh.in
284c284
< if [ x"$stripcmd" != x ]; then $doit $stripcmd $stripflags "$dsttmp"; else true;fi &&
---
> if [ x"$stripcmd" != x ]; then OBJECT_MODE=64 $doit $stripcmd $stripflags "$dsttmp"; else true;fi &&



I bootstrap with:

LDFLAGS=-pthread ./bootstrap --prefix=/opt/pkg --abi 64 --compiler=gcc --full --workdir /opt/pkg/obj/bootstrap

And mk.conf looks like this (perl options are just the latest attempt).

.ifdef BSD_PKG_MK       # begin pkgsrc settings

ABI=                    64
PKGSRC_COMPILER=        gcc

PREFER_PKGSRC=          yes

PKG_DBDIR=              /opt/pkg/pkgdb
LOCALBASE=              /opt/pkg
SYSCONFBASE=            /opt/pkg/etc
VARBASE=                /opt/pkg/var
PKG_TOOLS_BIN=          /opt/pkg/sbin
PKGINFODIR=             info
PKGMANDIR=              man

PACKAGES=               /opt/pkg/obj/packages
WRKOBJDIR=              /opt/pkg/obj
DISTDIR=                /opt/pkg/obj/distfiles

TOOLS_PLATFORM.install?=        /opt/pkg/bin/install-sh
TOOLS_PLATFORM.strip?=          /opt/pkg/bin/strip
TOOLS_PLATFORM.sh?=             /opt/pkg/bin/mksh
TOOLS_PLATFORM.ksh?=            /opt/pkg/bin/mksh
TOOLS_PLATFORM.awk?=            /opt/pkg/bin/nawk
TOOLS_PLATFORM.sed?=            /opt/pkg/bin/nbsed

.if "${PKGPATH}" == "lang/perl5"

CC=gcc
CFLAGS+=                        -maix64
LDFLAGS+= -Wl,-s -Wl,-lpthreads -Wl,-brtl -Wl,-bdynamic -Wl,-b64
CONFIGURE_ARGS+=                -Darchname=ppc-aix
CONFIGURE_ARGS+=                -Duseshrplib
CONFIGURE_ARGS+= -Dshrpldflags="-H512 -T512 -bhalt:4 -bM:SRE -bE:perl.exp"

.endif

.endif                  # end pkgsrc settings


Home | Main Index | Thread Index | Old Index