Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#46696 closed enhancement (fixed)

py-python-poppler-qt4: rename to py-poppler-qt4 and use PyPI

Reported by: dliessi (Davide Liessi) Owned by: petrrr
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch maintainer Cc:
Port: py-python-poppler-qt4 py-poppler-qt4 frescobaldi

Description

I decided to rename py-python-poppler-qt4 and to use PyPI as source instead of GitHub (see the thread starting with this message).
I had to remove the entry about py-python-poppler-qt4 from py-graveyard because MacPorts cannot handle "replaced_by chains" (see the thread starting with this message).

The changes are meant to be applied all at once:

  • the Portfile for the new port py-poppler-qt4 is Portfile-py-poppler-qt4;
  • the py-python-poppler-qt4 Portfile must be replaced by Portfile-py-python-poppler-qt4;
  • the frescobaldi Portfile must be patched with Portfile-frescobaldi.diff;
  • the py-graveyard Portfile must be patched with Portfile-py-graveyard.diff.

Attachments (7)

Portfile-py-poppler-qt4 (1.9 KB) - added by dliessi (Davide Liessi) 9 years ago.
new port py-poppler-qt4
Portfile-py-python-poppler-qt4 (460 bytes) - added by dliessi (Davide Liessi) 9 years ago.
replace py-python-poppler-qt4 Poppler
Portfile-py-graveyard.diff (427 bytes) - added by dliessi (Davide Liessi) 9 years ago.
patch py-graveyard
Portfile-frescobaldi.diff (823 bytes) - added by dliessi (Davide Liessi) 9 years ago.
patch frescobaldi (updated)
01-tiny-whitespace-change.diff (683 bytes) - added by dliessi (Davide Liessi) 9 years ago.
New patch set: patch 1
02-python-poppler-qt4-switch-to-PyPI.diff (1.7 KB) - added by dliessi (Davide Liessi) 9 years ago.
New patch set: patch 2
03-rename-py-poppler-qt4.diff (6.2 KB) - added by dliessi (Davide Liessi) 9 years ago.
New patch set: patch 3

Download all attachments as: .zip

Change History (21)

Changed 9 years ago by dliessi (Davide Liessi)

Attachment: Portfile-py-poppler-qt4 added

new port py-poppler-qt4

Changed 9 years ago by dliessi (Davide Liessi)

replace py-python-poppler-qt4 Poppler

Changed 9 years ago by dliessi (Davide Liessi)

Attachment: Portfile-py-graveyard.diff added

patch py-graveyard

comment:1 Changed 9 years ago by dliessi (Davide Liessi)

(Oops! The description of Portfile-py-python-poppler-qt4 was meant to say "replace py-python-poppler-qt4 Portfile" and not "... Poppler".)

comment:2 Changed 9 years ago by petrrr

Cc: petr@… added

Cc Me!

comment:3 Changed 9 years ago by petrrr

Cc: petr@… removed
Owner: changed from macports-tickets@… to petr@…

Changed 9 years ago by dliessi (Davide Liessi)

Attachment: Portfile-frescobaldi.diff added

patch frescobaldi (updated)

comment:4 Changed 9 years ago by dliessi (Davide Liessi)

I updated the patch for frescobaldi to also increase the revision. I initially thought that this wasn't necessary: frescobaldi keeps running as expected, since py-python-poppler-qt4 and py-poppler-qt4 install the same files in the same locations. However dependencies of installed ports are not read from the Portfiles but from the registry, so py-python-poppler-qt4 is still considered a dependency of frescobaldi and cannot be uninstalled.

comment:5 Changed 9 years ago by petrrr

Yes, dependencies are recorded in the registry.

So, when you change them but do not revbump, the port remains registered with this old dependencies. In some cases I was said not to revbump after such changes as this would trigger rebuilds without any real change the installed files. However, I found that in some cases it is necessary, especially if you want to resolve dependency conflicts. Here, you definitely want that the entry in the registry changes.

BTW: In future, please avoid submitting combined files and provide unified diffs. This will help a lot. The Portfile for py-poppler-qt4 is not really new, it has a history we want to preserve and we are supposed to commit non-semantic format changes as separated changesets. So I cannot commit immediately based on your files (therefore the delay).

comment:6 in reply to:  5 Changed 9 years ago by dliessi (Davide Liessi)

Replying to petr@…:

Here, you definitely want that the entry in the registry changes.

Ok.

BTW: In future, please avoid submitting combined files and provide unified diffs. This will help a lot. The Portfile for py-poppler-qt4 is not really new, it has a history we want to preserve and we are supposed to commit non-semantic format changes as separated changesets. So I cannot commit immediately based on your files (therefore the delay).

I'm sorry, I don't fully understand: what did I do wrong and what should I have done? I'll submit my changes again in the preferred format, if you can explain this to me.

comment:7 in reply to:  5 ; Changed 9 years ago by dliessi (Davide Liessi)

To be more precise:

Replying to petr@…:

In future, please avoid submitting combined files and provide unified diffs.

I understand that (according to the guide) I should have submitted diff files for each one of py-python-poppler-qt4 and py-poppler-qt4, but...

The Portfile for py-poppler-qt4 is not really new, it has a history we want to preserve

... py-poppler-qt4 is a new file, although it has similar content to the old py-python-poppler-qt4; on the other hand the new py-python-poppler-qt4 is completely different from the old one, so I thought it was clearer to read the new portfile instead of a meaningless diff. How should I have prepared a "history-preserving" diff?

and we are supposed to commit non-semantic format changes as separated changesets.

I don't think I understand this part.

comment:8 in reply to:  7 Changed 9 years ago by dliessi (Davide Liessi)

Replying to petr@…:

and we are supposed to commit non-semantic format changes as separated changesets.

I don't think I understand this part.

I saw your commit r132349 and understood. (I don't know what I was thinking about. :D)

Let me know if you need me to do anything to help.

Changed 9 years ago by dliessi (Davide Liessi)

New patch set: patch 1

Changed 9 years ago by dliessi (Davide Liessi)

New patch set: patch 2

Changed 9 years ago by dliessi (Davide Liessi)

New patch set: patch 3

comment:9 Changed 9 years ago by dliessi (Davide Liessi)

Please discard all patches not starting with a number!

I uploaded a new patch set, each patch corresponds to a single commit and does only one (set of related) thing(s).

They must be applied to the root of the dports tree with patch -p0 < patchname.diff in the order of the numbers.

Here are the proposed commit messages:
01-tiny-whitespace-change.diff​: "py-python-poppler-qt4: whitespace change"
02-python-poppler-qt4-switch-to-PyPI.diff: "py-python-poppler-qt4: use PyPI"
03-rename-py-poppler-qt4.diff: "py-python-poppler-qt4: rename to py-poppler-qt4; update dependency in frescobaldi"

comment:10 Changed 9 years ago by petrrr

Committed in diff 01 in r133787 and diff 02 in r133788, with small changes to livecheck.

comment:11 Changed 9 years ago by dliessi (Davide Liessi)

Thanks!

Later I'll rebase diff 03 on the current status, so it will apply cleanly.

comment:12 Changed 9 years ago by petrrr

Unfortunately there is one problem with the patch 02. The checksums are actually incorrect as they are relative to the github package not the pypi package, but the mirrored packages would not change. So the situation is similar to a stealth update. ;-/.

Corrected in r133804. The result might be that checksum fails if the tarball is fetched from a macport mirror. As this is only temporary, I won't handle this as a stealth update.

Last edited 9 years ago by petrrr (previous) (diff)

comment:13 Changed 9 years ago by petrrr

Resolution: fixed
Status: newclosed

The name change and associated changes were committed in r133805. Closing as fixed.

comment:14 Changed 9 years ago by dliessi (Davide Liessi)

Thanks!

Note: See TracTickets for help on using tickets.