Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#64862 closed defect (fixed)

owncloud-client: "failed to parse file" during `port selfupdate` on Linux

Reported by: harens (Haren S) Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: owncloud-client

Description

I ran sudo port selfupdate on Raspberry Pi OS and I get the following error:

Failed to parse file www/owncloud-client/Portfile: can't read "build_id": no such variable

I think it's due to the following:

configure.args-append   -DCMAKE_INSTALL_NAME_DIR=${applications_dir}/owncloud.app/Contents/MacOS \
                        -DXCODEFLAGS="-IDECustomDerivedDataLocation=${workpath}/DerivedData" \
                        -DMIRALL_VERSION_BUILD=${build_id}

build_id is defined in the platform darwin block, but is being referenced outside of it.

Change History (7)

comment:1 Changed 3 years ago by Schamschula (Marius Schamschula)

This is the first time I have heard of someone running MacPorts on a Raspberry Pi!

I'll have to look at the Portfile to see what is going on.

comment:2 Changed 3 years ago by Schamschula (Marius Schamschula)

The portfile specifies platforms darwin and categories www aqua

I don't see how this could possibly be construed to build under linux, as there is no aqua under linux.

comment:3 in reply to:  2 Changed 3 years ago by reneeotten (Renee Otten)

Replying to Schamschula:

The portfile specifies platforms darwin and categories www aqua

I don't see how this could possibly be construed to build under linux, as there is no aqua under linux.

I think the point of the ticket is not that it should build under linux, but the Portfile should parse. There is indeed a platforms check and that part is all fine, the issue is with the configure.args statement that uses build_id which will never be defined on non-darwin platforms. I suppose just setting build_id to a dummy value before setting it appropriately in the if {${os.platform} eq "darwin"} { block should do the trick.

comment:4 Changed 3 years ago by Schamschula (Marius Schamschula)

Yes, I got that message from the original ticket, however, I have more problematic ports I need to address first.

comment:5 Changed 3 years ago by Schamschula (Marius Schamschula)

Unfortunately, setting build_id is pretty useless, unless you also set version.

This will be more of a rewrite than just doing set build_id 0.

I may just expose the current version to all platforms and wait for additional tickets to get them to work.

comment:6 Changed 3 years ago by Schamschula (Marius Schamschula)

Resolution: fixed
Status: assignedclosed

In b2c148808dd78c7fd6efc7bb79fd2fdcf5db6333/macports-ports (master):

owncloud-client: refactor Portfile

Closes: #64862

comment:7 Changed 3 years ago by Schamschula (Marius Schamschula)

The above update should solve the issue in this ticket.

However, it will likely not compile on any other platform without additional modifications.

Note: See TracTickets for help on using tickets.