Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#17605 closed update (fixed)

pspp-0.6.1 Portfile patch

Reported by: jeremy@… Owned by: nerdling (Jeremy Lavergne)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: portfile update Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: pspp

Description

Added variants and default variants to the pspp portfile.

Moved perl from depends_lib to depends_build.

Attachments (2)

Portfile.diff (2.8 KB) - added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) 15 years ago.
Portfile-pspp.diff (3.9 KB) - added by jeremy@… 15 years ago.
My apologies: I created the diff in the wrong direction!

Download all attachments as: .zip

Change History (15)

comment:1 Changed 15 years ago by jeremy@…

The diff is against r42203 instead of ticket number.

comment:2 Changed 15 years ago by jeremy@…

Further update:

  • formatting better matches the suggested styles
  • shell scripts added to include dylibs when invoking pspp binaries

comment:3 Changed 15 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: mcalhoun@… added

Cc Me!

comment:4 Changed 15 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

A few comments on the patch:

  • Whitespace changes almost always get a separate commit so it is easier to track changes.
  • If the port is installed without the ncurses variant but with ncursesw installed, won't this be a problem if ncursesw is subsequently uninstalled. This is not a problem with, for example, the graph variant due to --without-libplot.
  • Setting LD_LIBRARY_PATH is almost never necessary. Why can't psppir be called directly?
  • I can not remember where I read it, but useful functionality shouldn't be split off into a variant without a compelling reason. Is that the case with pspp? Personally, I have found most variants to be more trouble than they are worth.

comment:5 in reply to:  4 Changed 15 years ago by jeremy@…

Thanks for the comments mcalhoun.

  • I was originally going to do the whitespace changes in a separate diff but this ticket was already open so I figured I'd just go ahead and put everything into the open ticket to save time (It's been open for 4 weeks and is just now being looked at). I can pull it apart and do it separately if that's what should be done.
  • I required ncursesw for the variant versus the regular ncurses. According to the pspp INSTALL file, it is optional to include libncurses: "Without it, PSPP will assume it is running in an 80x25 terminal."
  • I had found a bug where pspp expects its dylibs to be in . or .. and the easiest solution I could think of was to wrap the path to the real ones through a shell script. Do you know a better solution? I'm open to ideas.
  • I created the variants to mimic pspp's own configure flags. The install file has these sections: required, graphing features, graphical features for psppire, ability to read gnumeric files, and other optionals like ncurses. I believe that mimicking the install options of pspp to be a good thing as far as variants go, especially since the default has then enabled (and you can disable what want).

Let me know of changes you believe I should make and if these should be split into separate portfiles and I'll hammer them out today.

Changed 15 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Attachment: Portfile.diff added

comment:6 Changed 15 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

I applied the whitespace changes in r45130.

Attached is an alternate patch file for the changes you wanted.

I only included variants where it was possible to turn off the feature.
For example, I could find no way of stopping the configure script from looking for the readline library.

I modified the postgres variant because it was not actually finding the right libraries.

I modified the variant tex (and renamed it to doc) because it was not actually building the documentation.

I tried to find a way around the LD_LIBRARY_PATH problem using --disable-rpath.
Please test if this solved the problem (I do not know how to cause the error).

If you approve, I can commit the changes.

comment:7 Changed 15 years ago by jeremy@…

Thank you for the help mcalhoun.

--disable-path did not solve the crash. You can recreate the crash by attempting to run a descriptive analysis on the data (really, anything that causes a new window to pop open). It can be found under the Analyze menu.

I'm going to modify your patch to include the LD_LIBRARY_PATH and repost it.

comment:8 Changed 15 years ago by jeremy@…

If everything is in order, please apply patch Portfile-pspp.diff against r45130.

comment:9 in reply to:  8 Changed 15 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Replying to jeremy@…:

If everything is in order, please apply patch Portfile-pspp.diff against r45130.

Forgive me, but I do not quite understand your latest Portfile-pspp.diff.
It does not seem to be a diff against r45130.

Changed 15 years ago by jeremy@…

Attachment: Portfile-pspp.diff added

My apologies: I created the diff in the wrong direction!

comment:10 Changed 15 years ago by nerdling (Jeremy Lavergne)

Owner: changed from macports-tickets@… to snc@…
Status: newassigned

comment:11 Changed 15 years ago by nerdling (Jeremy Lavergne)

Resolution: fixed
Status: assignedclosed

Changes committed in r45332.

comment:12 Changed 15 years ago by jmroot (Joshua Root)

Type: enhancementupdate

comment:13 Changed 15 years ago by (none)

Milestone: Port Updates

Milestone Port Updates deleted

Note: See TracTickets for help on using tickets.