Re: Why all this GARBAGE WARE for one single app?

2023-11-25 Thread Richard L. Hamilton
Not some scam, actual dependencies, direct or indirect.

Think of it as feature creep, not by MacPorts but by the app developers. And 
also, anything they depend on, they don't have to re-invent.

But yelp is the help viewer (with capabilities beyond a text editor) that gedit 
expects to be available, and gstreamer is something yelp indirectly requires.

Some apps will ultimately require most of the GTK (or KDE) desktop 
infrastructure. Only for the 1st that requires that, subsequent ones use the 
existing copy, so building will be faster for them.

You may not like reality, but ranting is rude.

> On Nov 25, 2023, at 22:37, Mark Dm  wrote:
> 
> I am trying to install gedit on mac , installed macports, then the xcode 
> requirements rand the command to install gedit. Now about 209 minutes later I 
> am still seeing GARBAGE like GstreamerXXX and GstreamerYYY still installing . 
> THIS IS NUTS! I NEVER ASKED TO INSTALL GSTREAMER. I know there are 
> dependencies but how can gstreamer be a dependency for a text editor?
> 
> WTF now it is installing something called "yelp" 
> 
> I remember now I tried MacPorts years ago and ended up having to reformat my 
> Mac to get all the speed back after the couple of apps I installed. I regret 
> trying it again and thing it is all a bunch of GARBAGE 
> 
> Is this juist a method by which you can install garbageware onto a mac for 
> unsuspecting users?



Re: Why all this GARBAGE WARE for one single app?

2023-11-25 Thread Bill Cole

On 2023-11-25 at 22:37:18 UTC-0500 (Sat, 25 Nov 2023 19:37:18 -0800)
Mark Dm 
is rumored to have said:

I am trying to install gedit on mac , installed macports, then the 
xcode
requirements rand the command to install gedit. Now about 209 minutes 
later

I am still seeing GARBAGE like GstreamerXXX and GstreamerYYY still
installing . THIS IS NUTS! I NEVER ASKED TO INSTALL GSTREAMER. I know 
there
are dependencies but how can gstreamer be a dependency for a text 
editor?


It is on EL-based Linux as well. 'dnf install gedit' on Alma9 comes back 
with a list of 170 packages including multiple gstreamer* packages. 
CentOS7 says it's got 108 dependencies.


It's a GUI text editor. It requires a GUI. Complain to GNOME.


WTF now it is installing something called "yelp"


That's the help browser for the GNOME desktop. I have no idea how 
essential it is for gedit, but it's deemed a "runtime" dependency, 
implying that it may be possible to create a variant that does not 
include help files or require yelp...



I remember now I tried MacPorts years ago and ended up having to 
reformat
my Mac to get all the speed back after the couple of apps I installed. 
I

regret trying it again and thing it is all a bunch of GARBAGE

Is this juist a method by which you can install garbageware onto a mac 
for

unsuspecting users?


I invite you to look at what MacPorts actually does. It's mostly TCL 
code which is documented and its operations are logged to whatever 
degree you desire to read.


If you deem the GNOME Desktop to be "garbageware" then I suggest that 
gedit is not the editor you really want.





--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire


Re: Why all this GARBAGE WARE for one single app?

2023-11-25 Thread Austin Ziegler
Not at all. I suspect that the port you’ve chosen is a little bit uglier
than most because the default version
of gedit is `gedit +python310+x11`, which has 557 direct and transitive
unique dependencies (including
"yelp", the default GNOME help browser) for build or runtime (298 are
runtime only). The variant
`gedit +python310+quartz` has 373 direct and transitive unique dependencies
for build or runtime (144
are runtime only).

If you were running this on a Linux system, you would still have all of
these libraries and executables
installed, but you wouldn't notice it because they're (usually) part of the
graphical system you would already
have installed.

The Homebrew installation of Gedit only has ~70 runtime dependencies, but a
large part of that I think is
that the packages are broken up differently between Homebrew and MacPorts —
and it appears that the
Homebrew package is what MacPorts would call the +quartz variant.

MacPorts works differently than Homebrew, and while I still use both, I am
shifting more and more to
MacPorts.

One could have a discussion as to why the `+x11` variant of gedit is the
preferred variant for MacPorts,
but that's different from what was originally asked.

-a




On Sat, Nov 25, 2023 at 10:37 PM Mark Dm  wrote:

> I am trying to install gedit on mac , installed macports, then the xcode
> requirements rand the command to install gedit. Now about 209 minutes later
> I am still seeing GARBAGE like GstreamerXXX and GstreamerYYY still
> installing . THIS IS NUTS! I NEVER ASKED TO INSTALL GSTREAMER. I know there
> are dependencies but how can gstreamer be a dependency for a text editor?
>
> WTF now it is installing something called "yelp"
>
> I remember now I tried MacPorts years ago and ended up having to reformat
> my Mac to get all the speed back after the couple of apps I installed. I
> regret trying it again and thing it is all a bunch of GARBAGE
>
> Is this juist a method by which you can install garbageware onto a mac for
> unsuspecting users?
>


-- 
Austin Ziegler • halosta...@gmail.com • aus...@halostatue.ca
http://www.halostatue.ca/ • http://twitter.com/halostatue


Why all this GARBAGE WARE for one single app?

2023-11-25 Thread Mark Dm
I am trying to install gedit on mac , installed macports, then the xcode
requirements rand the command to install gedit. Now about 209 minutes later
I am still seeing GARBAGE like GstreamerXXX and GstreamerYYY still
installing . THIS IS NUTS! I NEVER ASKED TO INSTALL GSTREAMER. I know there
are dependencies but how can gstreamer be a dependency for a text editor?

WTF now it is installing something called "yelp"

I remember now I tried MacPorts years ago and ended up having to reformat
my Mac to get all the speed back after the couple of apps I installed. I
regret trying it again and thing it is all a bunch of GARBAGE

Is this juist a method by which you can install garbageware onto a mac for
unsuspecting users?


Re: Help with zef Portfile

2023-11-25 Thread Rainer Müller

On 25.11.23 16:07, Joshua Root wrote:
The default destroot phase builds a string to pass to 'system' by 
combining destroot.cmd, destroot.args, etc. In this case, it might be 
easiest to use those for the rakudo command, and create the symlinks in 
a post-destroot block?


Also note that all files have to be put into ${destroot} during the destroot 
phase. The files will afterwards be put into an archive from this ${destroot} 
and will only later be moved to the real ${prefix} when activating the port.

When moving these symlink commands to a post-destroot phase, these should look 
like this:

post-destroot {
ln -s "${prefix}/share/perl6/site/bin/zef"   "${destroot}${prefix}/bin/zef"
ln -s "${prefix}/share/perl6/site/bin/zef-m" 
"${destroot}${prefix}/bin/zef-m"
}

Rainer


Re: PostgeSQL problem

2023-11-25 Thread Eckard Brauer
Hi,

as there is/are some malloc error(s), everything could simply be caused
by some broken binary. So please check, if the problem remains when
providing user credentials ("-U user -P password" or at least "-U
user").

Usually psql will connect with the (system) user's login name if no "-U
db-user" arg is given. So either you tried to connect as a different
user with no DB account (each user account has to be added to the DB
before, as system and DB users are completely independent, or the
upgrade has set up a completely new database, where no (ordinary)
system user has yet an account. That happens (I have a server on a
linux box) with major updates (14 to 15 or the like).

Hope it helps.

Best,
Eckard

Am Sat, 25 Nov 2023 11:59:46 +
schrieb Bill Hill via macports-users
:

> Hi,
> I've run a MacPorts update, and now postgres is broken.
[..]
> The command that tripped up:
>psql --host=raidbox.lan sen01 senlog -c "SELECT COUNT(*) FROM
> weather WHERE dtstamp>(TIMEZONE('utc', NOW())-'1 hour'::INTERVAL)"
> The error: psql: error: connection to server at "raidbox.lan", port
> 5432 failed: FATAL:  no PostgreSQL user name specified in startup
> packet connection to server at "raidbox.lan", port 5432 failed:
> FATAL:  no PostgreSQL user name specified in startup packet
> psql(31651,0x7ff844dff9c0) malloc: *** error for object 0xab: pointer
> being freed was not allocated psql(31651,0x7ff844dff9c0) malloc: ***
> set a breakpoint in malloc_error_break to debug Abort trap: 6 I get
> about the same messages from /opt/local/bin/psql13 and
> /opt/local/bin/psql15 (15 is active) It isn't a server problem; I can
> run the query on the server, and on a linux box, and on a Debian VM
> under Parallels. Also, I tried installing the brew version: brew
> install postgresql@16 And
> /usr/local/Cellar/postgresql@16/16.1/bin/psql works. In addition,
> /opt/local/bin/pgcli gives: Illegal instruction: 4 And
> qt5-psql-plugin @5.15.11_0+postgresql13 and octave-database don't
> work either. How can I find out what's broken, and how can I fix
> this? Thanks. Bill



-- 
Diese Mail wurde ausschließlich aus klimaneutralen Bits und Bytes
erzeugt. This mail was generated exclusively from climate-neutral bits
and bytes.


Re: Help with zef Portfile

2023-11-25 Thread Joshua Root

raf wrote:


The destroot part looks like this:

   destroot {
   "${prefix}/bin/rakudo" -I"${worksrcpath}" bin/zef \
   --to="inst#${destroot}${prefix}/share/perl6/site" \
   install "${worksrcpath}"

   ln -s "${prefix}/share/perl6/site/bin/zef"   "${prefix}/bin/zef"
   ln -s "${prefix}/share/perl6/site/bin/zef-m" "${prefix}/bin/zef-m"
   }

Which results in this error:

   :error:destroot Failed to destroot raku-zef: invalid command name 
"/opt/local/bin/rakudo"
   :debug:destroot Error code: NONE
   :debug:destroot Backtrace: invalid command name "/opt/local/bin/rakudo"
   :debug:destroot while executing
   :debug:destroot "$procedure $targetname"

As "${prefix}/bin/rakudo" is valid in test.cmd,
why isn't it valid during destroot?
And how do I help destroot find it?


This is really a macports-dev question, so cross-posting this there.

When you override (e.g. destroot { ... }) or augment (e.g. post-build { 
... }) a port phase, the code you provide is executed in the Tcl 
interpreter. '${prefix}/bin/rakudo' is indeed not a valid Tcl command. 
It happens that we do define an 'ln' Tcl command that takes args very 
much like ln(1). If you want to execute something in the shell, you have 
to use the 'system' command (or sometimes 'exec' if you want to capture 
the output.)


The default destroot phase builds a string to pass to 'system' by 
combining destroot.cmd, destroot.args, etc. In this case, it might be 
easiest to use those for the rakudo command, and create the symlinks in 
a post-destroot block?


- Josh



PostgeSQL problem

2023-11-25 Thread Bill Hill via macports-users

Hi,
I've run a MacPorts update, and now postgres is broken.
I did:
  sudo port selfupdate && sudo port upgrade outdated && sudo port -N reclaim
which upgraded about a dozen ports, the only ones of which I remember were:
  exa, py310-mypy and py311-mypy
Now some years old scripts using psql no longer work.
The command that tripped up:
  psql --host=raidbox.lan sen01 senlog -c "SELECT COUNT(*) FROM weather WHERE 
dtstamp>(TIMEZONE('utc', NOW())-'1 hour'::INTERVAL)"
The error:
  psql: error: connection to server at "raidbox.lan", port 5432 failed: FATAL:  
no PostgreSQL user name specified in startup packet
  connection to server at "raidbox.lan", port 5432 failed: FATAL:  no 
PostgreSQL user name specified in startup packet
  psql(31651,0x7ff844dff9c0) malloc: *** error for object 0xab: pointer being 
freed was not allocated
  psql(31651,0x7ff844dff9c0) malloc: *** set a breakpoint in malloc_error_break 
to debug
  Abort trap: 6
I get about the same messages from /opt/local/bin/psql13 and 
/opt/local/bin/psql15 (15 is active)
It isn't a server problem; I can run the query on the server, and on a linux 
box, and on a Debian VM under Parallels.
Also, I tried installing the brew version:
  brew install postgresql@16
And /usr/local/Cellar/postgresql@16/16.1/bin/psql works.
In addition, /opt/local/bin/pgcli gives:
  Illegal instruction: 4
And qt5-psql-plugin @5.15.11_0+postgresql13 and octave-database don't work 
either.
How can I find out what's broken, and how can I fix this?
Thanks.
Bill