Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 944962 - dev-db/pgmodeler-1.1.5, 9999 ebuilds
Summary: dev-db/pgmodeler-1.1.5, 9999 ebuilds
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-26 01:11 UTC by CaptainBlood
Modified: 2025-02-27 15:59 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
tar directory (pgmodeler.tar,20.00 KB, application/x-tar)
2024-11-26 01:11 UTC, CaptainBlood
Details
tar directory (pgmodeler.tar,20.00 KB, application/x-tar)
2024-11-29 11:37 UTC, CaptainBlood
Details
tar gz directory (pgmodeler.tar.gz,2.66 KB, application/gzip)
2024-11-29 13:27 UTC, CaptainBlood
Details

Note You need to log in before you can comment on or make changes to this bug.
Description CaptainBlood 2024-11-26 01:11:20 UTC
Created attachment 911919 [details]
tar directory

Only tested with gcc:14+glibc.
patch in files currently commented out in ebuild, as not required when build as above.

The core of the upgrade is there.

Dependencies version check might be advisable, to match upstream requirements.

My apologizes for not PR on github.
Comment 1 CaptainBlood 2024-11-26 01:31:12 UTC
amd64 here.
Comment 2 Eli Schwartz gentoo-dev 2024-11-26 02:56:20 UTC
Thanks for looking into this.

Recommendation: you can avoid redefining src_prepare() by moving xml-error.patch into a global PATCHES=() variable.

The commented out older version of DEPEND could also be dropped since it's still able to be seen in the old ebuild. ;)

Moving to SLOT=6 is an absolute dealbreaker, it cannot be done -- this says that pgmodeler 0.9.4 and 1.1.5 can be installed at the same time as each other, but they install the same files... what's the purpose of that change?
Comment 3 CaptainBlood 2024-11-26 11:52:15 UTC
Agree slotting albeit reflecting qt level should be cancelled.

User should be offered to alternatively install a qt5 XOR qt6 version.

I know PATCHES usage is recommended.
This is from a PERSONAL overlay, sometimes infringing gentoo packager tendencies as a whole.
Comment 4 CaptainBlood 2024-11-26 12:12:58 UTC
Removal of comments could be considered at least level of priority, when not explicitly stated as a rule somewhere.

It has no practical impact on the final user experience.

Thks 4 the advice however.
Comment 5 Louis Frayser 2024-11-27 23:06:06 UTC
Tested the 1.1.5 ebuild

I changed the SLOT back to "0" and emerged pgmodeler-1.1.5.

The emerge pulled in postgresql-14, so I tested with that version of the database.

I was able to connect with pgmodeler and view my old tables*.
--

*I currently use posgresql-15.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-27 23:41:17 UTC
(In reply to CaptainBlood from comment #4)
> Removal of comments could be considered at least level of priority, when not
> explicitly stated as a rule somewhere.

It matters because it's not clear if your submission is complete or if it's a TODO, or if those things need addressing still, or what.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-27 23:42:06 UTC
(In reply to CaptainBlood from comment #3)
> I know PATCHES usage is recommended.
> This is from a PERSONAL overlay, sometimes infringing gentoo packager
> tendencies as a whole.

I understand, but you're submitting the ebuild here - which is appreciated - and receiving feedback as a result. All this reply really says is "I agree".
Comment 8 Louis Frayser 2024-11-28 02:11:31 UTC
Strange result for the 9999 ebuild

I changed the SLOT back to "0" and emerged pgmodeler-9999.

I installed then restored my data to postgresql-17 and tested with that version of the database and POSTGRES_TARGETS.

When emerging: emerge -av pgmodeler with POSTGRES_TARGETS=posrgresql15 potgresql17" (make.conf), I get this...

   root@Ghost-of-Gentoo /usr/local/portage/dev-db/pgmodeler 
   # emerge --nodeps -g n -k n  -av dev-db/pgmodeler

   These are the packages that would be merged, in order:

   [ebuild   R   ~] dev-db/pgmodeler-9999::local  POSTGRES_TARGETS="postgres15 -postgres14 -postgres16" 0 KiB

NOTE:  There's no mention of postgres17.
   I even tried USE=postgres_targets_postgres17 to no avail. I checked emerge --info and 17 was there along with 15.

I was still able to connect to posrgresql-17 with pgmodeler and view my tables.

Eix pgmodeler shows...

Installed versions:  9999*l{gpkg}[1](17:19:13 11/27/24)(POSTGRES_TARGETS="postgres15 -postgres14 -postgres16"

I did grep thru /var/db/repos/gentoo/eclass for POSTGRES_TARGETS and didn't see anything suspicious.
--
Any ideas?
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-28 02:14:44 UTC
You might be being affected by:
profiles/base/use.stable.mask:9:postgres_targets_postgres17
but it's a bit odd that you're hitting that with package.accept_keywords (as shown in your paste by the ~) which I think bypasses that.
Comment 10 Louis Frayser 2024-11-28 02:48:36 UTC
(In reply to Sam James from comment #9)
> You might be being affected by:
> profiles/base/use.stable.mask:9:postgres_targets_postgres17
> but it's a bit odd that you're hitting that with package.accept_keywords (as
> shown in your paste by the ~) which I think bypasses that.

Thanks. I found the problem:  Back in March, I copied a postgres.class from the gentoo repo to the my local one. It had an old definition of _POSTGRES_ALL_VERSIONS.  I just deleted it and all is well.
Comment 11 CaptainBlood 2024-11-29 11:37:18 UTC
Created attachment 912690 [details]
tar directory

slot 6 reverted to slot 0
Comment 12 CaptainBlood 2024-11-29 12:22:24 UTC
last tar inconsistent... in progress
Comment 13 CaptainBlood 2024-11-29 13:27:30 UTC
Created attachment 912698 [details]
tar gz directory

cleanup
postgresql:17 for all as upstream seems to allow it.
Comment 14 Andreas Sturmlechner gentoo-dev 2024-12-02 08:53:11 UTC
Please don't tar.gz that stuff unecessarily.

Simply attach unified diffs for ebuild changes, and any patches applied in FILESDIR as plaintext patch attachment.
Comment 15 Christian D. 2025-02-27 15:59:08 UTC
I just tried this with pgmodeler-1.1.6, which has been released in the meantime. Is seems to build just fine, except that when starting I was greeted with the notification that a new version is available, despite the

NO_UPDATE_CHECK=1

in the eqmake6 call. I'm not sure how essential is to track that down though. I would be happy if a 1.1.x version would end up in the main repository.